wevu 7.2.1 → 7.3.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 (466) hide show
  1. package/README.md +6 -0
  2. package/dist/dev/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/defineProperty.mjs +1 -1
  3. package/dist/dev/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/toPrimitive.mjs +1 -1
  4. package/dist/dev/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/toPropertyKey.mjs +1 -1
  5. package/dist/dev/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/typeof.mjs +1 -1
  6. package/dist/dev/api/vitest/setup.d.mts +1 -0
  7. package/dist/dev/api/vitest.d.mts +1 -0
  8. package/dist/dev/api.d.mts +1 -0
  9. package/dist/dev/compiler.d.mts +1 -0
  10. package/dist/dev/fetch.d.mts +9 -0
  11. package/dist/dev/index.d.mts +72 -0
  12. package/dist/dev/internal-reactivity.d.mts +18 -0
  13. package/dist/dev/internal-runtime.d.mts +45 -0
  14. package/dist/dev/internal-runtime.mjs +3 -2
  15. package/dist/dev/internal-template.d.mts +2 -0
  16. package/dist/dev/jsxTypes.d.mts +9 -0
  17. package/dist/dev/macros/shared.d.mts +83 -0
  18. package/dist/dev/macros.d.mts +71 -0
  19. package/dist/dev/package.mjs +1 -1
  20. package/dist/dev/reactivity/asyncDerivation.d.mts +41 -0
  21. package/dist/dev/reactivity/asyncDerivation.mjs +8 -10
  22. package/dist/dev/reactivity/asyncDerivation.mjs.map +1 -1
  23. package/dist/dev/reactivity/computed.d.mts +25 -0
  24. package/dist/dev/reactivity/core.d.mts +35 -0
  25. package/dist/dev/reactivity/core.mjs +5 -8
  26. package/dist/dev/reactivity/core.mjs.map +1 -1
  27. package/dist/dev/reactivity/index.d.mts +16 -0
  28. package/dist/dev/reactivity/reactive/mutation.d.mts +21 -0
  29. package/dist/dev/reactivity/reactive/patch.d.mts +18 -0
  30. package/dist/dev/reactivity/reactive/patch.mjs +3 -3
  31. package/dist/dev/reactivity/reactive/patch.mjs.map +1 -1
  32. package/dist/dev/reactivity/reactive/patchState.mjs +4 -8
  33. package/dist/dev/reactivity/reactive/patchState.mjs.map +1 -1
  34. package/dist/dev/reactivity/reactive/shallow.d.mts +22 -0
  35. package/dist/dev/reactivity/reactive/shared.d.mts +4 -0
  36. package/dist/dev/reactivity/reactive/shared.mjs +1 -2
  37. package/dist/dev/reactivity/reactive/shared.mjs.map +1 -1
  38. package/dist/dev/reactivity/reactive.d.mts +42 -0
  39. package/dist/dev/reactivity/reactive.mjs +5 -10
  40. package/dist/dev/reactivity/reactive.mjs.map +1 -1
  41. package/dist/dev/reactivity/readonly.d.mts +27 -0
  42. package/dist/dev/reactivity/ref.d.mts +27 -0
  43. package/dist/dev/reactivity/ref.mjs +2 -2
  44. package/dist/dev/reactivity/ref.mjs.map +1 -1
  45. package/dist/dev/reactivity/shallowRef.d.mts +19 -0
  46. package/dist/dev/reactivity/shallowRef.mjs +1 -1
  47. package/dist/dev/reactivity/shallowRef.mjs.map +1 -1
  48. package/dist/dev/reactivity/toRefs.d.mts +43 -0
  49. package/dist/dev/reactivity/traverse.d.mts +8 -0
  50. package/dist/dev/reactivity/watch/helpers.mjs +1 -1
  51. package/dist/dev/reactivity/watch/helpers.mjs.map +1 -1
  52. package/dist/dev/reactivity/watch/types.d.mts +43 -0
  53. package/dist/dev/reactivity/watch.d.mts +22 -0
  54. package/dist/dev/reactivity/watch.mjs +6 -8
  55. package/dist/dev/reactivity/watch.mjs.map +1 -1
  56. package/dist/dev/router/auto-routes.d.mts +8 -0
  57. package/dist/dev/router/createRouter.d.mts +9 -0
  58. package/dist/dev/router/createRouter.mjs +17 -24
  59. package/dist/dev/router/createRouter.mjs.map +1 -1
  60. package/dist/dev/router/initialNavigation.mjs +18 -16
  61. package/dist/dev/router/initialNavigation.mjs.map +1 -1
  62. package/dist/dev/router/instance.mjs +1 -2
  63. package/dist/dev/router/instance.mjs.map +1 -1
  64. package/dist/dev/router/navigationCore.d.mts +7 -0
  65. package/dist/dev/router/navigationCore.mjs +2 -2
  66. package/dist/dev/router/navigationCore.mjs.map +1 -1
  67. package/dist/dev/router/navigationResult.mjs +7 -10
  68. package/dist/dev/router/navigationResult.mjs.map +1 -1
  69. package/dist/dev/router/navigationTarget.mjs +1 -3
  70. package/dist/dev/router/navigationTarget.mjs.map +1 -1
  71. package/dist/dev/router/resolve.d.mts +7 -0
  72. package/dist/dev/router/resolve.mjs +3 -4
  73. package/dist/dev/router/resolve.mjs.map +1 -1
  74. package/dist/dev/router/routeRegistry.mjs +1 -1
  75. package/dist/dev/router/routeRegistry.mjs.map +1 -1
  76. package/dist/dev/router/routeSync.d.mts +2 -0
  77. package/dist/dev/router/routeSync.mjs +1 -1
  78. package/dist/dev/router/routeSync.mjs.map +1 -1
  79. package/dist/dev/router/types.d.mts +267 -0
  80. package/dist/dev/router/useRoute.d.mts +20 -0
  81. package/dist/dev/router/useRoute.mjs +12 -19
  82. package/dist/dev/router/useRoute.mjs.map +1 -1
  83. package/dist/dev/router/useRouter.d.mts +9 -0
  84. package/dist/dev/router.d.mts +26 -0
  85. package/dist/dev/routerInternal/location.d.mts +2 -0
  86. package/dist/dev/routerInternal/location.mjs +2 -3
  87. package/dist/dev/routerInternal/location.mjs.map +1 -1
  88. package/dist/dev/routerInternal/matching.d.mts +2 -0
  89. package/dist/dev/routerInternal/params.d.mts +2 -0
  90. package/dist/dev/routerInternal/params.mjs +2 -3
  91. package/dist/dev/routerInternal/params.mjs.map +1 -1
  92. package/dist/dev/routerInternal/query.d.mts +7 -0
  93. package/dist/dev/routerInternal/records.d.mts +2 -0
  94. package/dist/dev/routerInternal/records.mjs +1 -1
  95. package/dist/dev/routerInternal/records.mjs.map +1 -1
  96. package/dist/dev/routerInternal/recordsWarnings.d.mts +2 -0
  97. package/dist/dev/routerInternal/recordsWarnings.mjs +1 -2
  98. package/dist/dev/routerInternal/recordsWarnings.mjs.map +1 -1
  99. package/dist/dev/routerInternal/shared.d.mts +9 -0
  100. package/dist/dev/routerInternal/snapshots.d.mts +2 -0
  101. package/dist/dev/routerInternal/types.d.mts +9 -0
  102. package/dist/dev/runtime/app/context.mjs +13 -26
  103. package/dist/dev/runtime/app/context.mjs.map +1 -1
  104. package/dist/dev/runtime/app/diagnostics.mjs +2 -4
  105. package/dist/dev/runtime/app/diagnostics.mjs.map +1 -1
  106. package/dist/dev/runtime/app/mount.mjs +27 -33
  107. package/dist/dev/runtime/app/mount.mjs.map +1 -1
  108. package/dist/dev/runtime/app/pending.d.mts +10 -0
  109. package/dist/dev/runtime/app/setData/commitTracker.d.mts +13 -0
  110. package/dist/dev/runtime/app/setData/commitTracker.mjs +5 -9
  111. package/dist/dev/runtime/app/setData/commitTracker.mjs.map +1 -1
  112. package/dist/dev/runtime/app/setData/patchScheduler.mjs +2 -4
  113. package/dist/dev/runtime/app/setData/patchScheduler.mjs.map +1 -1
  114. package/dist/dev/runtime/app/setData/payload.mjs +2 -3
  115. package/dist/dev/runtime/app/setData/payload.mjs.map +1 -1
  116. package/dist/dev/runtime/app/setData/scheduler.d.mts +51 -0
  117. package/dist/dev/runtime/app/setData/scheduler.mjs +7 -9
  118. package/dist/dev/runtime/app/setData/scheduler.mjs.map +1 -1
  119. package/dist/dev/runtime/app/setData/snapshot.mjs +5 -6
  120. package/dist/dev/runtime/app/setData/snapshot.mjs.map +1 -1
  121. package/dist/dev/runtime/app/setDataOptions.mjs +26 -27
  122. package/dist/dev/runtime/app/setDataOptions.mjs.map +1 -1
  123. package/dist/dev/runtime/app.d.mts +8 -0
  124. package/dist/dev/runtime/app.mjs +9 -9
  125. package/dist/dev/runtime/app.mjs.map +1 -1
  126. package/dist/dev/runtime/bindingManifest.mjs +6 -14
  127. package/dist/dev/runtime/bindingManifest.mjs.map +1 -1
  128. package/dist/dev/runtime/capabilities.d.mts +78 -0
  129. package/dist/dev/runtime/capabilities.mjs.map +1 -1
  130. package/dist/dev/runtime/css.d.mts +14 -0
  131. package/dist/dev/runtime/css.mjs +4 -8
  132. package/dist/dev/runtime/css.mjs.map +1 -1
  133. package/dist/dev/runtime/defaults.d.mts +12 -0
  134. package/dist/dev/runtime/defaults.mjs +4 -4
  135. package/dist/dev/runtime/defaults.mjs.map +1 -1
  136. package/dist/dev/runtime/define/initialComputed.mjs +5 -5
  137. package/dist/dev/runtime/define/initialComputed.mjs.map +1 -1
  138. package/dist/dev/runtime/define/options.mjs +10 -12
  139. package/dist/dev/runtime/define/options.mjs.map +1 -1
  140. package/dist/dev/runtime/define/props.mjs +4 -5
  141. package/dist/dev/runtime/define/props.mjs.map +1 -1
  142. package/dist/dev/runtime/define/scopedSlotOptions.mjs +43 -61
  143. package/dist/dev/runtime/define/scopedSlotOptions.mjs.map +1 -1
  144. package/dist/dev/runtime/define/setupResult.mjs +17 -28
  145. package/dist/dev/runtime/define/setupResult.mjs.map +1 -1
  146. package/dist/dev/runtime/define.d.mts +118 -0
  147. package/dist/dev/runtime/define.mjs +9 -12
  148. package/dist/dev/runtime/define.mjs.map +1 -1
  149. package/dist/dev/runtime/diff.mjs +9 -11
  150. package/dist/dev/runtime/diff.mjs.map +1 -1
  151. package/dist/dev/runtime/disposables.d.mts +31 -0
  152. package/dist/dev/runtime/disposables.mjs +2 -2
  153. package/dist/dev/runtime/disposables.mjs.map +1 -1
  154. package/dist/dev/runtime/elementIntersectionObserver.d.mts +26 -0
  155. package/dist/dev/runtime/elementIntersectionObserver.mjs +16 -24
  156. package/dist/dev/runtime/elementIntersectionObserver.mjs.map +1 -1
  157. package/dist/dev/runtime/features/inlineEvents.d.mts +7 -0
  158. package/dist/dev/runtime/features/inlineEvents.mjs +2 -3
  159. package/dist/dev/runtime/features/inlineEvents.mjs.map +1 -1
  160. package/dist/dev/runtime/features/jsxIslands.d.mts +7 -0
  161. package/dist/dev/runtime/features/jsxIslands.mjs +20 -0
  162. package/dist/dev/runtime/features/jsxIslands.mjs.map +1 -0
  163. package/dist/dev/runtime/features/layout.d.mts +7 -0
  164. package/dist/dev/runtime/features/layout.mjs +2 -3
  165. package/dist/dev/runtime/features/layout.mjs.map +1 -1
  166. package/dist/dev/runtime/features/patchStrategy.d.mts +7 -0
  167. package/dist/dev/runtime/features/publicLayout.d.mts +24 -0
  168. package/dist/dev/runtime/features/publicLayout.mjs +2 -6
  169. package/dist/dev/runtime/features/publicLayout.mjs.map +1 -1
  170. package/dist/dev/runtime/features/scopedSlots.d.mts +23 -0
  171. package/dist/dev/runtime/features/scopedSlots.mjs +5 -9
  172. package/dist/dev/runtime/features/scopedSlots.mjs.map +1 -1
  173. package/dist/dev/runtime/features/setDataHighFrequencyWarning.d.mts +7 -0
  174. package/dist/dev/runtime/features/templateRefs.d.mts +7 -0
  175. package/dist/dev/runtime/features/templateRefs.mjs +1 -1
  176. package/dist/dev/runtime/features/templateRefs.mjs.map +1 -1
  177. package/dist/dev/runtime/hooks/base.d.mts +27 -0
  178. package/dist/dev/runtime/hooks/base.mjs +21 -32
  179. package/dist/dev/runtime/hooks/base.mjs.map +1 -1
  180. package/dist/dev/runtime/hooks/register.d.mts +30 -0
  181. package/dist/dev/runtime/hooks/vue.d.mts +52 -0
  182. package/dist/dev/runtime/hooks.d.mts +4 -0
  183. package/dist/dev/runtime/index.d.mts +46 -0
  184. package/dist/dev/runtime/inlineDataset.mjs +1 -2
  185. package/dist/dev/runtime/inlineDataset.mjs.map +1 -1
  186. package/dist/dev/runtime/intersectionObserver.d.mts +14 -0
  187. package/dist/dev/runtime/intersectionObserver.mjs +6 -6
  188. package/dist/dev/runtime/intersectionObserver.mjs.map +1 -1
  189. package/dist/dev/runtime/jsxIsland.d.mts +37 -0
  190. package/dist/dev/runtime/jsxIsland.mjs +16 -33
  191. package/dist/dev/runtime/jsxIsland.mjs.map +1 -1
  192. package/dist/dev/runtime/layoutBridge.d.mts +55 -0
  193. package/dist/dev/runtime/layoutBridge.mjs +32 -62
  194. package/dist/dev/runtime/layoutBridge.mjs.map +1 -1
  195. package/dist/dev/runtime/nativeBridge.mjs +1 -1
  196. package/dist/dev/runtime/nativeBridge.mjs.map +1 -1
  197. package/dist/dev/runtime/navigationLifecycle.mjs +24 -0
  198. package/dist/dev/runtime/navigationLifecycle.mjs.map +1 -0
  199. package/dist/dev/runtime/noSetData.d.mts +5 -0
  200. package/dist/dev/runtime/pageEnvironment.d.mts +50 -0
  201. package/dist/dev/runtime/pageEnvironment.mjs +15 -18
  202. package/dist/dev/runtime/pageEnvironment.mjs.map +1 -1
  203. package/dist/dev/runtime/pageLayout.d.mts +25 -0
  204. package/dist/dev/runtime/pageLayout.mjs +7 -11
  205. package/dist/dev/runtime/pageLayout.mjs.map +1 -1
  206. package/dist/dev/runtime/pageScroll.d.mts +29 -0
  207. package/dist/dev/runtime/pageScroll.mjs +2 -3
  208. package/dist/dev/runtime/pageScroll.mjs.map +1 -1
  209. package/dist/dev/runtime/platform/current.mjs +12 -0
  210. package/dist/dev/runtime/platform/current.mjs.map +1 -0
  211. package/dist/dev/runtime/platform/generic.mjs +36 -0
  212. package/dist/dev/runtime/platform/generic.mjs.map +1 -0
  213. package/dist/dev/runtime/platform/globals.mjs +29 -0
  214. package/dist/dev/runtime/platform/globals.mjs.map +1 -0
  215. package/dist/dev/runtime/platform.mjs +15 -60
  216. package/dist/dev/runtime/platform.mjs.map +1 -1
  217. package/dist/dev/runtime/provide.d.mts +60 -0
  218. package/dist/dev/runtime/provideContext.mjs +7 -9
  219. package/dist/dev/runtime/provideContext.mjs.map +1 -1
  220. package/dist/dev/runtime/provideStore.d.mts +7 -0
  221. package/dist/dev/runtime/publicRuntime.d.mts +22 -0
  222. package/dist/dev/runtime/publicRuntime.mjs +4 -0
  223. package/dist/dev/runtime/publicRuntime.mjs.map +1 -1
  224. package/dist/dev/runtime/pullDownRefresh.d.mts +12 -0
  225. package/dist/dev/runtime/pullDownRefresh.mjs +2 -4
  226. package/dist/dev/runtime/pullDownRefresh.mjs.map +1 -1
  227. package/dist/dev/runtime/register/app.d.mts +14 -0
  228. package/dist/dev/runtime/register/app.mjs +18 -19
  229. package/dist/dev/runtime/register/app.mjs.map +1 -1
  230. package/dist/dev/runtime/register/component/alipay.mjs +9 -18
  231. package/dist/dev/runtime/register/component/alipay.mjs.map +1 -1
  232. package/dist/dev/runtime/register/component/alipayRegistration.mjs +60 -0
  233. package/dist/dev/runtime/register/component/alipayRegistration.mjs.map +1 -0
  234. package/dist/dev/runtime/register/component/lifecycle/platform.mjs +8 -9
  235. package/dist/dev/runtime/register/component/lifecycle/platform.mjs.map +1 -1
  236. package/dist/dev/runtime/register/component/lifecycle.mjs +7 -12
  237. package/dist/dev/runtime/register/component/lifecycle.mjs.map +1 -1
  238. package/dist/dev/runtime/register/component/methods.mjs +13 -18
  239. package/dist/dev/runtime/register/component/methods.mjs.map +1 -1
  240. package/dist/dev/runtime/register/component/options.mjs +3 -4
  241. package/dist/dev/runtime/register/component/options.mjs.map +1 -1
  242. package/dist/dev/runtime/register/component/props.mjs +25 -31
  243. package/dist/dev/runtime/register/component/props.mjs.map +1 -1
  244. package/dist/dev/runtime/register/component/registerDefinition.mjs +18 -40
  245. package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
  246. package/dist/dev/runtime/register/component/registerNativeDefinition.mjs +18 -60
  247. package/dist/dev/runtime/register/component/registerNativeDefinition.mjs.map +1 -1
  248. package/dist/dev/runtime/register/component.d.mts +17 -0
  249. package/dist/dev/runtime/register/component.mjs +3 -5
  250. package/dist/dev/runtime/register/component.mjs.map +1 -1
  251. package/dist/dev/runtime/register/inline.d.mts +15 -0
  252. package/dist/dev/runtime/register/inline.mjs +8 -10
  253. package/dist/dev/runtime/register/inline.mjs.map +1 -1
  254. package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs +7 -8
  255. package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs.map +1 -1
  256. package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs +1 -1
  257. package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs.map +1 -1
  258. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +25 -34
  259. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs.map +1 -1
  260. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +6 -13
  261. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
  262. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +2 -2
  263. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs.map +1 -1
  264. package/dist/dev/runtime/register/runtimeInstance/utils.mjs +9 -9
  265. package/dist/dev/runtime/register/runtimeInstance/utils.mjs.map +1 -1
  266. package/dist/dev/runtime/register/runtimeInstance.d.mts +26 -0
  267. package/dist/dev/runtime/register/runtimeInstance.mjs +74 -100
  268. package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
  269. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs +12 -15
  270. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs.map +1 -1
  271. package/dist/dev/runtime/register/setup.d.mts +11 -0
  272. package/dist/dev/runtime/register/setup.mjs +2 -3
  273. package/dist/dev/runtime/register/setup.mjs.map +1 -1
  274. package/dist/dev/runtime/register/snapshot.mjs +1 -4
  275. package/dist/dev/runtime/register/snapshot.mjs.map +1 -1
  276. package/dist/dev/runtime/register/watch.d.mts +12 -0
  277. package/dist/dev/runtime/register/watch.mjs +3 -5
  278. package/dist/dev/runtime/register/watch.mjs.map +1 -1
  279. package/dist/dev/runtime/register.d.mts +5 -0
  280. package/dist/dev/runtime/scopedSlots.mjs +14 -21
  281. package/dist/dev/runtime/scopedSlots.mjs.map +1 -1
  282. package/dist/dev/runtime/selectorQuery.d.mts +54 -0
  283. package/dist/dev/runtime/selectorQuery.mjs +5 -9
  284. package/dist/dev/runtime/selectorQuery.mjs.map +1 -1
  285. package/dist/dev/runtime/template.d.mts +6 -0
  286. package/dist/dev/runtime/template.mjs +1 -1
  287. package/dist/dev/runtime/template.mjs.map +1 -1
  288. package/dist/dev/runtime/templateRefTypes.d.mts +12 -0
  289. package/dist/dev/runtime/templateRefs/helpers.mjs +14 -24
  290. package/dist/dev/runtime/templateRefs/helpers.mjs.map +1 -1
  291. package/dist/dev/runtime/templateRefs.mjs +8 -15
  292. package/dist/dev/runtime/templateRefs.mjs.map +1 -1
  293. package/dist/dev/runtime/types/core.d.mts +35 -0
  294. package/dist/dev/runtime/types/miniprogram.d.mts +84 -0
  295. package/dist/dev/runtime/types/miniprogramHost.d.mts +45 -0
  296. package/dist/dev/runtime/types/miniprogramHostSources.d.mts +112 -0
  297. package/dist/dev/runtime/types/options.d.mts +138 -0
  298. package/dist/dev/runtime/types/props/propTypes.d.mts +79 -0
  299. package/dist/dev/runtime/types/props/router.d.mts +51 -0
  300. package/dist/dev/runtime/types/props/setup.d.mts +96 -0
  301. package/dist/dev/runtime/types/props.d.mts +4 -0
  302. package/dist/dev/runtime/types/runtime.d.mts +59 -0
  303. package/dist/dev/runtime/types/setData.d.mts +237 -0
  304. package/dist/dev/runtime/types.d.mts +29 -0
  305. package/dist/dev/runtime/uniAppHost.d.mts +8 -0
  306. package/dist/dev/runtime/uniAppHost.mjs +6 -14
  307. package/dist/dev/runtime/uniAppHost.mjs.map +1 -1
  308. package/dist/dev/runtime/updatePerformance.d.mts +13 -0
  309. package/dist/dev/runtime/updatePerformance.mjs +1 -1
  310. package/dist/dev/runtime/updatePerformance.mjs.map +1 -1
  311. package/dist/dev/runtime/use.d.mts +13 -0
  312. package/dist/dev/runtime/use.mjs +1 -1
  313. package/dist/dev/runtime/use.mjs.map +1 -1
  314. package/dist/dev/runtime/vueCompat/context.d.mts +8 -0
  315. package/dist/dev/runtime/vueCompat/context.mjs +3 -5
  316. package/dist/dev/runtime/vueCompat/context.mjs.map +1 -1
  317. package/dist/dev/runtime/vueCompat/model.d.mts +30 -0
  318. package/dist/dev/runtime/vueCompat/model.mjs +9 -13
  319. package/dist/dev/runtime/vueCompat/model.mjs.map +1 -1
  320. package/dist/dev/runtime/vueCompat/router.d.mts +29 -0
  321. package/dist/dev/runtime/vueCompat/router.mjs +4 -4
  322. package/dist/dev/runtime/vueCompat/router.mjs.map +1 -1
  323. package/dist/dev/runtime/vueCompat/templateRef.d.mts +9 -0
  324. package/dist/dev/runtime/vueCompat/templateRef.mjs +1 -1
  325. package/dist/dev/runtime/vueCompat/templateRef.mjs.map +1 -1
  326. package/dist/dev/runtime/vueCompat.d.mts +5 -0
  327. package/dist/dev/scheduler.d.mts +4 -0
  328. package/dist/dev/scheduler.mjs +3 -4
  329. package/dist/dev/scheduler.mjs.map +1 -1
  330. package/dist/dev/store/base.mjs +1 -2
  331. package/dist/dev/store/base.mjs.map +1 -1
  332. package/dist/dev/store/define/create.mjs +11 -22
  333. package/dist/dev/store/define/create.mjs.map +1 -1
  334. package/dist/dev/store/define.d.mts +8 -0
  335. package/dist/dev/store/define.mjs +1 -1
  336. package/dist/dev/store/define.mjs.map +1 -1
  337. package/dist/dev/store/manager.d.mts +16 -0
  338. package/dist/dev/store/storeToRefs.d.mts +11 -0
  339. package/dist/dev/store/types.d.mts +106 -0
  340. package/dist/dev/store/view.mjs +1 -1
  341. package/dist/dev/store/view.mjs.map +1 -1
  342. package/dist/dev/store.d.mts +5 -0
  343. package/dist/dev/version.d.mts +4 -0
  344. package/dist/dev/vue-augment.d.mts +8 -0
  345. package/dist/dev/vue-demi.d.mts +87 -0
  346. package/dist/dev/vue-types.d.mts +19 -0
  347. package/dist/dev/web-apis.d.mts +3 -0
  348. package/dist/internal-runtime.d.mts +2 -1
  349. package/dist/internal-runtime.mjs +1 -1
  350. package/dist/package.mjs +1 -1
  351. package/dist/reactivity/asyncDerivation.mjs +1 -1
  352. package/dist/reactivity/core.mjs +1 -1
  353. package/dist/reactivity/reactive/patch.mjs +1 -1
  354. package/dist/reactivity/reactive/patchState.mjs +1 -1
  355. package/dist/reactivity/reactive/shared.mjs +1 -1
  356. package/dist/reactivity/reactive.mjs +1 -1
  357. package/dist/reactivity/ref.mjs +1 -1
  358. package/dist/reactivity/shallowRef.mjs +1 -1
  359. package/dist/reactivity/watch/helpers.mjs +1 -1
  360. package/dist/reactivity/watch.mjs +1 -1
  361. package/dist/router/createRouter.mjs +1 -1
  362. package/dist/router/initialNavigation.mjs +1 -1
  363. package/dist/router/instance.mjs +1 -1
  364. package/dist/router/navigationCore.mjs +1 -1
  365. package/dist/router/navigationResult.mjs +1 -1
  366. package/dist/router/navigationTarget.mjs +1 -1
  367. package/dist/router/resolve.mjs +1 -1
  368. package/dist/router/routeRegistry.mjs +1 -1
  369. package/dist/router/routeSync.mjs +1 -1
  370. package/dist/router/useRoute.mjs +1 -1
  371. package/dist/routerInternal/location.mjs +1 -1
  372. package/dist/routerInternal/params.mjs +1 -1
  373. package/dist/routerInternal/records.mjs +1 -1
  374. package/dist/routerInternal/recordsWarnings.mjs +1 -1
  375. package/dist/runtime/app/context.mjs +1 -1
  376. package/dist/runtime/app/diagnostics.mjs +1 -1
  377. package/dist/runtime/app/mount.mjs +1 -1
  378. package/dist/runtime/app/setData/commitTracker.mjs +1 -1
  379. package/dist/runtime/app/setData/patchScheduler.mjs +1 -1
  380. package/dist/runtime/app/setData/payload.mjs +1 -1
  381. package/dist/runtime/app/setData/scheduler.mjs +1 -1
  382. package/dist/runtime/app/setData/snapshot.mjs +1 -1
  383. package/dist/runtime/app/setDataOptions.mjs +1 -1
  384. package/dist/runtime/app.mjs +1 -1
  385. package/dist/runtime/bindingManifest.mjs +1 -1
  386. package/dist/runtime/capabilities.d.mts +4 -1
  387. package/dist/runtime/css.mjs +1 -1
  388. package/dist/runtime/defaults.mjs +1 -1
  389. package/dist/runtime/define/initialComputed.mjs +1 -1
  390. package/dist/runtime/define/options.mjs +1 -1
  391. package/dist/runtime/define/props.mjs +1 -1
  392. package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
  393. package/dist/runtime/define/setupResult.mjs +1 -1
  394. package/dist/runtime/define.mjs +1 -1
  395. package/dist/runtime/diff.mjs +1 -1
  396. package/dist/runtime/disposables.mjs +1 -1
  397. package/dist/runtime/elementIntersectionObserver.mjs +1 -1
  398. package/dist/runtime/features/inlineEvents.mjs +1 -1
  399. package/dist/runtime/features/jsxIslands.d.mts +6 -0
  400. package/dist/runtime/features/jsxIslands.mjs +1 -0
  401. package/dist/runtime/features/layout.mjs +1 -1
  402. package/dist/runtime/features/publicLayout.mjs +1 -1
  403. package/dist/runtime/features/scopedSlots.mjs +1 -1
  404. package/dist/runtime/features/templateRefs.mjs +1 -1
  405. package/dist/runtime/hooks/base.mjs +1 -1
  406. package/dist/runtime/inlineDataset.mjs +1 -1
  407. package/dist/runtime/intersectionObserver.mjs +1 -1
  408. package/dist/runtime/jsxIsland.mjs +1 -1
  409. package/dist/runtime/layoutBridge.mjs +1 -1
  410. package/dist/runtime/nativeBridge.mjs +1 -1
  411. package/dist/runtime/navigationLifecycle.mjs +1 -0
  412. package/dist/runtime/pageEnvironment.mjs +1 -1
  413. package/dist/runtime/pageLayout.mjs +1 -1
  414. package/dist/runtime/pageScroll.mjs +1 -1
  415. package/dist/runtime/platform/current.mjs +1 -0
  416. package/dist/runtime/platform/generic.mjs +1 -0
  417. package/dist/runtime/platform/globals.mjs +1 -0
  418. package/dist/runtime/platform.mjs +1 -1
  419. package/dist/runtime/provideContext.mjs +1 -1
  420. package/dist/runtime/publicRuntime.mjs +1 -1
  421. package/dist/runtime/pullDownRefresh.mjs +1 -1
  422. package/dist/runtime/register/app.mjs +1 -1
  423. package/dist/runtime/register/component/alipay.mjs +1 -1
  424. package/dist/runtime/register/component/alipayRegistration.mjs +1 -0
  425. package/dist/runtime/register/component/lifecycle/platform.mjs +1 -1
  426. package/dist/runtime/register/component/lifecycle.mjs +1 -1
  427. package/dist/runtime/register/component/methods.mjs +1 -1
  428. package/dist/runtime/register/component/options.mjs +1 -1
  429. package/dist/runtime/register/component/props.mjs +1 -1
  430. package/dist/runtime/register/component/registerDefinition.mjs +1 -1
  431. package/dist/runtime/register/component/registerNativeDefinition.mjs +1 -1
  432. package/dist/runtime/register/component.mjs +1 -1
  433. package/dist/runtime/register/inline.mjs +1 -1
  434. package/dist/runtime/register/runtimeInstance/methodBridge.mjs +1 -1
  435. package/dist/runtime/register/runtimeInstance/provideContext.mjs +1 -1
  436. package/dist/runtime/register/runtimeInstance/setupContext.mjs +1 -1
  437. package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
  438. package/dist/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -1
  439. package/dist/runtime/register/runtimeInstance/utils.mjs +1 -1
  440. package/dist/runtime/register/runtimeInstance.mjs +1 -1
  441. package/dist/runtime/register/setDataFrequencyWarning.mjs +1 -1
  442. package/dist/runtime/register/setup.mjs +1 -1
  443. package/dist/runtime/register/snapshot.mjs +1 -1
  444. package/dist/runtime/register/watch.mjs +1 -1
  445. package/dist/runtime/scopedSlots.mjs +1 -1
  446. package/dist/runtime/selectorQuery.mjs +1 -1
  447. package/dist/runtime/template.mjs +1 -1
  448. package/dist/runtime/templateRefs/helpers.mjs +1 -1
  449. package/dist/runtime/templateRefs.mjs +1 -1
  450. package/dist/runtime/uniAppHost.mjs +1 -1
  451. package/dist/runtime/updatePerformance.mjs +1 -1
  452. package/dist/runtime/use.mjs +1 -1
  453. package/dist/runtime/vueCompat/context.mjs +1 -1
  454. package/dist/runtime/vueCompat/model.mjs +1 -1
  455. package/dist/runtime/vueCompat/router.mjs +1 -1
  456. package/dist/runtime/vueCompat/templateRef.mjs +1 -1
  457. package/dist/scheduler.mjs +1 -1
  458. package/dist/store/base.mjs +1 -1
  459. package/dist/store/define/create.mjs +1 -1
  460. package/dist/store/define.mjs +1 -1
  461. package/dist/store/view.mjs +1 -1
  462. package/package.json +7 -7
  463. /package/dist/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/defineProperty.mjs +0 -0
  464. /package/dist/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/toPrimitive.mjs +0 -0
  465. /package/dist/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/toPropertyKey.mjs +0 -0
  466. /package/dist/_virtual/{_@oxc-project_runtime@0.150.0 → _@oxc-project_runtime@0.151.0}/helpers/esm/typeof.mjs +0 -0
@@ -0,0 +1,11 @@
1
+ import { Ref } from "../reactivity/ref.mjs";
2
+ import { ComputedRef } from "../reactivity/computed.mjs";
3
+ import "../reactivity/index.mjs";
4
+ import { StoreApi } from "./types.mjs";
5
+ //#region src/store/storeToRefs.d.ts
6
+ type IfEquals<X, Y, Yes, No> = (<T>() => T extends X ? 1 : 2) extends (<T>() => T extends Y ? 1 : 2) ? Yes : No;
7
+ /** 仅提取状态与 getter,保留 getter 的只读类型。 */
8
+ export type StoreToRefsResult<T extends Record<string, any>> = { [K in keyof T as K extends keyof StoreApi<any, any, any, any> ? never : T[K] extends ((...args: any[]) => any) ? never : K]: IfEquals<{ [P in K]: T[P]; }, { -readonly [P in K]: T[P]; }, Ref<T[K]>, ComputedRef<T[K]>>; };
9
+ export declare function storeToRefs<T extends Record<string, any>>(store: T): StoreToRefsResult<T>;
10
+ //#endregion
11
+ //# sourceMappingURL=storeToRefs.d.mts.map
@@ -0,0 +1,106 @@
1
+ import { Ref as Ref$1 } from "../reactivity/ref.mjs";
2
+ import { ComputedRef, WritableComputedRef } from "../reactivity/computed.mjs";
3
+ import { EffectScope } from "../reactivity/core.mjs";
4
+ import { WatchOptions } from "../reactivity/watch/types.mjs";
5
+ import "../reactivity/index.mjs";
6
+ import { UnwrapRef } from "vue";
7
+ //#region src/store/types.d.ts
8
+ /** 与 Pinia 一致的变更类型和值。 */
9
+ export declare const MutationType: {
10
+ readonly direct: "direct";
11
+ readonly patchObject: "patch object";
12
+ readonly patchFunction: "patch function";
13
+ };
14
+ export type MutationType = typeof MutationType[keyof typeof MutationType];
15
+ export type StateTree = Record<PropertyKey, any>;
16
+ export type DeepPartial<T> = { [K in keyof T]?: DeepPartial<T[K]>; };
17
+ export type SubscriptionCallbackMutation<S> = {
18
+ type: 'direct' | 'patch function';
19
+ storeId: string;
20
+ } | {
21
+ type: 'patch object';
22
+ storeId: string;
23
+ payload: DeepPartial<S>;
24
+ };
25
+ export interface SubscriptionCallback<S = any> {
26
+ (mutation: SubscriptionCallbackMutation<S>, state: S): void;
27
+ }
28
+ /** detached 订阅不随注册时的页面或组件作用域卸载。 */
29
+ export interface StoreSubscribeOptions extends WatchOptions<boolean> {
30
+ detached?: boolean;
31
+ }
32
+ export interface ActionContext<TStore = any, TResult = any> {
33
+ name: string;
34
+ store: TStore;
35
+ args: any[];
36
+ after: (callback: (result: TResult) => void) => void;
37
+ onError: (callback: (error: any) => void) => void;
38
+ }
39
+ export interface ActionSubscriber<TStore = any, TResult = any> {
40
+ (context: ActionContext<TStore, TResult>): void;
41
+ }
42
+ export interface PiniaPluginContext {
43
+ store: any;
44
+ pinia: Pinia;
45
+ app: any;
46
+ options: Record<string, any>;
47
+ }
48
+ export interface PiniaPlugin {
49
+ (context: PiniaPluginContext): Partial<PiniaCustomProperties> & Record<string, any> | void;
50
+ }
51
+ /** 应用的 Store 管理器,独立保存实例与状态。 */
52
+ export interface Pinia {
53
+ state: Ref$1<Record<string, StateTree>>;
54
+ install: (app: any) => void;
55
+ use: (plugin: PiniaPlugin) => Pinia;
56
+ _e: EffectScope;
57
+ _s: Map<string, any>;
58
+ _p: PiniaPlugin[];
59
+ _a: any;
60
+ /** @deprecated 使用公开的 Pinia API。 */
61
+ _stores: Map<string, any>;
62
+ /** @deprecated 使用 use() 注册插件。 */
63
+ _plugins: PiniaPlugin[];
64
+ }
65
+ /** createStore 返回的管理器,与 Pinia 使用同一类型契约。 */
66
+ export type StoreManager = Pinia;
67
+ export interface PiniaCustomProperties {}
68
+ export interface PiniaCustomStateProperties<S extends StateTree = StateTree> {}
69
+ export interface StoreDefinition<Id extends string = string, T = any> {
70
+ (pinia?: Pinia | null): T;
71
+ $id: Id;
72
+ }
73
+ export interface StoreSetupOptions {
74
+ [key: string]: any;
75
+ }
76
+ export type StoreGetters<G> = { readonly [K in keyof G]: G[K] extends ((...args: any[]) => infer R) ? R : never; };
77
+ /** 通过 action 名称同时收窄参数与异步解包后的返回值。 */
78
+ type StoreActionContext<TStore, A> = { [K in keyof A]: A[K] extends ((...args: infer Args) => infer Result) ? Omit<ActionContext<TStore, Awaited<Result>>, 'name' | 'args'> & {
79
+ name: K;
80
+ args: Args;
81
+ } : never; }[keyof A];
82
+ export interface StoreApi<Id extends string, S, TStore, A> {
83
+ $id: Id;
84
+ $state: keyof PiniaCustomStateProperties extends never ? S : S & PiniaCustomStateProperties;
85
+ $patch: (patch: DeepPartial<S> | ((state: S) => void)) => void;
86
+ $reset: () => void;
87
+ $subscribe: (callback: SubscriptionCallback<S>, options?: StoreSubscribeOptions) => () => void;
88
+ $onAction: (callback: (context: StoreActionContext<TStore, A>) => void, detached?: boolean) => () => void;
89
+ $dispose: () => void;
90
+ }
91
+ export type OptionsStore<S extends Record<string, any>, G extends Record<string, any>, A extends Record<string, any>, Id extends string = string> = UnwrapRef<S> & StoreGetters<G> & A & PiniaCustomProperties & PiniaCustomStateProperties<S> & StoreApi<Id, UnwrapRef<S>, OptionsStore<S, G, A, Id>, A>;
92
+ export interface DefineStoreOptions<S extends Record<string, any>, G extends Record<string, any>, A extends Record<string, any>> {
93
+ state?: () => S;
94
+ getters?: G & Record<string, (state: UnwrapRef<S>) => any> & ThisType<OptionsStore<S, G, A>>;
95
+ actions?: A & ThisType<OptionsStore<S, G, A>>;
96
+ [key: string]: any;
97
+ }
98
+ type SetupActions<T> = { [K in keyof T as T[K] extends ((...args: any[]) => any) ? K : never]: T[K]; };
99
+ type SetupState<T> = { [K in keyof T as T[K] extends ComputedRef<any> | WritableComputedRef<any> | ((...args: any[]) => any) ? never : K]: UnwrapRef<T[K]>; };
100
+ type SetupValues<T> = { [K in keyof T as T[K] extends ComputedRef<any> ? never : K]: UnwrapRef<T[K]>; } & { readonly [K in keyof T as T[K] extends ComputedRef<any> ? K : never]: UnwrapRef<T[K]>; };
101
+ export type SetupStore<Id extends string, T extends Record<string, any>> = SetupValues<T> & PiniaCustomProperties & StoreApi<Id, SetupState<T>, SetupStore<Id, T>, SetupActions<T>>;
102
+ export type StoreGeneric = Record<string, any> & StoreApi<string, any, any, any>;
103
+ export type StoreState<T extends StoreGeneric> = T['$state'];
104
+ export type StoreActions<T extends StoreGeneric> = SetupActions<Omit<T, keyof StoreApi<any, any, any, any>>>;
105
+ //#endregion
106
+ //# sourceMappingURL=types.d.mts.map
@@ -39,7 +39,7 @@ function storeView(source) {
39
39
  function mergeState(target, patch) {
40
40
  if (target instanceof Map && patch instanceof Map) patch.forEach((value, key) => target.set(key, value));
41
41
  else if (target instanceof Set && patch instanceof Set) patch.forEach((value) => target.add(value));
42
- for (const key of Object.keys(patch !== null && patch !== void 0 ? patch : {})) {
42
+ for (const key of Object.keys(patch ?? {})) {
43
43
  if (key === "__proto__" || key === "constructor" || key === "prototype") continue;
44
44
  const value = patch[key];
45
45
  if (isPlainObject(target[key]) && isPlainObject(value) && !isRef(value) && !isReactive(value)) mergeState(target[key], value);
@@ -1 +1 @@
1
- {"version":3,"file":"view.mjs","names":[],"sources":["../../../src/store/view.ts"],"sourcesContent":["import { isReactive, isRef, isShallowReactive, reactive, toRaw } from '../reactivity'\nimport { ReactiveFlags } from '../reactivity/reactive/shared'\nimport { isPlainObject } from './utils'\n\nconst views = new WeakMap<object, any>()\n\n/** 仅在 Store 边界解包 ref,所有读写仍转发到原始响应式来源。 */\nexport function storeView<T extends object>(source: T): T {\n if ((source as any)[ReactiveFlags.SKIP]) {\n return source\n }\n if (!isPlainObject(source) && !Array.isArray(source)) {\n return source\n }\n if (isReactive(source) && isShallowReactive(source)) {\n return source\n }\n const target = isReactive(source) ? source : reactive(source)\n const cached = views.get(target)\n if (cached) {\n return cached\n }\n // 属性视图只解包既有响应式来源,不把 shallowRef 的普通值转成深层代理。\n const storeViewValue = (value: any): any => isReactive(value) ? storeView(value) : value\n const view = new Proxy(target, {\n get(object, key, receiver) {\n const value = Reflect.get(object, key, receiver)\n if (key === ReactiveFlags.RAW || key === ReactiveFlags.SKIP) {\n return value\n }\n if (isRef(value)) {\n return Array.isArray(object) && typeof key === 'string' && /^\\d+$/.test(key)\n ? value\n : storeViewValue(value.value)\n }\n return storeViewValue(value)\n },\n set(object, key, value, receiver) {\n const previous = Reflect.get(object, key, receiver)\n if (isRef(previous) && !isRef(value) && !Array.isArray(object)) {\n previous.value = value\n return true\n }\n return Reflect.set(object, key, value, receiver)\n },\n })\n views.set(target, view)\n views.set(view, view)\n return view\n}\n\n/** 合并普通对象,数组替换;保留 ref 和已有响应式对象的写入语义。 */\nexport function mergeState(target: Record<string, any>, patch: Record<string, any>) {\n if (target instanceof Map && patch instanceof Map) {\n patch.forEach((value, key) => target.set(key, value))\n }\n else if (target instanceof Set && patch instanceof Set) {\n patch.forEach(value => target.add(value))\n }\n for (const key of Object.keys(patch ?? {})) {\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n continue\n }\n const value = patch[key]\n if (isPlainObject(target[key]) && isPlainObject(value) && !isRef(value) && !isReactive(value)) {\n mergeState(target[key], value)\n }\n else {\n target[key] = value\n }\n }\n}\n\n/** 返回尚未解包的属性,供 storeToRefs 保留 state/getter 的来源。 */\nexport function rawStore(store: object): Record<string, any> {\n return toRaw(store)\n}\n"],"mappings":";;;;;;;AAIA,MAAM,wBAAQ,IAAI,QAAqB;;AAGvC,SAAgB,UAA4B,QAAc;CACxD,IAAK,oBACH,OAAO;CAET,IAAI,CAAC,cAAc,MAAM,KAAK,CAAC,MAAM,QAAQ,MAAM,GACjD,OAAO;CAET,IAAI,WAAW,MAAM,KAAK,kBAAkB,MAAM,GAChD,OAAO;CAET,MAAM,SAAS,WAAW,MAAM,IAAI,SAAS,SAAS,MAAM;CAC5D,MAAM,SAAS,MAAM,IAAI,MAAM;CAC/B,IAAI,QACF,OAAO;CAGT,MAAM,kBAAkB,UAAoB,WAAW,KAAK,IAAI,UAAU,KAAK,IAAI;CACnF,MAAM,OAAO,IAAI,MAAM,QAAQ;EAC7B,IAAI,QAAQ,KAAK,UAAU;GACzB,MAAM,QAAQ,QAAQ,IAAI,QAAQ,KAAK,QAAQ;GAC/C,IAAI,qBAA6B,oBAC/B,OAAO;GAET,IAAI,MAAM,KAAK,GACb,OAAO,MAAM,QAAQ,MAAM,KAAK,OAAO,QAAQ,YAAY,QAAQ,KAAK,GAAG,IACvE,QACA,eAAe,MAAM,KAAK;GAEhC,OAAO,eAAe,KAAK;EAC7B;EACA,IAAI,QAAQ,KAAK,OAAO,UAAU;GAChC,MAAM,WAAW,QAAQ,IAAI,QAAQ,KAAK,QAAQ;GAClD,IAAI,MAAM,QAAQ,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,QAAQ,MAAM,GAAG;IAC9D,SAAS,QAAQ;IACjB,OAAO;GACT;GACA,OAAO,QAAQ,IAAI,QAAQ,KAAK,OAAO,QAAQ;EACjD;CACF,CAAC;CACD,MAAM,IAAI,QAAQ,IAAI;CACtB,MAAM,IAAI,MAAM,IAAI;CACpB,OAAO;AACT;;AAGA,SAAgB,WAAW,QAA6B,OAA4B;CAClF,IAAI,kBAAkB,OAAO,iBAAiB,KAC5C,MAAM,SAAS,OAAO,QAAQ,OAAO,IAAI,KAAK,KAAK,CAAC;MAEjD,IAAI,kBAAkB,OAAO,iBAAiB,KACjD,MAAM,SAAQ,UAAS,OAAO,IAAI,KAAK,CAAC;CAE1C,KAAK,MAAM,OAAO,OAAO,KAAK,6CAAS,CAAC,CAAC,GAAG;EAC1C,IAAI,QAAQ,eAAe,QAAQ,iBAAiB,QAAQ,aAC1D;EAEF,MAAM,QAAQ,MAAM;EACpB,IAAI,cAAc,OAAO,IAAI,KAAK,cAAc,KAAK,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,WAAW,KAAK,GAC1F,WAAW,OAAO,MAAM,KAAK;OAG7B,OAAO,OAAO;CAElB;AACF;;AAGA,SAAgB,SAAS,OAAoC;CAC3D,OAAO,MAAM,KAAK;AACpB"}
1
+ {"version":3,"file":"view.mjs","names":[],"sources":["../../../src/store/view.ts"],"sourcesContent":["import { isReactive, isRef, isShallowReactive, reactive, toRaw } from '../reactivity'\nimport { ReactiveFlags } from '../reactivity/reactive/shared'\nimport { isPlainObject } from './utils'\n\nconst views = new WeakMap<object, any>()\n\n/** 仅在 Store 边界解包 ref,所有读写仍转发到原始响应式来源。 */\nexport function storeView<T extends object>(source: T): T {\n if ((source as any)[ReactiveFlags.SKIP]) {\n return source\n }\n if (!isPlainObject(source) && !Array.isArray(source)) {\n return source\n }\n if (isReactive(source) && isShallowReactive(source)) {\n return source\n }\n const target = isReactive(source) ? source : reactive(source)\n const cached = views.get(target)\n if (cached) {\n return cached\n }\n // 属性视图只解包既有响应式来源,不把 shallowRef 的普通值转成深层代理。\n const storeViewValue = (value: any): any => isReactive(value) ? storeView(value) : value\n const view = new Proxy(target, {\n get(object, key, receiver) {\n const value = Reflect.get(object, key, receiver)\n if (key === ReactiveFlags.RAW || key === ReactiveFlags.SKIP) {\n return value\n }\n if (isRef(value)) {\n return Array.isArray(object) && typeof key === 'string' && /^\\d+$/.test(key)\n ? value\n : storeViewValue(value.value)\n }\n return storeViewValue(value)\n },\n set(object, key, value, receiver) {\n const previous = Reflect.get(object, key, receiver)\n if (isRef(previous) && !isRef(value) && !Array.isArray(object)) {\n previous.value = value\n return true\n }\n return Reflect.set(object, key, value, receiver)\n },\n })\n views.set(target, view)\n views.set(view, view)\n return view\n}\n\n/** 合并普通对象,数组替换;保留 ref 和已有响应式对象的写入语义。 */\nexport function mergeState(target: Record<string, any>, patch: Record<string, any>) {\n if (target instanceof Map && patch instanceof Map) {\n patch.forEach((value, key) => target.set(key, value))\n }\n else if (target instanceof Set && patch instanceof Set) {\n patch.forEach(value => target.add(value))\n }\n for (const key of Object.keys(patch ?? {})) {\n if (key === '__proto__' || key === 'constructor' || key === 'prototype') {\n continue\n }\n const value = patch[key]\n if (isPlainObject(target[key]) && isPlainObject(value) && !isRef(value) && !isReactive(value)) {\n mergeState(target[key], value)\n }\n else {\n target[key] = value\n }\n }\n}\n\n/** 返回尚未解包的属性,供 storeToRefs 保留 state/getter 的来源。 */\nexport function rawStore(store: object): Record<string, any> {\n return toRaw(store)\n}\n"],"mappings":";;;;;;;AAIA,MAAM,wBAAQ,IAAI,QAAqB;;AAGvC,SAAgB,UAA4B,QAAc;CACxD,IAAK,oBACH,OAAO;CAET,IAAI,CAAC,cAAc,MAAM,KAAK,CAAC,MAAM,QAAQ,MAAM,GACjD,OAAO;CAET,IAAI,WAAW,MAAM,KAAK,kBAAkB,MAAM,GAChD,OAAO;CAET,MAAM,SAAS,WAAW,MAAM,IAAI,SAAS,SAAS,MAAM;CAC5D,MAAM,SAAS,MAAM,IAAI,MAAM;CAC/B,IAAI,QACF,OAAO;CAGT,MAAM,kBAAkB,UAAoB,WAAW,KAAK,IAAI,UAAU,KAAK,IAAI;CACnF,MAAM,OAAO,IAAI,MAAM,QAAQ;EAC7B,IAAI,QAAQ,KAAK,UAAU;GACzB,MAAM,QAAQ,QAAQ,IAAI,QAAQ,KAAK,QAAQ;GAC/C,IAAI,qBAA6B,oBAC/B,OAAO;GAET,IAAI,MAAM,KAAK,GACb,OAAO,MAAM,QAAQ,MAAM,KAAK,OAAO,QAAQ,YAAY,QAAQ,KAAK,GAAG,IACvE,QACA,eAAe,MAAM,KAAK;GAEhC,OAAO,eAAe,KAAK;EAC7B;EACA,IAAI,QAAQ,KAAK,OAAO,UAAU;GAChC,MAAM,WAAW,QAAQ,IAAI,QAAQ,KAAK,QAAQ;GAClD,IAAI,MAAM,QAAQ,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,MAAM,QAAQ,MAAM,GAAG;IAC9D,SAAS,QAAQ;IACjB,OAAO;GACT;GACA,OAAO,QAAQ,IAAI,QAAQ,KAAK,OAAO,QAAQ;EACjD;CACF,CAAC;CACD,MAAM,IAAI,QAAQ,IAAI;CACtB,MAAM,IAAI,MAAM,IAAI;CACpB,OAAO;AACT;;AAGA,SAAgB,WAAW,QAA6B,OAA4B;CAClF,IAAI,kBAAkB,OAAO,iBAAiB,KAC5C,MAAM,SAAS,OAAO,QAAQ,OAAO,IAAI,KAAK,KAAK,CAAC;MAEjD,IAAI,kBAAkB,OAAO,iBAAiB,KACjD,MAAM,SAAQ,UAAS,OAAO,IAAI,KAAK,CAAC;CAE1C,KAAK,MAAM,OAAO,OAAO,KAAK,SAAS,CAAC,CAAC,GAAG;EAC1C,IAAI,QAAQ,eAAe,QAAQ,iBAAiB,QAAQ,aAC1D;EAEF,MAAM,QAAQ,MAAM;EACpB,IAAI,cAAc,OAAO,IAAI,KAAK,cAAc,KAAK,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,WAAW,KAAK,GAC1F,WAAW,OAAO,MAAM,KAAK;OAG7B,OAAO,OAAO;CAElB;AACF;;AAGA,SAAgB,SAAS,OAAoC;CAC3D,OAAO,MAAM,KAAK;AACpB"}
@@ -0,0 +1,5 @@
1
+ import { ActionContext, ActionSubscriber, DefineStoreOptions, MutationType, Pinia, PiniaCustomProperties, PiniaCustomStateProperties, PiniaPlugin, PiniaPluginContext, StateTree, StoreActions, StoreDefinition, StoreGeneric, StoreManager, StoreState, StoreSubscribeOptions, SubscriptionCallback, SubscriptionCallbackMutation } from "./store/types.mjs";
2
+ import { defineStore } from "./store/define.mjs";
3
+ import { createPinia, createStore, disposePinia, getActivePinia, setActivePinia } from "./store/manager.mjs";
4
+ import { StoreToRefsResult, storeToRefs } from "./store/storeToRefs.mjs";
5
+ export { type ActionContext, type ActionSubscriber, type DefineStoreOptions, MutationType, type Pinia, type PiniaCustomProperties, type PiniaCustomStateProperties, type PiniaPlugin, type PiniaPluginContext, type StateTree, type StoreActions, type StoreDefinition, type StoreGeneric, type StoreManager, type StoreState, type StoreSubscribeOptions, type StoreToRefsResult, type SubscriptionCallback, type SubscriptionCallbackMutation, createPinia, createStore, defineStore, disposePinia, getActivePinia, setActivePinia, storeToRefs };
@@ -0,0 +1,4 @@
1
+ //#region src/version.d.ts
2
+ export declare const version: string;
3
+ //#endregion
4
+ //# sourceMappingURL=version.d.mts.map
@@ -0,0 +1,8 @@
1
+ import { WevuGlobalComponents, WevuGlobalDirectives } from "./runtime/types.mjs";
2
+ //#region src/vue-augment.d.ts
3
+ declare module '@vue/runtime-core' {
4
+ interface GlobalComponents extends WevuGlobalComponents {}
5
+ interface GlobalDirectives extends WevuGlobalDirectives {}
6
+ }
7
+ //#endregion
8
+ //# sourceMappingURL=vue-augment.d.mts.map
@@ -0,0 +1,87 @@
1
+ import { AlipayMiniProgramHostNamespace, AlipayMiniProgramHostSourceContract, DefaultMiniProgramHostNamespace, DefaultMiniProgramHostSourceContract, DouyinMiniProgramHostNamespace, DouyinMiniProgramHostSourceContract, MiniProgramHostNamespace, MiniProgramHostNamespaceBySource, MiniProgramHostSourceName, MiniProgramHostSourceRegistry, MiniProgramPlatformHostNamespaceBySource, MiniProgramPlatformHostSourceName, MiniProgramPlatformHostSourceRegistry, MiniProgramRuntimeHostNamespaceBySource, MiniProgramRuntimeHostSourceName, MiniProgramRuntimeHostSourceRegistry, TtMiniProgramHostNamespace, TtMiniProgramHostSourceContract, WechatMiniProgramHostNamespace, WechatMiniProgramHostSourceContract } from "./runtime/types/miniprogramHostSources.mjs";
2
+ import { HostMiniProgramAddToFavoritesOption, HostMiniProgramAppOptions, HostMiniProgramAppTrivialInstance, HostMiniProgramBehaviorIdentifier, HostMiniProgramBoundingClientRectResult, HostMiniProgramComponentAllFullProperty, HostMiniProgramComponentAllProperty, HostMiniProgramComponentBehaviorOptions, HostMiniProgramComponentEmptyArray, HostMiniProgramComponentInstance, HostMiniProgramComponentMethodOption, HostMiniProgramComponentPropertyOption, HostMiniProgramComponentPropertyValue, HostMiniProgramComponentShortProperty, HostMiniProgramComponentTrivialInstance, HostMiniProgramComponentTrivialOption, HostMiniProgramIntersectionObserver, HostMiniProgramIntersectionObserverOptions, HostMiniProgramLaunchOptions, HostMiniProgramMemoryWarningResult, HostMiniProgramNavigateToOption, HostMiniProgramNodesRef, HostMiniProgramNodesRefFields, HostMiniProgramPageLifetime, HostMiniProgramPageNotFoundOptions, HostMiniProgramPageResizeOption, HostMiniProgramPageScrollOption, HostMiniProgramPageTrivialInstance, HostMiniProgramReLaunchOption, HostMiniProgramRedirectToOption, HostMiniProgramRouter, HostMiniProgramSaveExitState, HostMiniProgramScrollOffsetResult, HostMiniProgramSelectorQuery, HostMiniProgramShareAppMessageOption, HostMiniProgramSwitchTabOption, HostMiniProgramTabItemTapOption, HostMiniProgramThemeChangeResult, HostMiniProgramTriggerEventOptions, HostMiniProgramUnhandledRejectionResult } from "./runtime/types/miniprogramHost.mjs";
3
+ import { MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentInstance, MiniProgramComponentOptions, MiniProgramComponentPropertyValue, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes } from "./runtime/types/miniprogram.mjs";
4
+ import { ComponentPropsOptions, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InferNativePropType, InferNativeProps, InferPropType, InferProps, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, PropConstructor, PropOptions, PropType } from "./runtime/types/props/propTypes.mjs";
5
+ import { MiniProgramRouterNavigateToOption, MiniProgramRouterReLaunchOption, MiniProgramRouterRedirectToOption, MiniProgramRouterSwitchTabOption, SetupContextRouter, WevuTypedRouterRouteMap } from "./runtime/types/props/router.mjs";
6
+ import { AsyncDerivation, AsyncDerivationContext, AsyncDerivationState, AsyncDerivationStatus, UseAsyncDerivationOptions, useAsyncDerivation } from "./reactivity/asyncDerivation.mjs";
7
+ import { CustomRefFactory, CustomRefOptions, CustomRefSource, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, customRef, isRef, ref, toValue, unref } from "./reactivity/ref.mjs";
8
+ import { ComputedGetter, ComputedRef, ComputedSetter, WritableComputedOptions, WritableComputedRef, computed } from "./reactivity/computed.mjs";
9
+ import { nextTick } from "./scheduler.mjs";
10
+ import { EffectScope, batch, effect, effectScope, endBatch, getCurrentScope, onScopeDispose, startBatch, stop } from "./reactivity/core.mjs";
11
+ import { MutationKind, MutationOp, MutationRecord, addMutationRecorder, removeMutationRecorder } from "./reactivity/reactive/mutation.mjs";
12
+ import { PrelinkReactiveTreeOptions, prelinkReactiveTree, touchReactive } from "./reactivity/reactive/patch.mjs";
13
+ import { isShallowReactive, shallowReactive } from "./reactivity/reactive/shallow.mjs";
14
+ import { toRaw } from "./reactivity/reactive/shared.mjs";
15
+ import { getReactiveVersion, isRaw, isReactive, markRaw, reactive } from "./reactivity/reactive.mjs";
16
+ import { isProxy, isReadonly, readonly, shallowReadonly } from "./reactivity/readonly.mjs";
17
+ import { isShallowRef, shallowRef, triggerRef } from "./reactivity/shallowRef.mjs";
18
+ import { ToRefs, toRef, toRefs } from "./reactivity/toRefs.mjs";
19
+ import { traverse } from "./reactivity/traverse.mjs";
20
+ import { MapSources, MaybeUndefined, MultiWatchSources, OnCleanup, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy } from "./reactivity/watch/types.mjs";
21
+ import { watch, watchEffect, watchPostEffect, watchSyncEffect } from "./reactivity/watch.mjs";
22
+ import { ComponentPublicInstance, ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions, ModelBinding, ModelBindingOptions, ModelBindingPayload } from "./runtime/types/core.mjs";
23
+ import { AppConfig, InternalRuntimeState, InternalRuntimeStateFields, RuntimeApp, RuntimeInstance, WevuPlugin } from "./runtime/types/runtime.mjs";
24
+ import { SetupContext, SetupContextIntersectionObserver, SetupContextIntersectionObserverOptions, SetupContextNativeInstance, SetupContextSelectorQuery, SetupFunction } from "./runtime/types/props/setup.mjs";
25
+ import { AllowedComponentProps, ComponentCustomProps, ComponentOptionsMixin, DefineComponent, NativeComponent, ObjectDirective, PublicProps, ShallowUnwrapRef, VNode, VNodeProps } from "./vue-types.mjs";
26
+ import { SetDataBindingDiagnostic, SetDataDebugInfo, SetDataSnapshotOptions } from "./runtime/types/setData.mjs";
27
+ import { CreateAppOptions, DataOption, DefineAppOptions, DefineComponentOptions, PageFeatures } from "./runtime/types/options.mjs";
28
+ import { GlobalComponents, GlobalDirectives, MiniProgramTemplateRefValue, TemplateRefValue, TemplateRefs, WevuGlobalComponents, WevuGlobalDirectives } from "./runtime/types.mjs";
29
+ import { useCssModule } from "./runtime/css.mjs";
30
+ import { WevuDefaults, resetWevuDefaults } from "./runtime/defaults.mjs";
31
+ import { ComponentDefinition, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, SetupContextWithTypeProps, SetupFunctionWithTypeProps, WevuComponentConstructor, WevuDefinedComponent } from "./runtime/define.mjs";
32
+ import { DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, useDisposables } from "./runtime/disposables.mjs";
33
+ import { ElementIntersectionObserverCallback, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, useElementIntersectionObserver } from "./runtime/elementIntersectionObserver.mjs";
34
+ import { PageLayoutState, WevuPageLayoutMap } from "./runtime/pageLayout.mjs";
35
+ import { LayoutHostBinding } from "./runtime/capabilities.mjs";
36
+ import { LayoutBridgeInstance } from "./runtime/layoutBridge.mjs";
37
+ import { registerPageLayoutBridge, registerRuntimeLayoutHosts, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, setPageLayout, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, useLayoutBridge, useLayoutHosts, usePageLayout, waitForLayoutHost } from "./runtime/features/publicLayout.mjs";
38
+ import { callHookList, callHookReturn, getCurrentInstance, getCurrentSetupContext, setCurrentInstance, setCurrentSetupContext } from "./runtime/hooks/base.mjs";
39
+ import { onAddToFavorites, onAttached, onDetached, onError, onHide, onLaunch, onLoad, onMemoryWarning, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload } from "./runtime/hooks/register.mjs";
40
+ import { callUpdateHooks, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated } from "./runtime/hooks/vue.mjs";
41
+ import { UseIntersectionObserverOptions, UseIntersectionObserverResult, useIntersectionObserver } from "./runtime/intersectionObserver.mjs";
42
+ import { isNoSetData, markNoSetData } from "./runtime/noSetData.mjs";
43
+ import { NavigationBarMetrics, PageStackSnapshot, UseNavigationBarMetricsOptions, UsePageStackOptions, getCurrentPageStackSnapshot, getNavigationBarMetrics, useNavigationBarMetrics, usePageStack } from "./runtime/pageEnvironment.mjs";
44
+ import { UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, usePageScrollThrottle } from "./runtime/pageScroll.mjs";
45
+ import { setGlobalProvidedValue } from "./runtime/provideStore.mjs";
46
+ import { hasInjectionContext, inject, injectGlobal, provide, provideGlobal } from "./runtime/provide.mjs";
47
+ import { setRuntimeSetDataVisibility, teardownRuntimeInstance } from "./runtime/register/runtimeInstance.mjs";
48
+ import { runSetupFunction } from "./runtime/register/setup.mjs";
49
+ import { createApp, createWevuComponent, createWevuScopedSlotComponent, defineComponent, mountRuntimeInstance, registerApp, registerComponent, setWevuDefaults } from "./runtime/publicRuntime.mjs";
50
+ import { PullDownRefreshHandler, UseAsyncPullDownRefreshOptions, useAsyncPullDownRefresh } from "./runtime/pullDownRefresh.mjs";
51
+ import { UseAllBoundingClientRectOptions, UseAllScrollOffsetOptions, UseAllSelectorFieldsOptions, UseBoundingClientRectOptions, UseScrollOffsetOptions, UseSelectorFieldsOptions, UseSelectorQueryOptions, useBoundingClientRect, useScrollOffset, useSelectorFields, useSelectorQuery } from "./runtime/selectorQuery.mjs";
52
+ import { normalizeClass, normalizeStyle, resolvePropValue } from "./runtime/template.mjs";
53
+ import { UpdatePerformanceListener, UpdatePerformanceListenerResult, UseUpdatePerformanceListenerStopHandle, useUpdatePerformanceListener } from "./runtime/updatePerformance.mjs";
54
+ import { defineAppSetup, use } from "./runtime/use.mjs";
55
+ import { useAttrs, useNativeInstance, useSlots } from "./runtime/vueCompat/context.mjs";
56
+ import { ModelModifiers, UseModelOptions, mergeModels, useBindModel, useChangeModel, useModel } from "./runtime/vueCompat/model.mjs";
57
+ import { useNativePageRouter, useNativeRouter } from "./runtime/vueCompat/router.mjs";
58
+ import { TemplateRef, useTemplateRef } from "./runtime/vueCompat/templateRef.mjs";
59
+ import { ComponentTypeEmits, EmitFn, EmitsOptions } from "./macros/shared.mjs";
60
+ import { DefineModelModifiers, DefineModelTransformOptions, ModelRef, PageLayoutMeta, PageMeta, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, withDefaults } from "./macros.mjs";
61
+ import { ActionContext, ActionSubscriber, DefineStoreOptions, MutationType, Pinia, PiniaCustomProperties, PiniaCustomStateProperties, PiniaPlugin, PiniaPluginContext, StateTree, StoreActions, StoreDefinition, StoreGeneric, StoreManager, StoreState, StoreSubscribeOptions, SubscriptionCallback, SubscriptionCallbackMutation } from "./store/types.mjs";
62
+ import { defineStore } from "./store/define.mjs";
63
+ import { createPinia, createStore, disposePinia, getActivePinia, setActivePinia } from "./store/manager.mjs";
64
+ import { StoreToRefsResult, storeToRefs } from "./store/storeToRefs.mjs";
65
+ import { version } from "./version.mjs";
66
+ import "./index.mjs";
67
+ export * from "@wevu/web-apis";
68
+ //#region src/vue-demi.d.ts
69
+ /**
70
+ * 标记当前兼容层运行在 Vue 3 风格分支。
71
+ */
72
+ export declare const isVue2 = false;
73
+ /**
74
+ * 标记当前兼容层运行在 Vue 3 风格分支。
75
+ */
76
+ export declare const isVue3 = true;
77
+ /**
78
+ * 与 `vue-demi` 保持一致,Vue 3 分支下不暴露 Vue 2 构造器。
79
+ */
80
+ export declare const Vue2: undefined;
81
+ /**
82
+ * Vue 3 分支的 `vue-demi.install()` 为 no-op,这里保持同样语义。
83
+ */
84
+ export declare function install(): void;
85
+ //#endregion
86
+ export { type ActionContext, type ActionSubscriber, type AlipayMiniProgramHostNamespace, type AlipayMiniProgramHostSourceContract, type AllowedComponentProps, type AppConfig, type AsyncDerivation, type AsyncDerivationContext, type AsyncDerivationState, type AsyncDerivationStatus, type ComponentCustomProps, type ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, type ComponentTypeEmits, type ComputedDefinitions, type ComputedGetter, type ComputedRef, type ComputedSetter, type CreateAppOptions, type CustomRefFactory, type CustomRefOptions, type CustomRefSource, type DataOption, type DefaultMiniProgramHostNamespace, type DefaultMiniProgramHostSourceContract, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, type DefineComponentTypePropsOptions, type DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, type DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, type DouyinMiniProgramHostNamespace, type DouyinMiniProgramHostSourceContract, type EffectScope, ElementIntersectionObserverCallback, type EmitFn, type EmitsOptions, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type HostMiniProgramAddToFavoritesOption, type HostMiniProgramAppOptions, type HostMiniProgramAppTrivialInstance, type HostMiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray, type HostMiniProgramComponentInstance, type HostMiniProgramComponentMethodOption, type HostMiniProgramComponentPropertyOption, type HostMiniProgramComponentPropertyValue, type HostMiniProgramComponentShortProperty, type HostMiniProgramComponentTrivialInstance, type HostMiniProgramComponentTrivialOption, type HostMiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption, type HostMiniProgramNodesRef, type HostMiniProgramNodesRefFields, type HostMiniProgramPageLifetime, type HostMiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption, type HostMiniProgramPageScrollOption, type HostMiniProgramPageTrivialInstance, type HostMiniProgramReLaunchOption, type HostMiniProgramRedirectToOption, type HostMiniProgramRouter, type HostMiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption, type HostMiniProgramThemeChangeResult, type HostMiniProgramTriggerEventOptions, type HostMiniProgramUnhandledRejectionResult, type InferNativePropType, type InferNativeProps, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, type LayoutBridgeInstance, type LayoutHostBinding, type MapSources, type MaybeRef, type MaybeRefOrGetter, type MaybeUndefined, type MethodDefinitions, type MiniProgramAdapter, type HostMiniProgramAddToFavoritesOption as MiniProgramAddToFavoritesOption, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult as MiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty as MiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty as MiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions as MiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray as MiniProgramComponentEmptyArray, type MiniProgramComponentInstance, type HostMiniProgramComponentMethodOption as MiniProgramComponentMethodOption, type MiniProgramComponentOptions, type HostMiniProgramComponentPropertyOption as MiniProgramComponentPropertyOption, type MiniProgramComponentPropertyValue, type MiniProgramComponentRawOptions, type HostMiniProgramComponentShortProperty as MiniProgramComponentShortProperty, type MiniProgramHostNamespace, type MiniProgramHostNamespaceBySource, type MiniProgramHostSourceName, type MiniProgramHostSourceRegistry, type MiniProgramInstance, type HostMiniProgramIntersectionObserver as MiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions as MiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions as MiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult as MiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption as MiniProgramNavigateToOption, type HostMiniProgramNodesRef as MiniProgramNodesRef, type HostMiniProgramNodesRefFields as MiniProgramNodesRefFields, type HostMiniProgramPageLifetime as MiniProgramPageLifetime, type MiniProgramPageLifetimes, type HostMiniProgramPageNotFoundOptions as MiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption as MiniProgramPageResizeOption, type HostMiniProgramPageScrollOption as MiniProgramPageScrollOption, type MiniProgramPlatformHostNamespaceBySource, type MiniProgramPlatformHostSourceName, type MiniProgramPlatformHostSourceRegistry, type HostMiniProgramReLaunchOption as MiniProgramReLaunchOption, type HostMiniProgramRedirectToOption as MiniProgramRedirectToOption, type HostMiniProgramRouter as MiniProgramRouter, type MiniProgramRouterNavigateToOption, type MiniProgramRouterReLaunchOption, type MiniProgramRouterRedirectToOption, type MiniProgramRouterSwitchTabOption, type MiniProgramRuntimeHostNamespaceBySource, type MiniProgramRuntimeHostSourceName, type MiniProgramRuntimeHostSourceRegistry, type HostMiniProgramSaveExitState as MiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult as MiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery as MiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption as MiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption as MiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption as MiniProgramTabItemTapOption, MiniProgramTemplateRefValue, type HostMiniProgramThemeChangeResult as MiniProgramThemeChangeResult, type HostMiniProgramUnhandledRejectionResult as MiniProgramUnhandledRejectionResult, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, type ModelModifiers, ModelRef, type MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, MutationType, type NativeComponent, type NativePropType, type NativePropsOptions, type NativeTypeHint, type NativeTypedProperty, NavigationBarMetrics, type ObjectDirective, type OnCleanup, type PageFeatures, PageLayoutMeta, type PageLayoutState, PageMeta, PageStackSnapshot, type Pinia, type PiniaCustomProperties, type PiniaCustomStateProperties, type PiniaPlugin, type PiniaPluginContext, type PrelinkReactiveTreeOptions, type PropConstructor, type PropOptions, type PropType, type PublicProps, PullDownRefreshHandler, type Ref, type RuntimeApp, type RuntimeInstance, type SetDataBindingDiagnostic, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextIntersectionObserver, type SetupContextIntersectionObserverOptions, type SetupContextNativeInstance, type SetupContextRouter, type SetupContextSelectorQuery, type SetupContextWithTypeProps, type SetupFunction, type SetupFunctionWithTypeProps, type ShallowRef, type ShallowUnwrapRef, type StateTree, type StoreActions, type StoreDefinition, type StoreGeneric, type StoreManager, type StoreState, type StoreSubscribeOptions, type StoreToRefsResult, type SubscriptionCallback, type SubscriptionCallbackMutation, type TemplateRef, TemplateRefValue, TemplateRefs, type ToRefs, type HostMiniProgramTriggerEventOptions as TriggerEventOptions, type TtMiniProgramHostNamespace, type TtMiniProgramHostSourceContract, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseAllBoundingClientRectOptions, UseAllScrollOffsetOptions, UseAllSelectorFieldsOptions, type UseAsyncDerivationOptions, UseAsyncPullDownRefreshOptions, UseBoundingClientRectOptions, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, UseIntersectionObserverOptions, UseIntersectionObserverResult, type UseModelOptions, UseNavigationBarMetricsOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UsePageStackOptions, UseScrollOffsetOptions, UseSelectorFieldsOptions, UseSelectorQueryOptions, UseUpdatePerformanceListenerStopHandle, type VNode, type VNodeProps, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, type WechatMiniProgramHostNamespace, type WechatMiniProgramHostSourceContract, type WevuComponentConstructor, type WevuDefaults, type WevuDefinedComponent, WevuGlobalComponents, WevuGlobalDirectives, type WevuPageLayoutMap, type WevuPlugin, type WevuTypedRouterRouteMap, type WritableComputedOptions, type WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createPinia, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, disposePinia, effect, effectScope, endBatch, getActivePinia, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getNavigationBarMetrics, getReactiveVersion, hasInjectionContext, inject, injectGlobal, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, removeMutationRecorder, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolvePropValue, resolveRuntimePageLayoutName, runSetupFunction, setActivePinia, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, storeToRefs, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAsyncDerivation, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useCssModule, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
87
+ //# sourceMappingURL=vue-demi.d.mts.map
@@ -0,0 +1,19 @@
1
+ import { ComponentPropsOptions, ExtractDefaultPropTypes, ExtractPropTypes } from "./runtime/types/props/propTypes.mjs";
2
+ import "./runtime/types/props.mjs";
3
+ import { AllowedComponentProps, Component, ComponentCustomProps, ComponentOptionsMixin, ComponentProvideOptions, ComputedOptions, DefineComponent, Directive, EmitsOptions, MethodOptions, ObjectDirective, PublicProps, Ref, ShallowRef, ShallowUnwrapRef, SlotsType, VNode, VNodeProps } from "vue";
4
+ //#region src/vue-types.d.ts
5
+ type Ref$1<T = any, S = T> = Ref<T, S>;
6
+ type ShallowRef$1<T = any, S = T> = ShallowRef<T, S>;
7
+ type AllowedComponentProps$1 = AllowedComponentProps;
8
+ type ComponentCustomProps$1 = ComponentCustomProps;
9
+ type ComponentOptionsMixin$1 = ComponentOptionsMixin;
10
+ type DefineComponent$1<PropsOrPropOptions = ComponentPropsOptions, RawBindings = Record<string, any>, D = Record<string, any>, C extends ComputedOptions = ComputedOptions, M extends MethodOptions = MethodOptions, Mixin extends ComponentOptionsMixin = ComponentOptionsMixin, Extends extends ComponentOptionsMixin = ComponentOptionsMixin, E extends EmitsOptions = EmitsOptions, EE extends string = string, PP = PublicProps, Props = PropsOrPropOptions extends ComponentPropsOptions ? ExtractPropTypes<PropsOrPropOptions> : PropsOrPropOptions, Defaults = PropsOrPropOptions extends ComponentPropsOptions ? ExtractDefaultPropTypes<PropsOrPropOptions> : {}, S extends SlotsType = SlotsType, LC extends Record<string, Component> = {}, Directives extends Record<string, Directive> = {}, Exposed extends string = string, Provide extends ComponentProvideOptions = ComponentProvideOptions, MakeDefaultsOptional extends boolean = true, TypeRefs extends Record<string, unknown> = {}, TypeEl extends Element = any> = DefineComponent<PropsOrPropOptions, RawBindings, D, C, M, Mixin, Extends, E, EE, PP, Props, Defaults, S, LC, Directives, Exposed, Provide, MakeDefaultsOptional, TypeRefs, TypeEl>;
11
+ export type NativeComponent<Props = Record<string, any>> = new (...args: any[]) => InstanceType<DefineComponent$1<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Props, {}>>;
12
+ type ObjectDirective$1<HostElement = any, Value = any, Modifiers extends string = string, Arg = any> = ObjectDirective<HostElement, Value, Modifiers, Arg>;
13
+ type PublicProps$1 = PublicProps;
14
+ type ShallowUnwrapRef$1<T> = ShallowUnwrapRef<T>;
15
+ type VNode$1<HostNode = any, HostElement = any, ExtraProps = Record<string, any>> = VNode<HostNode, HostElement, ExtraProps>;
16
+ type VNodeProps$1 = VNodeProps;
17
+ //#endregion
18
+ export { AllowedComponentProps$1 as AllowedComponentProps, ComponentCustomProps$1 as ComponentCustomProps, ComponentOptionsMixin$1 as ComponentOptionsMixin, DefineComponent$1 as DefineComponent, ObjectDirective$1 as ObjectDirective, PublicProps$1 as PublicProps, Ref$1 as Ref, ShallowRef$1 as ShallowRef, ShallowUnwrapRef$1 as ShallowUnwrapRef, VNode$1 as VNode, VNodeProps$1 as VNodeProps };
19
+ //# sourceMappingURL=vue-types.d.mts.map
@@ -0,0 +1,3 @@
1
+ import { installRequestGlobals, installWebRuntimeGlobals } from "@wevu/web-apis";
2
+ export * from "@wevu/web-apis";
3
+ export { installRequestGlobals, installWebRuntimeGlobals };
@@ -35,10 +35,11 @@ import "./runtime/vueCompat.mjs";
35
35
  import { version } from "./version.mjs";
36
36
  import { takePendingRuntimeAppRegistration } from "./runtime/app/pending.mjs";
37
37
  import { installInlineEvents } from "./runtime/features/inlineEvents.mjs";
38
+ import { installJsxIslands } from "./runtime/features/jsxIslands.mjs";
38
39
  import { installLayout } from "./runtime/features/layout.mjs";
39
40
  import { installPatchStrategy } from "./runtime/features/patchStrategy.mjs";
40
41
  import { installSetDataHighFrequencyWarning } from "./runtime/features/setDataHighFrequencyWarning.mjs";
41
42
  import { installTemplateRefs } from "./runtime/features/templateRefs.mjs";
42
43
  import { Fragment, createTextVNode, createVNode, isVNode, mergeProps, normalizeJsxIsland, resolveComponent, resolveDirective, transformOn, vModelCheckbox, vModelRadio, vModelSelect, vModelText, vShow, withDirectives } from "./runtime/jsxIsland.mjs";
43
44
  import { createUniAppHost } from "./runtime/uniAppHost.mjs";
44
- export { Fragment, type HighFrequencyWarningMonitorOptions, INTERNAL_DEFAULTS_SCOPE_KEY, type LayoutHostBinding, type RuntimeCapabilityName, type RuntimeCapabilityRegistry, type ScopedSlotMountState, type SetDataScheduler, type SetDataSchedulerOptions, type TemplateRefBinding, callHookList, callHookReturn, createApp, createIsolatedWevuComponentDefinition, createTextVNode, createUniAppHost, createVNode, createWevuComponent, createWevuComponentDefinition, createWevuScopedSlotComponent, defineAppSetup, defineComponent, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentSetupContext, getNavigationBarMetrics, getWevuComponentLifecycleDefinition, hasInjectionContext, inject, injectGlobal, installInlineEvents, installLayout, installPatchStrategy, installScopedSlots, installSetDataHighFrequencyWarning, installTemplateRefs, isNoSetData, isVNode, markNoSetData, mergeModels, mergeProps, mountRuntimeInstance, normalizeJsxIsland, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, registerApp, registerComponent, resetWevuDefaults, resolveComponent, resolveDirective, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, takePendingRuntimeAppRegistration, teardownRuntimeInstance, transformOn, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useCssModule, useCssVars, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, vModelCheckbox, vModelRadio, vModelSelect, vModelText, vShow, version, waitForLayoutHost, withDirectives };
45
+ export { Fragment, type HighFrequencyWarningMonitorOptions, INTERNAL_DEFAULTS_SCOPE_KEY, type LayoutHostBinding, type RuntimeCapabilityName, type RuntimeCapabilityRegistry, type ScopedSlotMountState, type SetDataScheduler, type SetDataSchedulerOptions, type TemplateRefBinding, callHookList, callHookReturn, createApp, createIsolatedWevuComponentDefinition, createTextVNode, createUniAppHost, createVNode, createWevuComponent, createWevuComponentDefinition, createWevuScopedSlotComponent, defineAppSetup, defineComponent, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentSetupContext, getNavigationBarMetrics, getWevuComponentLifecycleDefinition, hasInjectionContext, inject, injectGlobal, installInlineEvents, installJsxIslands, installLayout, installPatchStrategy, installScopedSlots, installSetDataHighFrequencyWarning, installTemplateRefs, isNoSetData, isVNode, markNoSetData, mergeModels, mergeProps, mountRuntimeInstance, normalizeJsxIsland, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, provide, provideGlobal, registerApp, registerComponent, resetWevuDefaults, resolveComponent, resolveDirective, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, runSetupFunction, setCurrentInstance, setCurrentSetupContext, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, takePendingRuntimeAppRegistration, teardownRuntimeInstance, transformOn, use, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useCssModule, useCssVars, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, vModelCheckbox, vModelRadio, vModelSelect, vModelText, vShow, version, waitForLayoutHost, withDirectives };
@@ -1 +1 @@
1
- import{callHookList as e,callHookReturn as t,getCurrentInstance as n,getCurrentSetupContext as r,setCurrentInstance as i,setCurrentSetupContext as a}from"./runtime/hooks/base.mjs";import{onAddToFavorites as o,onAttached as s,onDetached as c,onError as l,onHide as u,onLaunch as d,onLoad as f,onMemoryWarning as p,onMoved as m,onPageNotFound as h,onPageScroll as g,onPullDownRefresh as _,onReachBottom as v,onReady as y,onResize as b,onRouteDone as x,onSaveExitState as S,onShareAppMessage as C,onShareTimeline as w,onShow as T,onTabItemTap as E,onThemeChange as D,onUnhandledRejection as O,onUnload as k}from"./runtime/hooks/register.mjs";import{onActivated as A,onBeforeMount as j,onBeforeUnmount as M,onBeforeUpdate as N,onDeactivated as P,onErrorCaptured as F,onMounted as I,onServerPrefetch as L,onUnmounted as R,onUpdated as z}from"./runtime/hooks/vue.mjs";import{useCssModule as B,useCssVars as V}from"./runtime/css.mjs";import{INTERNAL_DEFAULTS_SCOPE_KEY as H,resetWevuDefaults as U,setWevuDefaults as W}from"./runtime/defaults.mjs";import{useDisposables as G}from"./runtime/disposables.mjs";import{useElementIntersectionObserver as K}from"./runtime/elementIntersectionObserver.mjs";import{isNoSetData as q,markNoSetData as J}from"./runtime/noSetData.mjs";import{installTemplateRefs as Y}from"./runtime/features/templateRefs.mjs";import{installLayout as X}from"./runtime/features/layout.mjs";import{resolveLayoutBridge as Z,resolveLayoutHost as Q,resolveRuntimePageLayoutName as $,setPageLayout as ee,syncRuntimePageLayoutState as te,syncRuntimePageLayoutStateFromRuntime as ne,useLayoutBridge as re,useLayoutHosts as ie,usePageLayout as ae,waitForLayoutHost as oe}from"./runtime/features/publicLayout.mjs";import{useIntersectionObserver as se}from"./runtime/intersectionObserver.mjs";import{getCurrentPageStackSnapshot as ce,getNavigationBarMetrics as le,useNavigationBarMetrics as ue,usePageStack as de}from"./runtime/pageEnvironment.mjs";import{usePageScrollThrottle as fe}from"./runtime/pageScroll.mjs";import{setGlobalProvidedValue as pe}from"./runtime/provideStore.mjs";import{hasInjectionContext as me,inject as he,injectGlobal as ge,provide as _e,provideGlobal as ve}from"./runtime/provide.mjs";import{version as ye}from"./version.mjs";import{takePendingRuntimeAppRegistration as be}from"./runtime/app/pending.mjs";import{runSetupFunction as xe}from"./runtime/register/setup.mjs";import{mountRuntimeInstance as Se,setRuntimeSetDataVisibility as Ce,teardownRuntimeInstance as we}from"./runtime/register/runtimeInstance.mjs";import{registerApp as Te}from"./runtime/register/app.mjs";import{Fragment as Ee,createTextVNode as De,createVNode as Oe,isVNode as ke,mergeProps as Ae,normalizeJsxIsland as je,resolveComponent as Me,resolveDirective as Ne,transformOn as Pe,vModelCheckbox as Fe,vModelRadio as Ie,vModelSelect as Le,vModelText as Re,vShow as ze,withDirectives as Be}from"./runtime/jsxIsland.mjs";import{registerComponent as Ve}from"./runtime/register/component.mjs";import{createApp as He}from"./runtime/app.mjs";import{createIsolatedWevuComponentDefinition as Ue,createWevuComponent as We,createWevuComponentDefinition as Ge,defineComponent as Ke,getWevuComponentLifecycleDefinition as qe}from"./runtime/define.mjs";import{installInlineEvents as Je}from"./runtime/features/inlineEvents.mjs";import{installPatchStrategy as Ye}from"./runtime/features/patchStrategy.mjs";import{createWevuScopedSlotComponent as Xe,installScopedSlots as Ze}from"./runtime/features/scopedSlots.mjs";import{installSetDataHighFrequencyWarning as Qe}from"./runtime/features/setDataHighFrequencyWarning.mjs";import{useAsyncPullDownRefresh as $e}from"./runtime/pullDownRefresh.mjs";import{useBoundingClientRect as et,useScrollOffset as tt,useSelectorFields as nt,useSelectorQuery as rt}from"./runtime/selectorQuery.mjs";import{useUpdatePerformanceListener as it}from"./runtime/updatePerformance.mjs";import{defineAppSetup as at,use as ot}from"./runtime/use.mjs";import{useAttrs as st,useNativeInstance as ct,useSlots as lt}from"./runtime/vueCompat/context.mjs";import{mergeModels as ut,useBindModel as dt,useChangeModel as ft,useModel as pt}from"./runtime/vueCompat/model.mjs";import{useNativePageRouter as mt,useNativeRouter as ht}from"./runtime/vueCompat/router.mjs";import{useTemplateRef as gt}from"./runtime/vueCompat/templateRef.mjs";import{createUniAppHost as _t}from"./runtime/uniAppHost.mjs";export{Ee as Fragment,H as INTERNAL_DEFAULTS_SCOPE_KEY,e as callHookList,t as callHookReturn,He as createApp,Ue as createIsolatedWevuComponentDefinition,De as createTextVNode,_t as createUniAppHost,Oe as createVNode,We as createWevuComponent,Ge as createWevuComponentDefinition,Xe as createWevuScopedSlotComponent,at as defineAppSetup,Ke as defineComponent,n as getCurrentInstance,ce as getCurrentPageStackSnapshot,r as getCurrentSetupContext,le as getNavigationBarMetrics,qe as getWevuComponentLifecycleDefinition,me as hasInjectionContext,he as inject,ge as injectGlobal,Je as installInlineEvents,X as installLayout,Ye as installPatchStrategy,Ze as installScopedSlots,Qe as installSetDataHighFrequencyWarning,Y as installTemplateRefs,q as isNoSetData,ke as isVNode,J as markNoSetData,ut as mergeModels,Ae as mergeProps,Se as mountRuntimeInstance,je as normalizeJsxIsland,A as onActivated,o as onAddToFavorites,s as onAttached,j as onBeforeMount,M as onBeforeUnmount,N as onBeforeUpdate,P as onDeactivated,c as onDetached,l as onError,F as onErrorCaptured,u as onHide,d as onLaunch,f as onLoad,p as onMemoryWarning,I as onMounted,m as onMoved,h as onPageNotFound,g as onPageScroll,_ as onPullDownRefresh,v as onReachBottom,y as onReady,b as onResize,x as onRouteDone,S as onSaveExitState,L as onServerPrefetch,C as onShareAppMessage,w as onShareTimeline,T as onShow,E as onTabItemTap,D as onThemeChange,O as onUnhandledRejection,k as onUnload,R as onUnmounted,z as onUpdated,_e as provide,ve as provideGlobal,Te as registerApp,Ve as registerComponent,U as resetWevuDefaults,Me as resolveComponent,Ne as resolveDirective,Z as resolveLayoutBridge,Q as resolveLayoutHost,$ as resolveRuntimePageLayoutName,xe as runSetupFunction,i as setCurrentInstance,a as setCurrentSetupContext,pe as setGlobalProvidedValue,ee as setPageLayout,Ce as setRuntimeSetDataVisibility,W as setWevuDefaults,te as syncRuntimePageLayoutState,ne as syncRuntimePageLayoutStateFromRuntime,be as takePendingRuntimeAppRegistration,we as teardownRuntimeInstance,Pe as transformOn,ot as use,$e as useAsyncPullDownRefresh,st as useAttrs,dt as useBindModel,et as useBoundingClientRect,ft as useChangeModel,B as useCssModule,V as useCssVars,G as useDisposables,K as useElementIntersectionObserver,se as useIntersectionObserver,re as useLayoutBridge,ie as useLayoutHosts,pt as useModel,ct as useNativeInstance,mt as useNativePageRouter,ht as useNativeRouter,ue as useNavigationBarMetrics,ae as usePageLayout,fe as usePageScrollThrottle,de as usePageStack,tt as useScrollOffset,nt as useSelectorFields,rt as useSelectorQuery,lt as useSlots,gt as useTemplateRef,it as useUpdatePerformanceListener,Fe as vModelCheckbox,Ie as vModelRadio,Le as vModelSelect,Re as vModelText,ze as vShow,ye as version,oe as waitForLayoutHost,Be as withDirectives};
1
+ import{callHookList as e,callHookReturn as t,getCurrentInstance as n,getCurrentSetupContext as r,setCurrentInstance as i,setCurrentSetupContext as a}from"./runtime/hooks/base.mjs";import{onAddToFavorites as o,onAttached as s,onDetached as c,onError as l,onHide as u,onLaunch as d,onLoad as f,onMemoryWarning as p,onMoved as m,onPageNotFound as h,onPageScroll as g,onPullDownRefresh as _,onReachBottom as v,onReady as y,onResize as b,onRouteDone as x,onSaveExitState as S,onShareAppMessage as C,onShareTimeline as w,onShow as T,onTabItemTap as E,onThemeChange as D,onUnhandledRejection as O,onUnload as k}from"./runtime/hooks/register.mjs";import{onActivated as A,onBeforeMount as j,onBeforeUnmount as M,onBeforeUpdate as N,onDeactivated as P,onErrorCaptured as F,onMounted as I,onServerPrefetch as L,onUnmounted as R,onUpdated as z}from"./runtime/hooks/vue.mjs";import{useCssModule as B,useCssVars as V}from"./runtime/css.mjs";import{INTERNAL_DEFAULTS_SCOPE_KEY as H,resetWevuDefaults as U,setWevuDefaults as W}from"./runtime/defaults.mjs";import{useDisposables as G}from"./runtime/disposables.mjs";import{useElementIntersectionObserver as K}from"./runtime/elementIntersectionObserver.mjs";import{isNoSetData as q,markNoSetData as J}from"./runtime/noSetData.mjs";import{installTemplateRefs as Y}from"./runtime/features/templateRefs.mjs";import{installLayout as X}from"./runtime/features/layout.mjs";import{resolveLayoutBridge as Z,resolveLayoutHost as Q,resolveRuntimePageLayoutName as $,setPageLayout as ee,syncRuntimePageLayoutState as te,syncRuntimePageLayoutStateFromRuntime as ne,useLayoutBridge as re,useLayoutHosts as ie,usePageLayout as ae,waitForLayoutHost as oe}from"./runtime/features/publicLayout.mjs";import{useIntersectionObserver as se}from"./runtime/intersectionObserver.mjs";import{getCurrentPageStackSnapshot as ce,getNavigationBarMetrics as le,useNavigationBarMetrics as ue,usePageStack as de}from"./runtime/pageEnvironment.mjs";import{usePageScrollThrottle as fe}from"./runtime/pageScroll.mjs";import{setGlobalProvidedValue as pe}from"./runtime/provideStore.mjs";import{hasInjectionContext as me,inject as he,injectGlobal as ge,provide as _e,provideGlobal as ve}from"./runtime/provide.mjs";import{version as ye}from"./version.mjs";import{takePendingRuntimeAppRegistration as be}from"./runtime/app/pending.mjs";import{runSetupFunction as xe}from"./runtime/register/setup.mjs";import{mountRuntimeInstance as Se,setRuntimeSetDataVisibility as Ce,teardownRuntimeInstance as we}from"./runtime/register/runtimeInstance.mjs";import{registerApp as Te}from"./runtime/register/app.mjs";import{registerComponent as Ee}from"./runtime/register/component.mjs";import{createApp as De}from"./runtime/app.mjs";import{createIsolatedWevuComponentDefinition as Oe,createWevuComponent as ke,createWevuComponentDefinition as Ae,defineComponent as je,getWevuComponentLifecycleDefinition as Me}from"./runtime/define.mjs";import{installInlineEvents as Ne}from"./runtime/features/inlineEvents.mjs";import{Fragment as Pe,createTextVNode as Fe,createVNode as Ie,isVNode as Le,mergeProps as Re,normalizeJsxIsland as ze,resolveComponent as Be,resolveDirective as Ve,transformOn as He,vModelCheckbox as Ue,vModelRadio as We,vModelSelect as Ge,vModelText as Ke,vShow as qe,withDirectives as Je}from"./runtime/jsxIsland.mjs";import{installJsxIslands as Ye}from"./runtime/features/jsxIslands.mjs";import{installPatchStrategy as Xe}from"./runtime/features/patchStrategy.mjs";import{createWevuScopedSlotComponent as Ze,installScopedSlots as Qe}from"./runtime/features/scopedSlots.mjs";import{installSetDataHighFrequencyWarning as $e}from"./runtime/features/setDataHighFrequencyWarning.mjs";import{useAsyncPullDownRefresh as et}from"./runtime/pullDownRefresh.mjs";import{useBoundingClientRect as tt,useScrollOffset as nt,useSelectorFields as rt,useSelectorQuery as it}from"./runtime/selectorQuery.mjs";import{useUpdatePerformanceListener as at}from"./runtime/updatePerformance.mjs";import{defineAppSetup as ot,use as st}from"./runtime/use.mjs";import{useAttrs as ct,useNativeInstance as lt,useSlots as ut}from"./runtime/vueCompat/context.mjs";import{mergeModels as dt,useBindModel as ft,useChangeModel as pt,useModel as mt}from"./runtime/vueCompat/model.mjs";import{useNativePageRouter as ht,useNativeRouter as gt}from"./runtime/vueCompat/router.mjs";import{useTemplateRef as _t}from"./runtime/vueCompat/templateRef.mjs";import{createUniAppHost as vt}from"./runtime/uniAppHost.mjs";export{Pe as Fragment,H as INTERNAL_DEFAULTS_SCOPE_KEY,e as callHookList,t as callHookReturn,De as createApp,Oe as createIsolatedWevuComponentDefinition,Fe as createTextVNode,vt as createUniAppHost,Ie as createVNode,ke as createWevuComponent,Ae as createWevuComponentDefinition,Ze as createWevuScopedSlotComponent,ot as defineAppSetup,je as defineComponent,n as getCurrentInstance,ce as getCurrentPageStackSnapshot,r as getCurrentSetupContext,le as getNavigationBarMetrics,Me as getWevuComponentLifecycleDefinition,me as hasInjectionContext,he as inject,ge as injectGlobal,Ne as installInlineEvents,Ye as installJsxIslands,X as installLayout,Xe as installPatchStrategy,Qe as installScopedSlots,$e as installSetDataHighFrequencyWarning,Y as installTemplateRefs,q as isNoSetData,Le as isVNode,J as markNoSetData,dt as mergeModels,Re as mergeProps,Se as mountRuntimeInstance,ze as normalizeJsxIsland,A as onActivated,o as onAddToFavorites,s as onAttached,j as onBeforeMount,M as onBeforeUnmount,N as onBeforeUpdate,P as onDeactivated,c as onDetached,l as onError,F as onErrorCaptured,u as onHide,d as onLaunch,f as onLoad,p as onMemoryWarning,I as onMounted,m as onMoved,h as onPageNotFound,g as onPageScroll,_ as onPullDownRefresh,v as onReachBottom,y as onReady,b as onResize,x as onRouteDone,S as onSaveExitState,L as onServerPrefetch,C as onShareAppMessage,w as onShareTimeline,T as onShow,E as onTabItemTap,D as onThemeChange,O as onUnhandledRejection,k as onUnload,R as onUnmounted,z as onUpdated,_e as provide,ve as provideGlobal,Te as registerApp,Ee as registerComponent,U as resetWevuDefaults,Be as resolveComponent,Ve as resolveDirective,Z as resolveLayoutBridge,Q as resolveLayoutHost,$ as resolveRuntimePageLayoutName,xe as runSetupFunction,i as setCurrentInstance,a as setCurrentSetupContext,pe as setGlobalProvidedValue,ee as setPageLayout,Ce as setRuntimeSetDataVisibility,W as setWevuDefaults,te as syncRuntimePageLayoutState,ne as syncRuntimePageLayoutStateFromRuntime,be as takePendingRuntimeAppRegistration,we as teardownRuntimeInstance,He as transformOn,st as use,et as useAsyncPullDownRefresh,ct as useAttrs,ft as useBindModel,tt as useBoundingClientRect,pt as useChangeModel,B as useCssModule,V as useCssVars,G as useDisposables,K as useElementIntersectionObserver,se as useIntersectionObserver,re as useLayoutBridge,ie as useLayoutHosts,mt as useModel,lt as useNativeInstance,ht as useNativePageRouter,gt as useNativeRouter,ue as useNavigationBarMetrics,ae as usePageLayout,fe as usePageScrollThrottle,de as usePageStack,nt as useScrollOffset,rt as useSelectorFields,it as useSelectorQuery,ut as useSlots,_t as useTemplateRef,at as useUpdatePerformanceListener,Ue as vModelCheckbox,We as vModelRadio,Ge as vModelSelect,Ke as vModelText,qe as vShow,ye as version,oe as waitForLayoutHost,Je as withDirectives};
package/dist/package.mjs CHANGED
@@ -1 +1 @@
1
- var e=`7.2.1`;export{e as version};
1
+ var e=`7.3.0`;export{e as version};
@@ -1 +1 @@
1
- import{batch as e,onScopeDispose as t,runWithoutTracking as n}from"./core.mjs";import{reactive as r}from"./reactive.mjs";import{readonly as i}from"./readonly.mjs";import{AbortControllerPolyfill as a}from"@wevu/web-apis/abort";const o=Promise.resolve();function s(){let e;return{promise:new Promise(t=>{e=t}),resolve:e}}function c(c,l={}){var u;let d={status:`idle`,value:void 0,error:void 0},f=r(d),p,m,h=0,g=!1,_=!1;function v(e){if(_||e!==h)return;let t=m;m=void 0,t==null||t.resolve()}function y(t,n){if(!(_||t!==h)){p=void 0,g=!0;try{e(()=>{f.status=`ready`,f.value=n,f.error=void 0})}finally{v(t)}}}function b(t,n){if(!(_||t!==h)){p=void 0;try{e(()=>{f.status=`error`,f.error=n,g||(f.value=void 0)})}finally{v(t)}}}function x(){var t;if(_)return o;let r=(t=m)==null?s():t;m=r;let i=++h,l=p,u=new(typeof AbortController==`function`?AbortController:a);p=u;try{l==null||l.abort()}catch(e){}return _||i!==h||(e(()=>{f.status=g?`refreshing`:`initial-pending`,f.error=void 0}),_||i!==h)||n(()=>{new Promise(e=>{e(c({signal:u.signal}))}).then(e=>y(i,e),e=>b(i,e)).catch(e=>{setTimeout(()=>{throw e},0)})}),r.promise}function S(){if(_)return;_=!0,h+=1;let t=p;p=void 0;try{t==null||t.abort()}catch(e){}try{e(()=>{f.status=`disposed`,f.value=void 0,f.error=void 0})}finally{g=!1;let e=m;m=void 0,e==null||e.resolve()}}Object.defineProperties(d,{refresh:{value:x},dispose:{value:S}});let C=i(f);return t(S),((u=l.immediate)==null||u)&&x(),C}export{c as useAsyncDerivation};
1
+ import{batch as e,onScopeDispose as t,runWithoutTracking as n}from"./core.mjs";import{reactive as r}from"./reactive.mjs";import{readonly as i}from"./readonly.mjs";import{AbortControllerPolyfill as a}from"@wevu/web-apis/abort";const o=Promise.resolve();function s(){let e;return{promise:new Promise(t=>{e=t}),resolve:e}}function c(c,l={}){let u={status:`idle`,value:void 0,error:void 0},d=r(u),f,p,m=0,h=!1,g=!1;function _(e){if(g||e!==m)return;let t=p;p=void 0,t?.resolve()}function v(t,n){if(!(g||t!==m)){f=void 0,h=!0;try{e(()=>{d.status=`ready`,d.value=n,d.error=void 0})}finally{_(t)}}}function y(t,n){if(!(g||t!==m)){f=void 0;try{e(()=>{d.status=`error`,d.error=n,h||(d.value=void 0)})}finally{_(t)}}}function b(){if(g)return o;let t=p??s();p=t;let r=++m,i=f,l=new(typeof AbortController==`function`?AbortController:a);f=l;try{i?.abort()}catch{}return g||r!==m||(e(()=>{d.status=h?`refreshing`:`initial-pending`,d.error=void 0}),g||r!==m)||n(()=>{new Promise(e=>{e(c({signal:l.signal}))}).then(e=>v(r,e),e=>y(r,e)).catch(e=>{setTimeout(()=>{throw e},0)})}),t.promise}function x(){if(g)return;g=!0,m+=1;let t=f;f=void 0;try{t?.abort()}catch{}try{e(()=>{d.status=`disposed`,d.value=void 0,d.error=void 0})}finally{h=!1;let e=p;p=void 0,e?.resolve()}}Object.defineProperties(u,{refresh:{value:b},dispose:{value:x}});let S=i(d);return t(x),(l.immediate??!0)&&b(),S}export{c as useAsyncDerivation};
@@ -1 +1 @@
1
- import{queueJob as e}from"../scheduler.mjs";import t from"../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/defineProperty.mjs";const n=/* @__PURE__ */ new WeakMap;let r=null;const i=[];let a=!0,o,s=0,c=!1;const l=/* @__PURE__ */ new Set,u=/* @__PURE__ */ new Set;function d(e){if(e.active){if(e.scheduler){let t=o;o=e._scope;try{e.scheduler()}finally{o=t}return}e()}}function f(e){if(s>0||c){u.add(e);return}u.delete(e),e()}function p(){s++}function m(e){let t=e.values().next();if(!t.done)return e.delete(t.value),t.value}function h(){let e,t=!1;c=!0;try{for(;l.size;){let n=m(l);if(n)try{d(n)}catch(n){t||(e=n,t=!0)}}}finally{c=!1}for(;u.size;){let n=u.values().next().value;u.delete(n);try{n()}catch(n){t||(e=n,t=!0)}}if(t)throw e}function g(){s!==0&&(s--,s===0&&!c&&h())}function _(e){p();try{return e()}finally{g()}}function v(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function y(e){var t;e.active&&(e.active=!1,v(e),(t=e.onStop)==null||t.call(e))}var b=class{constructor(e=!1){if(this.detached=e,t(this,`active`,!0),t(this,`effects`,[]),t(this,`cleanups`,[]),t(this,`parent`,void 0),t(this,`scopes`,void 0),!e&&o){var n;if(!o.active){this.active=!1;return}this.parent=o,((n=o).scopes||(n.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=o;o=this;try{return e()}finally{o=t}}stop(){if(!this.active)return;this.active=!1;let e=o;o=this;let t,n=!1,r=e=>{n||(t=e,n=!0)};try{let e=this.effects.splice(0);for(let t of e)try{y(t)}catch(e){r(e)}let t=this.cleanups.splice(0);for(let e of t)try{e()}catch(e){r(e)}let n=this.scopes;if(this.scopes=void 0,n){for(let e of n)try{e.stop()}catch(e){r(e)}n.length=0}}finally{var i;if((i=this.parent)!=null&&i.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0,o=e}if(n)throw t}};function x(e=!1){return new b(e)}function S(){return o}function C(e){o!=null&&o.active&&o.cleanups.push(e)}function w(e){let t=a;a=!1;try{return e()}finally{a=t}}function T(e){if(o){if(o.active){o.effects.push(e);return}y(e)}}function E(e,t={}){let n=function(){if(!n.active||n._running)return e();v(n);let t=o;o=n._scope;let s=a;try{return a=!0,n._running=!0,i.push(n),r=n,e()}finally{var c;i.pop(),r=(c=i[i.length-1])==null?null:c,n._running=!1,o=t,a=s}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n._scope=o,n}function D(e,t,n){let r=E(e,t);return r._computed=n,T(r),t.lazy||r(),r}function O(e,t={}){return D(e,t,!1)}function k(e,t={}){return D(e,t,!0)}function A(e,t){if(!a||!r)return;let i=n.get(e);i||(i=/* @__PURE__ */ new Map,n.set(e,i));let o=i.get(t);o||(o=/* @__PURE__ */ new Set,i.set(t,o)),o.has(r)||(o.add(r),r.deps.push(o))}function j(e){if(!e._running){if(e._computed){d(e);return}if(s>0||c){l.add(e);return}d(e)}}function M(e,t){let i=n.get(e);if(!i)return;let a=i.get(t);if(!a)return;let o=/* @__PURE__ */ new Set;a.forEach(e=>{e!==r&&o.add(e)}),o.forEach(j)}function N(e){a&&r&&(e.has(r)||(e.add(r),r.deps.push(e)))}function P(e){new Set(e).forEach(j)}export{_ as batch,k as createComputedEffect,E as createReactiveEffect,O as effect,x as effectScope,g as endBatch,S as getCurrentScope,C as onScopeDispose,f as queueBatchCallback,e as queueJob,w as runWithoutTracking,p as startBatch,y as stop,A as track,N as trackEffects,M as trigger,P as triggerEffects};
1
+ import{queueJob as e}from"../scheduler.mjs";import t from"../_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/defineProperty.mjs";const n=/* @__PURE__ */ new WeakMap;let r=null;const i=[];let a=!0,o,s=0,c=!1;const l=/* @__PURE__ */ new Set,u=/* @__PURE__ */ new Set;function d(e){if(e.active){if(e.scheduler){let t=o;o=e._scope;try{e.scheduler()}finally{o=t}return}e()}}function f(e){if(s>0||c){u.add(e);return}u.delete(e),e()}function p(){s++}function m(e){let t=e.values().next();if(!t.done)return e.delete(t.value),t.value}function h(){let e,t=!1;c=!0;try{for(;l.size;){let n=m(l);if(n)try{d(n)}catch(n){t||(e=n,t=!0)}}}finally{c=!1}for(;u.size;){let n=u.values().next().value;u.delete(n);try{n()}catch(n){t||(e=n,t=!0)}}if(t)throw e}function g(){s!==0&&(s--,s===0&&!c&&h())}function _(e){p();try{return e()}finally{g()}}function v(e){let{deps:t}=e;for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}function y(e){e.active&&(e.active=!1,v(e),e.onStop?.())}var b=class{constructor(e=!1){if(this.detached=e,t(this,`active`,!0),t(this,`effects`,[]),t(this,`cleanups`,[]),t(this,`parent`,void 0),t(this,`scopes`,void 0),!e&&o){var n;if(!o.active){this.active=!1;return}this.parent=o,((n=o).scopes||(n.scopes=[])).push(this)}}run(e){if(!this.active)return;let t=o;o=this;try{return e()}finally{o=t}}stop(){if(!this.active)return;this.active=!1;let e=o;o=this;let t,n=!1,r=e=>{n||(t=e,n=!0)};try{let e=this.effects.splice(0);for(let t of e)try{y(t)}catch(e){r(e)}let t=this.cleanups.splice(0);for(let e of t)try{e()}catch(e){r(e)}let n=this.scopes;if(this.scopes=void 0,n){for(let e of n)try{e.stop()}catch(e){r(e)}n.length=0}}finally{if(this.parent?.scopes){let e=this.parent.scopes.indexOf(this);e>=0&&this.parent.scopes.splice(e,1)}this.parent=void 0,o=e}if(n)throw t}};function x(e=!1){return new b(e)}function S(){return o}function C(e){o?.active&&o.cleanups.push(e)}function w(e){let t=a;a=!1;try{return e()}finally{a=t}}function T(e){if(o){if(o.active){o.effects.push(e);return}y(e)}}function E(e,t={}){let n=function(){if(!n.active||n._running)return e();v(n);let t=o;o=n._scope;let s=a;try{return a=!0,n._running=!0,i.push(n),r=n,e()}finally{i.pop(),r=i[i.length-1]??null,n._running=!1,o=t,a=s}};return n.deps=[],n.scheduler=t.scheduler,n.onStop=t.onStop,n.active=!0,n._running=!1,n._fn=e,n._scope=o,n}function D(e,t,n){let r=E(e,t);return r._computed=n,T(r),t.lazy||r(),r}function O(e,t={}){return D(e,t,!1)}function k(e,t={}){return D(e,t,!0)}function A(e,t){if(!a||!r)return;let i=n.get(e);i||(i=/* @__PURE__ */ new Map,n.set(e,i));let o=i.get(t);o||(o=/* @__PURE__ */ new Set,i.set(t,o)),o.has(r)||(o.add(r),r.deps.push(o))}function j(e){if(!e._running){if(e._computed){d(e);return}if(s>0||c){l.add(e);return}d(e)}}function M(e,t){let i=n.get(e);if(!i)return;let a=i.get(t);if(!a)return;let o=/* @__PURE__ */ new Set;a.forEach(e=>{e!==r&&o.add(e)}),o.forEach(j)}function N(e){a&&r&&(e.has(r)||(e.add(r),r.deps.push(e)))}function P(e){new Set(e).forEach(j)}export{_ as batch,k as createComputedEffect,E as createReactiveEffect,O as effect,x as effectScope,g as endBatch,S as getCurrentScope,C as onScopeDispose,f as queueBatchCallback,e as queueJob,w as runWithoutTracking,p as startBatch,y as stop,A as track,N as trackEffects,M as trigger,P as triggerEffects};
@@ -1 +1 @@
1
- import{track as e}from"../core.mjs";import{adoptReactiveRoot as t,indexPatchNode as n,rawMultiParentSet as r,rawParentMap as i,rawParentsMap as a,rawPathMap as o,rawRootMap as s,rawVersionMap as c,recordParentLink as l,rootPatchNodesMap as u}from"./patchState.mjs";import{VERSION_KEY as d,isObject as f,toRaw as p}from"./shared.mjs";function m(e,i){let a=p(e);o.set(a,``),n(a,a);let s=i==null?void 0:i.shouldIncludeTopKey,c=typeof(i==null?void 0:i.maxDepth)==`number`?Math.max(0,Math.floor(i.maxDepth)):1/0,u=typeof(i==null?void 0:i.maxKeys)==`number`?Math.max(0,Math.floor(i.maxKeys)):1/0,d=/* @__PURE__ */ new WeakSet,m=[{current:a,path:``,depth:0}],h=0;for(;m.length;){let e=m.pop();if(d.has(e.current)||(d.add(e.current),o.set(e.current,e.path),n(a,e.current),h+=1,h>=u)||e.depth>=c||Array.isArray(e.current))continue;let i=Object.entries(e.current);for(let[c,u]of i){if(e.path===``&&s&&!s(c)||!f(u)||u.__r_skip)continue;let i=p(u);if(t(i,e.current),l(i,e.current,c),!r.has(i)){let t=e.path?`${e.path}.${c}`:c;o.set(i,t)}n(a,i),m.push({current:i,path:e.path?`${e.path}.${c}`:c,depth:e.depth+1})}}}function h(e){let t=p(e),n=u.get(t);if(!n){o.delete(t);return}for(let e of n)i.delete(e),a.delete(e),o.delete(e),r.delete(e),s.delete(e),c.delete(e);u.delete(t)}function g(t){let n=p(t);e(n,d)}export{h as clearPatchIndices,m as prelinkReactiveTree,g as touchReactive};
1
+ import{track as e}from"../core.mjs";import{adoptReactiveRoot as t,indexPatchNode as n,rawMultiParentSet as r,rawParentMap as i,rawParentsMap as a,rawPathMap as o,rawRootMap as s,rawVersionMap as c,recordParentLink as l,rootPatchNodesMap as u}from"./patchState.mjs";import{VERSION_KEY as d,isObject as f,toRaw as p}from"./shared.mjs";function m(e,i){let a=p(e);o.set(a,``),n(a,a);let s=i?.shouldIncludeTopKey,c=typeof i?.maxDepth==`number`?Math.max(0,Math.floor(i.maxDepth)):1/0,u=typeof i?.maxKeys==`number`?Math.max(0,Math.floor(i.maxKeys)):1/0,d=/* @__PURE__ */ new WeakSet,m=[{current:a,path:``,depth:0}],h=0;for(;m.length;){let e=m.pop();if(d.has(e.current)||(d.add(e.current),o.set(e.current,e.path),n(a,e.current),h+=1,h>=u)||e.depth>=c||Array.isArray(e.current))continue;let i=Object.entries(e.current);for(let[c,u]of i){if(e.path===``&&s&&!s(c)||!f(u)||u.__r_skip)continue;let i=p(u);if(t(i,e.current),l(i,e.current,c),!r.has(i)){let t=e.path?`${e.path}.${c}`:c;o.set(i,t)}n(a,i),m.push({current:i,path:e.path?`${e.path}.${c}`:c,depth:e.depth+1})}}}function h(e){let t=p(e),n=u.get(t);if(!n){o.delete(t);return}for(let e of n)i.delete(e),a.delete(e),o.delete(e),r.delete(e),s.delete(e),c.delete(e);u.delete(t)}function g(t){let n=p(t);e(n,d)}export{h as clearPatchIndices,m as prelinkReactiveTree,g as touchReactive};
@@ -1 +1 @@
1
- import{mutationRecorders as e}from"./mutation.mjs";const t=/* @__PURE__ */ new WeakMap,n=/* @__PURE__ */ new WeakMap,r=/* @__PURE__ */ new WeakMap,i=/* @__PURE__ */ new WeakMap,a=/* @__PURE__ */ new WeakSet,o=/* @__PURE__ */ new WeakMap,s=/* @__PURE__ */ new WeakMap;function c(e){let t=s.get(e);return t||(t=/* @__PURE__ */ new Set,s.set(e,t)),t}function l(e,t){c(e).add(t)}function u(e){var t;n.set(e,((t=n.get(e))==null?0:t)+1)}function d(e){var t;return(t=n.get(e))==null?0:t}function f(e,n){var r;let i=(r=t.get(n))==null?n:r,a=t.get(e);(!a||a===e||a===n)&&t.set(e,i)}function p(e){let t=/* @__PURE__ */ new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=i.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),u(e),n.push(e))}}function m(e){let t=i.get(e);if(!t){a.delete(e),r.delete(e);return}let n,o,s=0;for(let[e,r]of t){for(let t of r){if(s+=1,s>1)break;n=e,o=t}if(s>1)break}if(s===1&&n&&o){a.delete(e),r.set(e,{parent:n,key:o});return}a.add(e),r.delete(e)}function h(n,o,s){if(typeof s!=`string`){a.add(n),r.delete(n);return}if(e.size){var c;let e=(c=t.get(o))==null?o:c;l(e,o),l(e,n)}let u=i.get(n);u||(u=/* @__PURE__ */ new Map,i.set(n,u));let d=u.get(o);d||(d=/* @__PURE__ */ new Set,u.set(o,d)),d.add(s),m(n)}function g(e,t,n){let r=i.get(e);if(!r)return;let a=r.get(t);a&&(a.delete(n),a.size||r.delete(t),r.size||i.delete(e),m(e))}function _(e,t){if(t===e)return[];if(a.has(t))return;let n=[],i=t;for(let t=0;t<2e3;t++){if(i===e)return n.reverse();if(a.has(i))return;let t=r.get(i);if(!t||typeof t.key!=`string`)return;n.push(t.key),i=t.parent}}export{f as adoptReactiveRoot,p as bumpAncestorVersions,u as bumpRawVersion,d as getRawVersion,l as indexPatchNode,a as rawMultiParentSet,r as rawParentMap,i as rawParentsMap,o as rawPathMap,t as rawRootMap,n as rawVersionMap,h as recordParentLink,g as removeParentLink,_ as resolvePathToTarget,s as rootPatchNodesMap};
1
+ import{mutationRecorders as e}from"./mutation.mjs";const t=/* @__PURE__ */ new WeakMap,n=/* @__PURE__ */ new WeakMap,r=/* @__PURE__ */ new WeakMap,i=/* @__PURE__ */ new WeakMap,a=/* @__PURE__ */ new WeakSet,o=/* @__PURE__ */ new WeakMap,s=/* @__PURE__ */ new WeakMap;function c(e){let t=s.get(e);return t||(t=/* @__PURE__ */ new Set,s.set(e,t)),t}function l(e,t){c(e).add(t)}function u(e){n.set(e,(n.get(e)??0)+1)}function d(e){return n.get(e)??0}function f(e,n){let r=t.get(n)??n,i=t.get(e);(!i||i===e||i===n)&&t.set(e,r)}function p(e){let t=/* @__PURE__ */ new Set,n=[e];for(let e=0;e<2e3&&n.length;e++){let e=n.pop(),r=i.get(e);if(r)for(let e of r.keys())t.has(e)||(t.add(e),u(e),n.push(e))}}function m(e){let t=i.get(e);if(!t){a.delete(e),r.delete(e);return}let n,o,s=0;for(let[e,r]of t){for(let t of r){if(s+=1,s>1)break;n=e,o=t}if(s>1)break}if(s===1&&n&&o){a.delete(e),r.set(e,{parent:n,key:o});return}a.add(e),r.delete(e)}function h(n,o,s){if(typeof s!=`string`){a.add(n),r.delete(n);return}if(e.size){let e=t.get(o)??o;l(e,o),l(e,n)}let c=i.get(n);c||(c=/* @__PURE__ */ new Map,i.set(n,c));let u=c.get(o);u||(u=/* @__PURE__ */ new Set,c.set(o,u)),u.add(s),m(n)}function g(e,t,n){let r=i.get(e);if(!r)return;let a=r.get(t);a&&(a.delete(n),a.size||r.delete(t),r.size||i.delete(e),m(e))}function _(e,t){if(t===e)return[];if(a.has(t))return;let n=[],i=t;for(let t=0;t<2e3;t++){if(i===e)return n.reverse();if(a.has(i))return;let t=r.get(i);if(!t||typeof t.key!=`string`)return;n.push(t.key),i=t.parent}}export{f as adoptReactiveRoot,p as bumpAncestorVersions,u as bumpRawVersion,d as getRawVersion,l as indexPatchNode,a as rawMultiParentSet,r as rawParentMap,i as rawParentsMap,o as rawPathMap,t as rawRootMap,n as rawVersionMap,h as recordParentLink,g as removeParentLink,_ as resolvePathToTarget,s as rootPatchNodesMap};
@@ -1 +1 @@
1
- function e(e){return typeof e==`object`&&!!e}function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function n(e){return Object.prototype.toString.call(e).slice(8,-1)}function r(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 0;default:return 0}}function i(e){return e.__r_skip?0:r(n(e))}const a=Symbol(`wevu.version`);function o(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function s(e){var t;return(t=e==null?void 0:e.__r_raw)==null?e:t}export{a as VERSION_KEY,i as getTargetType,t as hasOwn,o as isArrayIndexKey,e as isObject,s as toRaw,n as toRawType};
1
+ function e(e){return typeof e==`object`&&!!e}function t(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function n(e){return Object.prototype.toString.call(e).slice(8,-1)}function r(e){switch(e){case`Object`:case`Array`:return 1;case`Map`:case`Set`:case`WeakMap`:case`WeakSet`:return 0;default:return 0}}function i(e){return e.__r_skip?0:r(n(e))}const a=Symbol(`wevu.version`);function o(e){if(!e)return!1;let t=e.charCodeAt(0);if(t<48||t>57)return!1;let n=Number(e);return Number.isInteger(n)&&n>=0&&String(n)===e}function s(e){return e?.__r_raw??e}export{a as VERSION_KEY,i as getTargetType,t as hasOwn,o as isArrayIndexKey,e as isObject,s as toRaw,n as toRawType};
@@ -1 +1 @@
1
- import{batch as e,track as t,trigger as n}from"./core.mjs";import{addMutationRecorder as r,mutationRecorders as i,removeMutationRecorder as a}from"./reactive/mutation.mjs";import{adoptReactiveRoot as o,bumpAncestorVersions as s,bumpRawVersion as c,getRawVersion as l,rawMultiParentSet as u,rawParentsMap as d,rawPathMap as f,rawRootMap as p,rawVersionMap as m,recordParentLink as h,removeParentLink as g,resolvePathToTarget as _}from"./reactive/patchState.mjs";import{VERSION_KEY as v,getTargetType as y,hasOwn as b,isArrayIndexKey as x,isObject as S,toRaw as C}from"./reactive/shared.mjs";import{rawMap as w,reactiveMap as T}from"./reactive/state.mjs";import{clearPatchIndices as E,prelinkReactiveTree as D,touchReactive as O}from"./reactive/patch.mjs";import{isShallowReactive as k,shallowReactive as A}from"./reactive/shallow.mjs";function j(e){let t=C(e);return l(t)}function M(e,t,n){var r;if(!i.size||typeof t!=`string`||t.startsWith(`__r_`))return;let a=(r=p.get(e))==null?e:r,o=Array.isArray(e)&&(t===`length`||x(t))?`array`:`property`,s=_(a,e);if(!s){let r=/* @__PURE__ */ new Set,s=d.get(e);if(s)for(let[e,t]of s){var c;let n=f.get(e),i=n?n.split(`.`,1)[0]:void 0,o=i||(c=_(a,e))==null?void 0:c[0];for(let e of t){var l;typeof e==`string`&&r.add((l=i==null?o:i)==null?e:l)}}else r.add(t);for(let e of i)e({root:a,kind:o,op:n,path:void 0,fallbackTopKeys:r.size?[...r]:void 0});return}let u=s.findIndex(e=>x(e));if(u!==-1){let e=s.slice(0,u).join(`.`)||void 0;for(let t of i)t({root:a,kind:`array`,op:n,path:e});return}let m=s.length?s.join(`.`):``,h=o===`array`?m||void 0:m?`${m}.${t}`:t;for(let e of i)e({root:a,kind:o,op:n,path:h})}const N={get(e,n,r){if(n===`__r_isReactive`)return!0;if(n===`__r_raw`)return e;let a=Reflect.get(e,n,r);if(t(e,n),S(a)){var s;if(a.__r_skip)return a;let t=(s=a==null?void 0:a.__r_raw)==null?a:s;o(t,e),h(t,e,n);let r=f.get(e);if(i.size&&typeof n==`string`&&r!=null&&!u.has(t)){let e=r?`${r}.${n}`:n;f.set(t,e)}return P(a)}return a},set(t,r,a,l){let d=b(t,r),m=Array.isArray(t),_=m?t.length:0,y=Reflect.get(t,r,l),w=S(y)?C(y):y,T=S(a)?C(a):a;if(Object.is(w,T))return!0;let E=Reflect.set(t,r,a,l);if(E){let a=S(w)?w:void 0;if(a&&g(a,t,r),S(T)&&!T.__r_skip){let e=T;o(e,t),h(e,t,r);let n=f.get(t);if(i.size&&typeof r==`string`&&n!=null&&!u.has(e)){let t=n?`${n}.${r}`:r;f.set(e,t)}}e(()=>{n(t,r),m&&typeof r==`string`&&x(r)&&Number(r)>=_&&n(t,`length`),n(t,v),c(t),s(t);let e=p.get(t);e&&e!==t&&(n(e,v),c(e)),d||n(t,Symbol.iterator)}),M(t,r,`set`)}return E},deleteProperty(t,r){let i=b(t,r),a=i?t[r]:void 0,o=Reflect.deleteProperty(t,r);if(i&&o){var l;let i=S(a)?(l=a==null?void 0:a.__r_raw)==null?a:l:void 0;i&&g(i,t,r),e(()=>{n(t,r),n(t,v),c(t),s(t);let e=p.get(t);e&&e!==t&&(n(e,v),c(e)),n(t,Symbol.iterator)}),M(t,r,`delete`)}return o},ownKeys(e){return t(e,Symbol.iterator),t(e,v),Reflect.ownKeys(e)}};function P(e){if(!S(e)||e.__r_isReactive)return e;let t=T.get(e);if(t)return t;if(y(e)===0)return e;let n=new Proxy(e,N);return T.set(e,n),w.set(n,e),m.has(e)||m.set(e,0),p.has(e)||p.set(e,e),n}function F(e){return!!(e&&e.__r_isReactive)}function I(e){return S(e)?P(e):e}function L(e){return S(e)&&Object.defineProperty(e,"__r_skip",{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function R(e){return S(e)&&`__r_skip`in e}export{r as addMutationRecorder,E as clearPatchIndices,I as convertToReactive,j as getReactiveVersion,S as isObject,R as isRaw,F as isReactive,k as isShallowReactive,L as markRaw,D as prelinkReactiveTree,P as reactive,a as removeMutationRecorder,A as shallowReactive,C as toRaw,O as touchReactive};
1
+ import{batch as e,track as t,trigger as n}from"./core.mjs";import{addMutationRecorder as r,mutationRecorders as i,removeMutationRecorder as a}from"./reactive/mutation.mjs";import{adoptReactiveRoot as o,bumpAncestorVersions as s,bumpRawVersion as c,getRawVersion as l,rawMultiParentSet as u,rawParentsMap as d,rawPathMap as f,rawRootMap as p,rawVersionMap as m,recordParentLink as h,removeParentLink as g,resolvePathToTarget as _}from"./reactive/patchState.mjs";import{VERSION_KEY as v,getTargetType as y,hasOwn as b,isArrayIndexKey as x,isObject as S,toRaw as C}from"./reactive/shared.mjs";import{rawMap as w,reactiveMap as T}from"./reactive/state.mjs";import{clearPatchIndices as E,prelinkReactiveTree as D,touchReactive as O}from"./reactive/patch.mjs";import{isShallowReactive as k,shallowReactive as A}from"./reactive/shallow.mjs";function j(e){let t=C(e);return l(t)}function M(e,t,n){if(!i.size||typeof t!=`string`||t.startsWith(`__r_`))return;let r=p.get(e)??e,a=Array.isArray(e)&&(t===`length`||x(t))?`array`:`property`,o=_(r,e);if(!o){let o=/* @__PURE__ */ new Set,s=d.get(e);if(s)for(let[e,t]of s){let n=f.get(e),i=n?n.split(`.`,1)[0]:void 0,a=i?void 0:_(r,e)?.[0];for(let e of t)typeof e==`string`&&o.add(i??a??e)}else o.add(t);for(let e of i)e({root:r,kind:a,op:n,path:void 0,fallbackTopKeys:o.size?[...o]:void 0});return}let s=o.findIndex(e=>x(e));if(s!==-1){let e=o.slice(0,s).join(`.`)||void 0;for(let t of i)t({root:r,kind:`array`,op:n,path:e});return}let c=o.length?o.join(`.`):``,l=a===`array`?c||void 0:c?`${c}.${t}`:t;for(let e of i)e({root:r,kind:a,op:n,path:l})}const N={get(e,n,r){if(n===`__r_isReactive`)return!0;if(n===`__r_raw`)return e;let a=Reflect.get(e,n,r);if(t(e,n),S(a)){if(a.__r_skip)return a;let t=a?.__r_raw??a;o(t,e),h(t,e,n);let r=f.get(e);if(i.size&&typeof n==`string`&&r!=null&&!u.has(t)){let e=r?`${r}.${n}`:n;f.set(t,e)}return P(a)}return a},set(t,r,a,l){let d=b(t,r),m=Array.isArray(t),_=m?t.length:0,y=Reflect.get(t,r,l),w=S(y)?C(y):y,T=S(a)?C(a):a;if(Object.is(w,T))return!0;let E=Reflect.set(t,r,a,l);if(E){let a=S(w)?w:void 0;if(a&&g(a,t,r),S(T)&&!T.__r_skip){let e=T;o(e,t),h(e,t,r);let n=f.get(t);if(i.size&&typeof r==`string`&&n!=null&&!u.has(e)){let t=n?`${n}.${r}`:r;f.set(e,t)}}e(()=>{n(t,r),m&&typeof r==`string`&&x(r)&&Number(r)>=_&&n(t,`length`),n(t,v),c(t),s(t);let e=p.get(t);e&&e!==t&&(n(e,v),c(e)),d||n(t,Symbol.iterator)}),M(t,r,`set`)}return E},deleteProperty(t,r){let i=b(t,r),a=i?t[r]:void 0,o=Reflect.deleteProperty(t,r);if(i&&o){let i=S(a)?a?.__r_raw??a:void 0;i&&g(i,t,r),e(()=>{n(t,r),n(t,v),c(t),s(t);let e=p.get(t);e&&e!==t&&(n(e,v),c(e)),n(t,Symbol.iterator)}),M(t,r,`delete`)}return o},ownKeys(e){return t(e,Symbol.iterator),t(e,v),Reflect.ownKeys(e)}};function P(e){if(!S(e)||e.__r_isReactive)return e;let t=T.get(e);if(t)return t;if(y(e)===0)return e;let n=new Proxy(e,N);return T.set(e,n),w.set(n,e),m.has(e)||m.set(e,0),p.has(e)||p.set(e,e),n}function F(e){return!!(e&&e.__r_isReactive)}function I(e){return S(e)?P(e):e}function L(e){return S(e)&&Object.defineProperty(e,"__r_skip",{value:!0,configurable:!0,enumerable:!1,writable:!0}),e}function R(e){return S(e)&&`__r_skip`in e}export{r as addMutationRecorder,E as clearPatchIndices,I as convertToReactive,j as getReactiveVersion,S as isObject,R as isRaw,F as isReactive,k as isShallowReactive,L as markRaw,D as prelinkReactiveTree,P as reactive,a as removeMutationRecorder,A as shallowReactive,C as toRaw,O as touchReactive};
@@ -1 +1 @@
1
- import e from"../_virtual/_@oxc-project_runtime@0.150.0/helpers/esm/defineProperty.mjs";import{trackEffects as t,triggerEffects as n}from"./core.mjs";import{convertToReactive as r,markRaw as i}from"./reactive.mjs";const a=`__v_isRef`;function o(e){try{Object.defineProperty(e,a,{value:!0,configurable:!0})}catch(t){e[a]=!0}return e}function s(e){return!!(e&&typeof e==`object`&&e.__v_isRef===!0)}var c=class{constructor(t){e(this,`_value`,void 0),e(this,`_rawValue`,void 0),e(this,`dep`,void 0),o(this),this._rawValue=t,this._value=r(t)}get value(){return this.dep||(this.dep=/* @__PURE__ */ new Set),t(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=r(e),this.dep&&n(this.dep))}};function l(e){return s(e)?e:i(new c(e))}function u(e){return s(e)?e.value:e}function d(e){return typeof e==`function`?e():u(e)}var f=class{constructor(r,i){e(this,`_getValue`,void 0),e(this,`_setValue`,void 0),e(this,`dep`,void 0),o(this);let a=i,s=()=>{this.dep||(this.dep=/* @__PURE__ */ new Set),t(this.dep)},c=()=>{this.dep&&n(this.dep)},l=e=>e===void 0&&a!==void 0?a:e;if(typeof r==`function`){let e=r(s,c);this._getValue=()=>l(e.get()),this._setValue=t=>e.set(t);return}let u=r;this._getValue=()=>(s(),l(u.get())),this._setValue=e=>{u.set(e),c()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function p(e,t){return i(new f(e,t))}export{a as RefFlag,p as customRef,s as isRef,o as markAsRef,l as ref,d as toValue,u as unref};
1
+ import e from"../_virtual/_@oxc-project_runtime@0.151.0/helpers/esm/defineProperty.mjs";import{trackEffects as t,triggerEffects as n}from"./core.mjs";import{convertToReactive as r,markRaw as i}from"./reactive.mjs";const a=`__v_isRef`;function o(e){try{Object.defineProperty(e,a,{value:!0,configurable:!0})}catch{e[a]=!0}return e}function s(e){return!!(e&&typeof e==`object`&&e.__v_isRef===!0)}var c=class{constructor(t){e(this,`_value`,void 0),e(this,`_rawValue`,void 0),e(this,`dep`,void 0),o(this),this._rawValue=t,this._value=r(t)}get value(){return this.dep||(this.dep=/* @__PURE__ */ new Set),t(this.dep),this._value}set value(e){Object.is(e,this._rawValue)||(this._rawValue=e,this._value=r(e),this.dep&&n(this.dep))}};function l(e){return s(e)?e:i(new c(e))}function u(e){return s(e)?e.value:e}function d(e){return typeof e==`function`?e():u(e)}var f=class{constructor(r,i){e(this,`_getValue`,void 0),e(this,`_setValue`,void 0),e(this,`dep`,void 0),o(this);let a=i,s=()=>{this.dep||(this.dep=/* @__PURE__ */ new Set),t(this.dep)},c=()=>{this.dep&&n(this.dep)},l=e=>e===void 0&&a!==void 0?a:e;if(typeof r==`function`){let e=r(s,c);this._getValue=()=>l(e.get()),this._setValue=t=>e.set(t);return}let u=r;this._getValue=()=>(s(),l(u.get())),this._setValue=e=>{u.set(e),c()}}get value(){return this._getValue()}set value(e){this._setValue(e)}};function p(e,t){return i(new f(e,t))}export{a as RefFlag,p as customRef,s as isRef,o as markAsRef,l as ref,d as toValue,u as unref};
@@ -1 +1 @@
1
- import{triggerEffects as e}from"./core.mjs";import{customRef as t,isRef as n}from"./ref.mjs";const r=`__v_isShallow`;function i(e){try{Object.defineProperty(e,r,{value:!0,configurable:!0})}catch(t){e[r]=!0}return e}function a(e,n){return i(t((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),n))}function o(e){return n(e)&&e[r]===!0}function s(t){if(n(t)){let n=t.dep;if(n){e(n);return}t.value=t.value}}export{o as isShallowRef,a as shallowRef,s as triggerRef};
1
+ import{triggerEffects as e}from"./core.mjs";import{customRef as t,isRef as n}from"./ref.mjs";const r=`__v_isShallow`;function i(e){try{Object.defineProperty(e,r,{value:!0,configurable:!0})}catch{e[r]=!0}return e}function a(e,n){return i(t((t,n)=>({get(){return t(),e},set(t){Object.is(e,t)||(e=t,n())}}),n))}function o(e){return n(e)&&e[r]===!0}function s(t){if(n(t)){let n=t.dep;if(n){e(n);return}t.value=t.value}}export{o as isShallowRef,a as shallowRef,s as triggerRef};
@@ -1 +1 @@
1
- import{nextTick as e,queueJob as t}from"../../scheduler.mjs";import{touchReactive as n}from"../reactive/patch.mjs";import{isReactive as r}from"../reactive.mjs";import{isRef as i}from"../ref.mjs";import{isShallowRef as a}from"../shallowRef.mjs";import{traverse as o}from"../traverse.mjs";import{getDeepWatchStrategy as s}from"./types.mjs";function c(e){if(typeof e==`function`)return e();if(i(e))return e.value;if(r(e))return e;throw Error(`无效的 watch 源`)}function l(e){let t=Array.isArray(e),n=!t&&r(e),o=t?e.some(e=>r(e)):n,s=t?e.some(e=>a(e)):a(e),l;if(t){let t=e;l=()=>t.map(e=>c(e))}else if(typeof e==`function`)l=e;else if(i(e))l=()=>e.value;else if(n)l=()=>e;else throw Error(`无效的 watch 源`);return{getter:l,hasReactiveSource:o,hasShallowSource:s,isMultiSource:t,isReactiveSource:n}}function u(e,t,i,a,c){let l=i?t.some(e=>r(e)):a,u=c==null?l:c;if(u!==!0&&typeof u!=`number`)return e;let d=typeof u==`number`?u:u?1/0:0;return()=>{let t=e(),a=s();return i&&Array.isArray(t)?t.map(e=>a===`version`&&r(e)?(n(e),e):o(e,d)):a===`version`&&r(t)?(n(t),t):o(t,d)}}function d(n,r,i,a){if(a){a(n,i);return}if(r===`sync`){n();return}if(r===`post`){e(()=>t(n));return}i?n():t(n)}export{u as applyDeepWatchGetter,l as createWatchGetter,d as dispatchScheduledJob};
1
+ import{nextTick as e,queueJob as t}from"../../scheduler.mjs";import{touchReactive as n}from"../reactive/patch.mjs";import{isReactive as r}from"../reactive.mjs";import{isRef as i}from"../ref.mjs";import{isShallowRef as a}from"../shallowRef.mjs";import{traverse as o}from"../traverse.mjs";import{getDeepWatchStrategy as s}from"./types.mjs";function c(e){if(typeof e==`function`)return e();if(i(e))return e.value;if(r(e))return e;throw Error(`无效的 watch 源`)}function l(e){let t=Array.isArray(e),n=!t&&r(e),o=t?e.some(e=>r(e)):n,s=t?e.some(e=>a(e)):a(e),l;if(t){let t=e;l=()=>t.map(e=>c(e))}else if(typeof e==`function`)l=e;else if(i(e))l=()=>e.value;else if(n)l=()=>e;else throw Error(`无效的 watch 源`);return{getter:l,hasReactiveSource:o,hasShallowSource:s,isMultiSource:t,isReactiveSource:n}}function u(e,t,i,a,c){let l=i?t.some(e=>r(e)):a,u=c??l;if(u!==!0&&typeof u!=`number`)return e;let d=typeof u==`number`?u:u?1/0:0;return()=>{let t=e(),a=s();return i&&Array.isArray(t)?t.map(e=>a===`version`&&r(e)?(n(e),e):o(e,d)):a===`version`&&r(t)?(n(t),t):o(t,d)}}function d(n,r,i,a){if(a){a(n,i);return}if(r===`sync`){n();return}if(r===`post`){e(()=>t(n));return}i?n():t(n)}export{u as applyDeepWatchGetter,l as createWatchGetter,d as dispatchScheduledJob};
@@ -1 +1 @@
1
- import{effect as e,onScopeDispose as t,stop as n}from"./core.mjs";import{getCurrentInstance as r,setCurrentInstance as i}from"../runtime/hooks/base.mjs";import{getDeepWatchStrategy as a,setDeepWatchStrategy as o}from"./watch/types.mjs";import{applyDeepWatchGetter as s,createWatchGetter as c,dispatchScheduledJob as l}from"./watch/helpers.mjs";function u(a,o,u={}){var d;let f=r(),p=c(a),m=s(p.getter,a,p.isMultiSource,p.isReactiveSource,u.deep),h=u.deep===!0||typeof u.deep==`number`||u.deep===void 0&&p.hasReactiveSource||p.hasShallowSource,g,_=e=>{g=e},v=p.isMultiSource?[]:void 0,y,b=!1,x=0,S=x,C,w=u.once?(e,t,n)=>{o(e,t,n),C()}:o,T=(d=u.flush)==null?`pre`:d,E=(e,t)=>!p.isMultiSource||!Array.isArray(e)||!Array.isArray(t)?!Object.is(e,t):e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n])),D=(e,t=!1)=>{if(!y.active||b||e!==x)return;let n=y();if(!t&&!h&&!E(n,v))return;g==null||g();let a=r();i(f);try{w(n,v,_)}finally{i(a)}v=n},O=()=>D(S),k=e=>{S=x,l(O,T,e,u.scheduler)};y=e(()=>m(),{scheduler:()=>{b||k(!1)},lazy:!0});let A=()=>{g==null||g(),g=void 0,n(y)};return C=A,C.stop=A,C.pause=()=>{b||(b=!0,x+=1)},C.resume=()=>{b&&y.active&&(b=!1,v=y())},u.immediate?D(x,!0):v=y(),t(C),C}function d(a,o={}){var s;let c=r(),u,d=e=>{u=e},f,p=!1,m=0,h=m,g=(s=o.flush)==null?`pre`:s,_=e=>{f.active&&!p&&e===m&&f()},v=()=>_(h),y=e=>{h=m,l(v,g,e)};f=e(()=>{u==null||u(),u=void 0;let e=r();i(c);try{a(d)}finally{i(e)}},{lazy:!0,scheduler:()=>{p||y(!1)}}),y(!0);let b=()=>{u==null||u(),u=void 0,n(f)},x=b;return x.stop=b,x.pause=()=>{p||(p=!0,m+=1)},x.resume=()=>{p&&f.active&&(p=!1,y(!0))},t(x),x}function f(e,t={}){return d(e,{...t,flush:`post`})}function p(e,t={}){return d(e,{...t,flush:`sync`})}export{a as getDeepWatchStrategy,o as setDeepWatchStrategy,u as watch,d as watchEffect,f as watchPostEffect,p as watchSyncEffect};
1
+ import{effect as e,onScopeDispose as t,stop as n}from"./core.mjs";import{getCurrentInstance as r,setCurrentInstance as i}from"../runtime/hooks/base.mjs";import{getDeepWatchStrategy as a,setDeepWatchStrategy as o}from"./watch/types.mjs";import{applyDeepWatchGetter as s,createWatchGetter as c,dispatchScheduledJob as l}from"./watch/helpers.mjs";function u(a,o,u={}){let d=r(),f=c(a),p=s(f.getter,a,f.isMultiSource,f.isReactiveSource,u.deep),m=u.deep===!0||typeof u.deep==`number`||u.deep===void 0&&f.hasReactiveSource||f.hasShallowSource,h,g=e=>{h=e},_=f.isMultiSource?[]:void 0,v,y=!1,b=0,x=b,S,C=u.once?(e,t,n)=>{o(e,t,n),S()}:o,w=u.flush??`pre`,T=(e,t)=>!f.isMultiSource||!Array.isArray(e)||!Array.isArray(t)?!Object.is(e,t):e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n])),E=(e,t=!1)=>{if(!v.active||y||e!==b)return;let n=v();if(!t&&!m&&!T(n,_))return;h?.();let a=r();i(d);try{C(n,_,g)}finally{i(a)}_=n},D=()=>E(x),O=e=>{x=b,l(D,w,e,u.scheduler)};v=e(()=>p(),{scheduler:()=>{y||O(!1)},lazy:!0});let k=()=>{h?.(),h=void 0,n(v)};return S=k,S.stop=k,S.pause=()=>{y||(y=!0,b+=1)},S.resume=()=>{y&&v.active&&(y=!1,_=v())},u.immediate?E(b,!0):_=v(),t(S),S}function d(a,o={}){let s=r(),c,u=e=>{c=e},d,f=!1,p=0,m=p,h=o.flush??`pre`,g=e=>{d.active&&!f&&e===p&&d()},_=()=>g(m),v=e=>{m=p,l(_,h,e)};d=e(()=>{c?.(),c=void 0;let e=r();i(s);try{a(u)}finally{i(e)}},{lazy:!0,scheduler:()=>{f||v(!1)}}),v(!0);let y=()=>{c?.(),c=void 0,n(d)},b=y;return b.stop=y,b.pause=()=>{f||(f=!0,p+=1)},b.resume=()=>{f&&d.active&&(f=!1,v(!0))},t(b),b}function f(e,t={}){return d(e,{...t,flush:`post`})}function p(e,t={}){return d(e,{...t,flush:`sync`})}export{a as getDeepWatchStrategy,o as setDeepWatchStrategy,u as watch,d as watchEffect,f as watchPostEffect,p as watchSyncEffect};
@@ -1 +1 @@
1
- import{getCurrentMiniProgramTabBarPagePaths as e,getMiniProgramGlobalObject as t}from"../runtime/platform.mjs";import{setActiveRouter as n}from"./instance.mjs";import{DEFAULT_INITIAL_NAVIGATION_TIMEOUT as r,registerInitialNavigationRunner as i}from"./initialNavigation.mjs";import{installRouteStateSyncOnNativeRouter as a,notifyRouteStateSync as o}from"./routeSync.mjs";import{resolvePath as ee}from"../routerInternal/path.mjs";import{parseQuery as te,stringifyQuery as ne}from"../routerInternal/query.mjs";import{resolveCurrentRoute as re}from"../routerInternal/location.mjs";import{resolveNamedRouteLocation as s}from"../routerInternal/params.mjs";import{mergeMatchedRouteMeta as ie,resolveMatchedRouteRecord as ae}from"../routerInternal/matching.mjs";import{warnDuplicateRouteEntries as oe}from"../routerInternal/recordsWarnings.mjs";import{createNamedRouteLookup as se,resolveRouteOptionEntries as ce}from"../routerInternal/records.mjs";import{cloneRouteMeta as le,cloneRouteParams as ue,createNativeRouteUrl as de,createRouterOptionsSnapshot as fe,normalizeRouteRecordMatched as pe,snapshotRouteLocation as c}from"../routerInternal/snapshots.mjs";import{NavigationFailureType as l}from"./types.mjs";import{createNavigationFailure as u,executeNavigationMethod as d}from"./navigationCore.mjs";import{createNavigationResultController as f}from"./navigationResult.mjs";import{resolveBackNavigationTarget as p,runBackNavigationGuards as me}from"./backNavigation.mjs";import{navigateWithTarget as he}from"./navigationTarget.mjs";import{createNavigationApi as ge}from"./navigationApi.mjs";import{resolveRouteLocation as _e}from"./resolve.mjs";import{createRouteRegistry as ve}from"./routeRegistry.mjs";import{createRouteStateController as ye,useNativeRouter as m}from"./useRoute.mjs";function h(h={}){var g,_,v,y,b,x,S;let C=h,w=m();a(t());let T=/* @__PURE__ */ new Set,E=/* @__PURE__ */ new Set,D=/* @__PURE__ */ new Set,O=/* @__PURE__ */ new Set,k=(g=C.maxRedirects)==null?10:g,A=C.initialNavigationMode===`blocking`?`blocking`:`eager`,j=Number.isFinite(C.initialNavigationTimeout)&&((_=C.initialNavigationTimeout)==null?0:_)>0?Math.max(1,Math.trunc(C.initialNavigationTimeout)):r,M=(v=C.paramsMode)==null?`loose`:v,N=(y=C.rejectOnError)==null||y,P={parseQuery:(b=C.parseQuery)==null?te:b,stringifyQuery:(x=C.stringifyQuery)==null?ne:x},be=Promise.resolve(),F=ce(C);oe(F);let I=se(F),L=((S=C.tabBarEntries)==null?e():S).map(e=>ee(e,``)).filter(Boolean),R=new Set(L),z=ve(I),B=0,V,H,U,xe=fe(L,z.getRoutes(),M,k,A,j,P,N);function W(e){let t={...e};t.href=t.fullPath;let n=ae(t,I);if(n){let e=n.record;t.name===void 0&&(t.name=e.name);let r=ie(n.matchedRecords);r!==void 0&&(t.meta=le(r)),n.params&&Object.keys(t.params).length===0&&(t.params=ue(n.params)),t.matched=n.matchedRecords.map((e,t,r)=>{let i=t===r.length-1?n.matchedPath:void 0;return pe(e,i)})}else t.matched=[];return t}function G(e,t){let n=typeof e==`string`?e:s(e,I,M);return W(_e(n,t,P))}let K,q;function J(e){return e.source===`page`||e.source===`native`&&e.method===`navigateBack`}function Se(e,t){if(B>0||!J(t)||U!==void 0)return;if(H!==void 0){let t=H;if(H=void 0,e.fullPath===t)return}if(e.fullPath===K.fullPath)return;U=e.fullPath;let n=c(K);me({target:e,from:n,nativeRouter:w,beforeEachGuards:T,beforeResolveGuards:E,resolveWithCodec:G}).then(e=>q==null?void 0:q(e)).finally(()=>{U=void 0})}K=ye({beforeRouteStateSync:Se,resolveRoute:W}).route;let Ce=e=>G(e,K.path),Y=f({afterEachHooks:D,errorHandlers:O,nativeRouter:w,rejectOnError:N});q=Y.emitNavigationAfterEach;let X=ge({nativeRouter:w,route:K,routeResolveCodec:P,namedRouteLookup:I,beforeEachGuards:T,beforeResolveGuards:E,maxRedirects:k,tabBarPathSet:R,resolveWithCodec:G,settleNavigationResult:Y.settleNavigationResult});async function Z(e,t){let n=K.fullPath;t&&(V=t),B+=1;try{let t=await e();return K.fullPath!==n&&(H=K.fullPath),t}finally{--B,B<=0&&(V=void 0)}}function Q(e){try{return G(e,K.path).fullPath}catch(e){return}}async function we(e,t,n=()=>!0){return Z(async()=>{let r=c(K),i=W(re(t,e));if(!i.path)return;if(V===i.fullPath){o({route:i,source:`router`});return}let a=await he({mode:`push`,target:i,from:r,nativeRouter:w,routeResolveCodec:P,namedRouteLookup:I,beforeEachGuards:T,beforeResolveGuards:E,maxRedirects:k,tabBarPathSet:R,resolveWithCodec:G,executeNative:!1,allowSameLocation:!0});if(n()){if(A===`blocking`&&a.to&&a.to.fullPath!==i.fullPath){let e=a.to,t=R.has(e.path)?w.switchTab:w.redirectTo;return await d(t,{url:de(e,P.stringifyQuery)},e,r)||(o({route:e,source:`router`}),u(l.cancelled,e,r))}return Y.settleNavigationResult(a)}})}function Te(e){return T.add(e),()=>{T.delete(e)}}function Ee(e){return E.add(e),()=>{E.delete(e)}}function De(e){return D.add(e),()=>{D.delete(e)}}function Oe(e){return O.add(e),()=>{O.delete(e)}}let $={nativeRouter:w,options:xe,currentRoute:K,install(e){var t;n($);let r=e==null||(t=e.config)==null?void 0:t.globalProperties;r&&(r.$router=$)},resolve:Ce,isReady(){return be},push:e=>Z(()=>X.push(e),Q(e)),replace:e=>Z(()=>X.replace(e),Q(e)),back:e=>{var t;return Z(()=>X.back(e),(t=p(e==null?1:e,K,G))==null?void 0:t.fullPath)},go:e=>{var t;return Z(()=>X.go(e),e<0?(t=p(Math.abs(e),K,G))==null?void 0:t.fullPath:void 0)},forward:()=>Z(()=>X.forward()),hasRoute:z.hasRoute,getRoutes:z.getRoutes,addRoute:z.addRoute,removeRoute:z.removeRoute,clearRoutes:z.clearRoutes,beforeEach:Te,beforeResolve:Ee,afterEach:De,onError:Oe};return n($),i($,we,j,A),$}export{h as createRouter};
1
+ import{getCurrentMiniProgramGlobalObject as e}from"../runtime/platform/current.mjs";import{getCurrentMiniProgramTabBarPagePaths as t}from"../runtime/platform.mjs";import{installRouteStateSyncOnNativeRouter as n,notifyRouteStateSync as r}from"./routeSync.mjs";import{resolvePath as i}from"../routerInternal/path.mjs";import{parseQuery as a,stringifyQuery as o}from"../routerInternal/query.mjs";import{resolveCurrentRoute as ee}from"../routerInternal/location.mjs";import{resolveNamedRouteLocation as te}from"../routerInternal/params.mjs";import{mergeMatchedRouteMeta as ne,resolveMatchedRouteRecord as re}from"../routerInternal/matching.mjs";import{warnDuplicateRouteEntries as s}from"../routerInternal/recordsWarnings.mjs";import{createNamedRouteLookup as c,resolveRouteOptionEntries as l}from"../routerInternal/records.mjs";import{cloneRouteMeta as u,cloneRouteParams as d,createNativeRouteUrl as ie,createRouterOptionsSnapshot as ae,normalizeRouteRecordMatched as oe,snapshotRouteLocation as f}from"../routerInternal/snapshots.mjs";import{NavigationFailureType as se}from"./types.mjs";import{createNavigationFailure as ce,executeNavigationMethod as le}from"./navigationCore.mjs";import{createNavigationResultController as ue}from"./navigationResult.mjs";import{resolveBackNavigationTarget as p,runBackNavigationGuards as m}from"./backNavigation.mjs";import{setActiveRouter as h}from"./instance.mjs";import{DEFAULT_INITIAL_NAVIGATION_TIMEOUT as de,registerInitialNavigationRunner as fe}from"./initialNavigation.mjs";import{navigateWithTarget as pe}from"./navigationTarget.mjs";import{createNavigationApi as g}from"./navigationApi.mjs";import{resolveRouteLocation as _}from"./resolve.mjs";import{createRouteRegistry as v}from"./routeRegistry.mjs";import{createRouteStateController as y,useNativeRouter as b}from"./useRoute.mjs";function x(x={}){let S=x,C=b();n(e());let w=/* @__PURE__ */ new Set,T=/* @__PURE__ */ new Set,E=/* @__PURE__ */ new Set,D=/* @__PURE__ */ new Set,O=S.maxRedirects??10,k=S.initialNavigationMode===`blocking`?`blocking`:`eager`,A=Number.isFinite(S.initialNavigationTimeout)&&(S.initialNavigationTimeout??0)>0?Math.max(1,Math.trunc(S.initialNavigationTimeout)):de,j=S.paramsMode??`loose`,M=S.rejectOnError??!0,N={parseQuery:S.parseQuery??a,stringifyQuery:S.stringifyQuery??o},P=Promise.resolve(),F=l(S);s(F);let I=c(F),L=(S.tabBarEntries??t()).map(e=>i(e,``)).filter(Boolean),R=new Set(L),z=v(I),B=0,V,H,U,me=ae(L,z.getRoutes(),j,O,k,A,N,M);function W(e){let t={...e};t.href=t.fullPath;let n=re(t,I);if(n){let e=n.record;t.name===void 0&&(t.name=e.name);let r=ne(n.matchedRecords);r!==void 0&&(t.meta=u(r)),n.params&&Object.keys(t.params).length===0&&(t.params=d(n.params)),t.matched=n.matchedRecords.map((e,t,r)=>{let i=t===r.length-1?n.matchedPath:void 0;return oe(e,i)})}else t.matched=[];return t}function G(e,t){let n=typeof e==`string`?e:te(e,I,j);return W(_(n,t,N))}let K,q;function he(e){return e.source===`page`||e.source===`native`&&e.method===`navigateBack`}function J(e,t){if(B>0||!he(t)||U!==void 0)return;if(H!==void 0){let t=H;if(H=void 0,e.fullPath===t)return}if(e.fullPath===K.fullPath)return;U=e.fullPath;let n=f(K);m({target:e,from:n,nativeRouter:C,beforeEachGuards:w,beforeResolveGuards:T,resolveWithCodec:G}).then(e=>q?.(e)).finally(()=>{U=void 0})}K=y({beforeRouteStateSync:J,resolveRoute:W}).route;let ge=e=>G(e,K.path),Y=ue({afterEachHooks:E,errorHandlers:D,nativeRouter:C,rejectOnError:M});q=Y.emitNavigationAfterEach;let X=g({nativeRouter:C,route:K,routeResolveCodec:N,namedRouteLookup:I,beforeEachGuards:w,beforeResolveGuards:T,maxRedirects:O,tabBarPathSet:R,resolveWithCodec:G,settleNavigationResult:Y.settleNavigationResult});async function Z(e,t){let n=K.fullPath;t&&(V=t),B+=1;try{let t=await e();return K.fullPath!==n&&(H=K.fullPath),t}finally{--B,B<=0&&(V=void 0)}}function Q(e){try{return G(e,K.path).fullPath}catch{return}}async function _e(e,t,n=()=>!0){return Z(async()=>{let i=f(K),a=W(ee(t,e));if(!a.path)return;if(V===a.fullPath){r({route:a,source:`router`});return}let o=await pe({mode:`push`,target:a,from:i,nativeRouter:C,routeResolveCodec:N,namedRouteLookup:I,beforeEachGuards:w,beforeResolveGuards:T,maxRedirects:O,tabBarPathSet:R,resolveWithCodec:G,executeNative:!1,allowSameLocation:!0});if(n()){if(k===`blocking`&&o.to&&o.to.fullPath!==a.fullPath){let e=o.to,t=R.has(e.path)?C.switchTab:C.redirectTo;return await le(t,{url:ie(e,N.stringifyQuery)},e,i)||(r({route:e,source:`router`}),ce(se.cancelled,e,i))}return Y.settleNavigationResult(o)}})}function ve(e){return w.add(e),()=>{w.delete(e)}}function ye(e){return T.add(e),()=>{T.delete(e)}}function be(e){return E.add(e),()=>{E.delete(e)}}function xe(e){return D.add(e),()=>{D.delete(e)}}let $={nativeRouter:C,options:me,currentRoute:K,install(e){h($);let t=e?.config?.globalProperties;t&&(t.$router=$)},resolve:ge,isReady(){return P},push:e=>Z(()=>X.push(e),Q(e)),replace:e=>Z(()=>X.replace(e),Q(e)),back:e=>Z(()=>X.back(e),p(e??1,K,G)?.fullPath),go:e=>Z(()=>X.go(e),e<0?p(Math.abs(e),K,G)?.fullPath:void 0),forward:()=>Z(()=>X.forward()),hasRoute:z.hasRoute,getRoutes:z.getRoutes,addRoute:z.addRoute,removeRoute:z.removeRoute,clearRoutes:z.clearRoutes,beforeEach:ve,beforeResolve:ye,afterEach:be,onError:xe};return h($),fe($,_e,A,k),$}export{x as createRouter};