wevu 7.5.0 → 7.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/dist/alipay/jsx-runtime.d.mts +0 -2
  2. package/dist/config/defaults.d.mts +42 -0
  3. package/dist/config/pageFeatures.d.mts +49 -0
  4. package/dist/config.d.mts +4 -0
  5. package/dist/config.mjs +1 -0
  6. package/dist/dev/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.mjs +1 -2
  7. package/dist/dev/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.mjs +1 -2
  8. package/dist/dev/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.mjs +1 -2
  9. package/dist/dev/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.mjs +1 -2
  10. package/dist/dev/api/vitest/setup.mjs +1 -2
  11. package/dist/dev/package.mjs +2 -3
  12. package/dist/dev/reactivity/asyncDerivation.mjs +1 -2
  13. package/dist/dev/reactivity/computed.mjs +1 -2
  14. package/dist/dev/reactivity/computed.mjs.map +1 -1
  15. package/dist/dev/reactivity/core.mjs +2 -3
  16. package/dist/dev/reactivity/reactive/mutation.mjs +1 -2
  17. package/dist/dev/reactivity/reactive/patch.mjs +1 -2
  18. package/dist/dev/reactivity/reactive/patchState.mjs +1 -2
  19. package/dist/dev/reactivity/reactive/shallow.mjs +1 -2
  20. package/dist/dev/reactivity/reactive/shared.mjs +1 -2
  21. package/dist/dev/reactivity/reactive/state.mjs +1 -2
  22. package/dist/dev/reactivity/reactive.mjs +1 -2
  23. package/dist/dev/reactivity/readonly.mjs +1 -2
  24. package/dist/dev/reactivity/ref.mjs +2 -3
  25. package/dist/dev/reactivity/ref.mjs.map +1 -1
  26. package/dist/dev/reactivity/shallowRef.mjs +1 -2
  27. package/dist/dev/reactivity/toRefs.mjs +1 -2
  28. package/dist/dev/reactivity/traverse.mjs +1 -2
  29. package/dist/dev/reactivity/watch/helpers.mjs +1 -2
  30. package/dist/dev/reactivity/watch/types.mjs +1 -2
  31. package/dist/dev/reactivity/watch.mjs +1 -2
  32. package/dist/dev/router/auto-routes.mjs +1 -2
  33. package/dist/dev/router/backNavigation.mjs +1 -2
  34. package/dist/dev/router/createRouter.mjs +1 -2
  35. package/dist/dev/router/initialNavigation.mjs +1 -2
  36. package/dist/dev/router/instance.mjs +1 -2
  37. package/dist/dev/router/navigationApi.mjs +1 -2
  38. package/dist/dev/router/navigationCore.mjs +1 -2
  39. package/dist/dev/router/navigationResult.mjs +1 -2
  40. package/dist/dev/router/navigationTarget.mjs +1 -2
  41. package/dist/dev/router/navigationTargetHelpers.mjs +1 -2
  42. package/dist/dev/router/resolve.mjs +1 -2
  43. package/dist/dev/router/routeRegistry.mjs +1 -2
  44. package/dist/dev/router/routeSync.mjs +1 -2
  45. package/dist/dev/router/scrollRestoration/adapters.mjs +1 -2
  46. package/dist/dev/router/scrollRestoration/controller.mjs +1 -2
  47. package/dist/dev/router/scrollRestoration/host.mjs +1 -2
  48. package/dist/dev/router/scrollRestoration/index.mjs +1 -2
  49. package/dist/dev/router/types.mjs +1 -2
  50. package/dist/dev/router/useRoute.mjs +1 -2
  51. package/dist/dev/router/useRouter.mjs +1 -2
  52. package/dist/dev/routerInternal/location.mjs +1 -2
  53. package/dist/dev/routerInternal/matching.mjs +1 -2
  54. package/dist/dev/routerInternal/params.mjs +1 -2
  55. package/dist/dev/routerInternal/path.mjs +1 -2
  56. package/dist/dev/routerInternal/query.mjs +1 -2
  57. package/dist/dev/routerInternal/records.mjs +1 -2
  58. package/dist/dev/routerInternal/recordsWarnings.mjs +1 -2
  59. package/dist/dev/routerInternal/snapshots.mjs +1 -2
  60. package/dist/dev/runtime/app/computed.mjs +1 -2
  61. package/dist/dev/runtime/app/context.mjs +1 -2
  62. package/dist/dev/runtime/app/diagnostics.mjs +1 -2
  63. package/dist/dev/runtime/app/mount.mjs +1 -2
  64. package/dist/dev/runtime/app/pending.mjs +1 -2
  65. package/dist/dev/runtime/app/setData/commitTracker.mjs +1 -2
  66. package/dist/dev/runtime/app/setData/observation.mjs +1 -2
  67. package/dist/dev/runtime/app/setData/patchScheduler.mjs +1 -2
  68. package/dist/dev/runtime/app/setData/payload.mjs +1 -2
  69. package/dist/dev/runtime/app/setData/scheduler.mjs +1 -2
  70. package/dist/dev/runtime/app/setData/snapshot.mjs +1 -2
  71. package/dist/dev/runtime/app/setDataOptions.mjs +1 -2
  72. package/dist/dev/runtime/app.mjs +1 -2
  73. package/dist/dev/runtime/bindModel.mjs +1 -2
  74. package/dist/dev/runtime/bindingManifest.mjs +1 -2
  75. package/dist/dev/runtime/capabilities.mjs +1 -2
  76. package/dist/dev/runtime/css.mjs +1 -2
  77. package/dist/dev/runtime/defaults.mjs +1 -2
  78. package/dist/dev/runtime/define/componentDefinition.mjs +1 -2
  79. package/dist/dev/runtime/define/initialComputed.mjs +1 -2
  80. package/dist/dev/runtime/define/options.mjs +1 -2
  81. package/dist/dev/runtime/define/optionsApi.mjs +1 -2
  82. package/dist/dev/runtime/define/props.mjs +1 -2
  83. package/dist/dev/runtime/define/scopedSlotOptions.mjs +1 -2
  84. package/dist/dev/runtime/define/setupResult.mjs +4 -7
  85. package/dist/dev/runtime/define/setupResult.mjs.map +1 -1
  86. package/dist/dev/runtime/define.mjs +3 -9
  87. package/dist/dev/runtime/define.mjs.map +1 -1
  88. package/dist/dev/runtime/diff.mjs +1 -2
  89. package/dist/dev/runtime/disposables.mjs +1 -2
  90. package/dist/dev/runtime/elementIntersectionObserver.mjs +1 -2
  91. package/dist/dev/runtime/emit.mjs +1 -2
  92. package/dist/dev/runtime/features/inlineEvents.mjs +1 -2
  93. package/dist/dev/runtime/features/jsxIslands.mjs +1 -2
  94. package/dist/dev/runtime/features/layout.mjs +1 -2
  95. package/dist/dev/runtime/features/patchStrategy.mjs +1 -2
  96. package/dist/dev/runtime/features/publicLayout.mjs +1 -2
  97. package/dist/dev/runtime/features/scopedSlots.mjs +1 -2
  98. package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs +1 -2
  99. package/dist/dev/runtime/features/templateRefs.mjs +1 -2
  100. package/dist/dev/runtime/hooks/base.mjs +1 -2
  101. package/dist/dev/runtime/hooks/pageScroll.mjs +1 -2
  102. package/dist/dev/runtime/hooks/register.mjs +1 -2
  103. package/dist/dev/runtime/hooks/vue.mjs +1 -2
  104. package/dist/dev/runtime/inlineDataset.mjs +1 -2
  105. package/dist/dev/runtime/internal.mjs +1 -2
  106. package/dist/dev/runtime/intersectionObserver.mjs +1 -2
  107. package/dist/dev/runtime/jsxIsland.mjs +1 -2
  108. package/dist/dev/runtime/layoutBridge.mjs +1 -2
  109. package/dist/dev/runtime/layoutComponentMatcher.mjs +1 -2
  110. package/dist/dev/runtime/nativeBridge.mjs +1 -2
  111. package/dist/dev/runtime/navigationLifecycle.mjs +1 -2
  112. package/dist/dev/runtime/noSetData.mjs +1 -2
  113. package/dist/dev/runtime/pageEnvironment.mjs +1 -2
  114. package/dist/dev/runtime/pageLayout.mjs +1 -2
  115. package/dist/dev/runtime/pageLayout.mjs.map +1 -1
  116. package/dist/dev/runtime/pageScroll.mjs +1 -2
  117. package/dist/dev/runtime/platform/current.mjs +1 -2
  118. package/dist/dev/runtime/platform/generic.mjs +1 -2
  119. package/dist/dev/runtime/platform/globals.mjs +1 -2
  120. package/dist/dev/runtime/platform.mjs +1 -2
  121. package/dist/dev/runtime/provide.mjs +1 -2
  122. package/dist/dev/runtime/provideContext.mjs +1 -2
  123. package/dist/dev/runtime/provideStore.mjs +1 -2
  124. package/dist/dev/runtime/publicRuntime.mjs +1 -2
  125. package/dist/dev/runtime/pullDownRefresh.mjs +1 -2
  126. package/dist/dev/runtime/register/app.mjs +1 -2
  127. package/dist/dev/runtime/register/component/alipay.mjs +1 -2
  128. package/dist/dev/runtime/register/component/alipayRegistration.mjs +1 -2
  129. package/dist/dev/runtime/register/component/features.mjs +1 -2
  130. package/dist/dev/runtime/register/component/hmrRegistration.mjs +14 -0
  131. package/dist/dev/runtime/register/component/hmrRegistration.mjs.map +1 -0
  132. package/dist/dev/runtime/register/component/lifecycle/optionalHooks.mjs +1 -2
  133. package/dist/dev/runtime/register/component/lifecycle/platform.mjs +1 -2
  134. package/dist/dev/runtime/register/component/lifecycle.mjs +1 -2
  135. package/dist/dev/runtime/register/component/methods.mjs +1 -2
  136. package/dist/dev/runtime/register/component/options.mjs +1 -2
  137. package/dist/dev/runtime/register/component/props.mjs +5 -6
  138. package/dist/dev/runtime/register/component/props.mjs.map +1 -1
  139. package/dist/dev/runtime/register/component/registerDefinition.mjs +7 -6
  140. package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
  141. package/dist/dev/runtime/register/component/registerNativeDefinition.mjs +1 -2
  142. package/dist/dev/runtime/register/component.mjs +23 -14
  143. package/dist/dev/runtime/register/component.mjs.map +1 -1
  144. package/dist/dev/runtime/register/inline.mjs +1 -2
  145. package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs +1 -2
  146. package/dist/dev/runtime/register/runtimeInstance/nativeDeclaration.mjs +1 -2
  147. package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs +1 -2
  148. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +1 -2
  149. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +3 -27
  150. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
  151. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -2
  152. package/dist/dev/runtime/register/runtimeInstance/utils.mjs +1 -2
  153. package/dist/dev/runtime/register/runtimeInstance.mjs +12 -14
  154. package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
  155. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs +1 -2
  156. package/dist/dev/runtime/register/setup.mjs +1 -2
  157. package/dist/dev/runtime/register/snapshot.mjs +1 -2
  158. package/dist/dev/runtime/register/watch.mjs +2 -5
  159. package/dist/dev/runtime/register/watch.mjs.map +1 -1
  160. package/dist/dev/runtime/scopedSlots.mjs +1 -2
  161. package/dist/dev/runtime/selectorQuery.mjs +1 -2
  162. package/dist/dev/runtime/setupTracking.mjs +1 -2
  163. package/dist/dev/runtime/teardown.mjs +1 -2
  164. package/dist/dev/runtime/template.mjs +1 -2
  165. package/dist/dev/runtime/templateRefs/helpers.mjs +1 -2
  166. package/dist/dev/runtime/templateRefs.mjs +1 -2
  167. package/dist/dev/runtime/uniAppHost.mjs +1 -2
  168. package/dist/dev/runtime/updatePerformance.mjs +1 -2
  169. package/dist/dev/runtime/use.mjs +1 -2
  170. package/dist/dev/runtime/vueCompat/context.mjs +1 -2
  171. package/dist/dev/runtime/vueCompat/model.mjs +1 -2
  172. package/dist/dev/runtime/vueCompat/router.mjs +1 -2
  173. package/dist/dev/runtime/vueCompat/templateRef.mjs +1 -2
  174. package/dist/dev/scheduler.mjs +1 -2
  175. package/dist/dev/store/actions.mjs +1 -2
  176. package/dist/dev/store/base.mjs +1 -2
  177. package/dist/dev/store/define/create.mjs +1 -2
  178. package/dist/dev/store/define.mjs +1 -2
  179. package/dist/dev/store/manager.mjs +1 -2
  180. package/dist/dev/store/storeToRefs.mjs +1 -2
  181. package/dist/dev/store/subscriptions.mjs +1 -2
  182. package/dist/dev/store/types.mjs +1 -2
  183. package/dist/dev/store/utils.mjs +1 -2
  184. package/dist/dev/store/view.mjs +1 -2
  185. package/dist/dev/utils.mjs +1 -2
  186. package/dist/dev/version.mjs +1 -2
  187. package/dist/dev/vue-demi.mjs +1 -2
  188. package/dist/fetch.d.mts +0 -2
  189. package/dist/index.d.mts +13 -8
  190. package/dist/internal-reactivity.d.mts +2 -1
  191. package/dist/jsx-runtime.d.mts +1 -2
  192. package/dist/jsxTypes.d.mts +1 -3
  193. package/dist/macros/shared.d.mts +2 -3
  194. package/dist/macros.d.mts +3 -12
  195. package/dist/miniprogram/jsx-runtime.d.mts +0 -2
  196. package/dist/package.mjs +1 -1
  197. package/dist/reactivity/asyncDerivation.d.mts +1 -2
  198. package/dist/reactivity/computed.d.mts +2 -8
  199. package/dist/reactivity/core.d.mts +1 -3
  200. package/dist/reactivity/core.mjs +1 -1
  201. package/dist/reactivity/index.d.mts +2 -1
  202. package/dist/reactivity/reactive/mutation.d.mts +1 -2
  203. package/dist/reactivity/reactive/patch.d.mts +1 -3
  204. package/dist/reactivity/reactive/patchState.mjs +1 -1
  205. package/dist/reactivity/reactive/shallow.d.mts +1 -3
  206. package/dist/reactivity/reactive/shared.d.mts +1 -3
  207. package/dist/reactivity/reactive.d.mts +0 -2
  208. package/dist/reactivity/readonly.d.mts +1 -3
  209. package/dist/reactivity/ref.d.mts +2 -4
  210. package/dist/reactivity/ref.mjs +1 -1
  211. package/dist/reactivity/shallowRef.d.mts +1 -3
  212. package/dist/reactivity/toRefs.d.mts +1 -2
  213. package/dist/reactivity/traverse.d.mts +1 -3
  214. package/dist/reactivity/watch/types.d.mts +1 -2
  215. package/dist/reactivity/watch.d.mts +0 -2
  216. package/dist/router/auto-routes.d.mts +0 -2
  217. package/dist/router/createRouter.d.mts +1 -3
  218. package/dist/router/navigationCore.d.mts +1 -3
  219. package/dist/router/resolve.d.mts +1 -3
  220. package/dist/router/scrollRestoration/adapters.d.mts +1 -3
  221. package/dist/router/scrollRestoration/controller.d.mts +1 -3
  222. package/dist/router/scrollRestoration/index.d.mts +0 -2
  223. package/dist/router/scrollRestoration/index.mjs +1 -1
  224. package/dist/router/scrollRestoration/types.d.mts +1 -3
  225. package/dist/router/types.d.mts +1 -2
  226. package/dist/router/useRoute.d.mts +1 -3
  227. package/dist/router/useRouter.d.mts +1 -3
  228. package/dist/router.d.mts +0 -2
  229. package/dist/routerInternal/query.d.mts +1 -3
  230. package/dist/routerInternal/types.d.mts +1 -3
  231. package/dist/runtime/app/pending.d.mts +1 -3
  232. package/dist/runtime/app/setData/commitTracker.d.mts +1 -3
  233. package/dist/runtime/app/setData/observation.d.mts +1 -2
  234. package/dist/runtime/app/setData/scheduler.d.mts +1 -3
  235. package/dist/runtime/app/setData/scheduler.mjs +1 -1
  236. package/dist/runtime/app.d.mts +2 -4
  237. package/dist/runtime/capabilities.d.mts +2 -4
  238. package/dist/runtime/css.d.mts +1 -3
  239. package/dist/runtime/defaults.d.mts +1 -3
  240. package/dist/runtime/define/props.mjs +1 -1
  241. package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
  242. package/dist/runtime/define/setupResult.mjs +1 -1
  243. package/dist/runtime/define.d.mts +4 -4
  244. package/dist/runtime/define.mjs +1 -1
  245. package/dist/runtime/disposables.d.mts +1 -3
  246. package/dist/runtime/elementIntersectionObserver.d.mts +1 -3
  247. package/dist/runtime/features/inlineEvents.d.mts +1 -3
  248. package/dist/runtime/features/jsxIslands.d.mts +1 -3
  249. package/dist/runtime/features/layout.d.mts +1 -3
  250. package/dist/runtime/features/patchStrategy.d.mts +1 -3
  251. package/dist/runtime/features/publicLayout.d.mts +2 -3
  252. package/dist/runtime/features/scopedSlots.d.mts +2 -4
  253. package/dist/runtime/features/setDataHighFrequencyWarning.d.mts +1 -3
  254. package/dist/runtime/features/templateRefs.d.mts +1 -3
  255. package/dist/runtime/hooks/base.d.mts +1 -3
  256. package/dist/runtime/hooks/register.d.mts +1 -3
  257. package/dist/runtime/hooks/vue.d.mts +1 -3
  258. package/dist/runtime/index.d.mts +7 -4
  259. package/dist/runtime/intersectionObserver.d.mts +1 -3
  260. package/dist/runtime/jsxIsland.d.mts +1 -3
  261. package/dist/runtime/layoutBridge.d.mts +0 -2
  262. package/dist/runtime/noSetData.d.mts +1 -3
  263. package/dist/runtime/pageEnvironment.d.mts +1 -3
  264. package/dist/runtime/pageLayout.d.mts +2 -3
  265. package/dist/runtime/pageScroll.d.mts +1 -3
  266. package/dist/runtime/provide.d.mts +0 -2
  267. package/dist/runtime/provideStore.d.mts +1 -3
  268. package/dist/runtime/publicRuntime.d.mts +1 -3
  269. package/dist/runtime/pullDownRefresh.d.mts +1 -3
  270. package/dist/runtime/register/app.d.mts +2 -4
  271. package/dist/runtime/register/component/hmrRegistration.mjs +1 -0
  272. package/dist/runtime/register/component/props.mjs +1 -1
  273. package/dist/runtime/register/component/registerDefinition.mjs +1 -1
  274. package/dist/runtime/register/component.d.mts +2 -4
  275. package/dist/runtime/register/component.mjs +1 -1
  276. package/dist/runtime/register/inline.d.mts +1 -2
  277. package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
  278. package/dist/runtime/register/runtimeInstance.d.mts +2 -3
  279. package/dist/runtime/register/runtimeInstance.mjs +1 -1
  280. package/dist/runtime/register/setDataFrequencyWarning.mjs +1 -1
  281. package/dist/runtime/register/setup.d.mts +1 -2
  282. package/dist/runtime/register/watch.d.mts +1 -2
  283. package/dist/runtime/register/watch.mjs +1 -1
  284. package/dist/runtime/selectorQuery.d.mts +1 -3
  285. package/dist/runtime/template.d.mts +1 -3
  286. package/dist/runtime/templateRefTypes.d.mts +2 -6
  287. package/dist/runtime/types/core.d.mts +2 -8
  288. package/dist/runtime/types/miniprogram.d.mts +0 -2
  289. package/dist/runtime/types/miniprogramHost.d.mts +0 -2
  290. package/dist/runtime/types/miniprogramHostSources.d.mts +2 -3
  291. package/dist/runtime/types/options.d.mts +5 -53
  292. package/dist/runtime/types/props/propTypes.d.mts +1 -2
  293. package/dist/runtime/types/props/router.d.mts +1 -2
  294. package/dist/runtime/types/props/setup.d.mts +3 -4
  295. package/dist/runtime/types/runtime.d.mts +3 -4
  296. package/dist/runtime/types/setData.d.mts +1 -3
  297. package/dist/runtime/types.d.mts +5 -5
  298. package/dist/runtime/uniAppHost.d.mts +1 -2
  299. package/dist/runtime/updatePerformance.d.mts +1 -3
  300. package/dist/runtime/use.d.mts +1 -3
  301. package/dist/runtime/vueCompat/context.d.mts +1 -3
  302. package/dist/runtime/vueCompat/model.d.mts +2 -3
  303. package/dist/runtime/vueCompat/router.d.mts +1 -2
  304. package/dist/runtime/vueCompat/templateRef.d.mts +1 -3
  305. package/dist/scheduler.d.mts +1 -3
  306. package/dist/store/define.d.mts +1 -3
  307. package/dist/store/manager.d.mts +1 -3
  308. package/dist/store/storeToRefs.d.mts +1 -2
  309. package/dist/store/types.d.mts +3 -4
  310. package/dist/tt/jsx-runtime.d.mts +0 -2
  311. package/dist/types/definitions.d.mts +5 -0
  312. package/dist/types/pageLayout.d.mts +2 -0
  313. package/dist/types/pageMeta.d.mts +8 -0
  314. package/dist/types/reactivity.d.mts +11 -0
  315. package/dist/types.d.mts +5 -0
  316. package/dist/types.mjs +1 -0
  317. package/dist/version.d.mts +1 -3
  318. package/dist/vue-augment.d.mts +1 -3
  319. package/dist/vue-demi.d.mts +13 -9
  320. package/dist/vue-types.d.mts +3 -6
  321. package/dist/weapp/jsx-runtime.d.mts +0 -2
  322. package/package.json +22 -13
  323. /package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.mjs +0 -0
  324. /package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.mjs +0 -0
  325. /package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.mjs +0 -0
  326. /package/dist/_virtual/{_@oxc-project_runtime@0.153.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.mjs +0 -0
@@ -5,7 +5,7 @@ import { createAbsoluteRoutePath, resolvePath } from "../../routerInternal/path.
5
5
  import { stringifyQuery } from "../../routerInternal/query.mjs";
6
6
  import { parsePathInput } from "../../routerInternal/location.mjs";
7
7
 
8
- //#region src/runtime/vueCompat/router.ts
8
+ // src/runtime/vueCompat/router.ts
9
9
  const RUNTIME_ROUTER_METHODS = [
10
10
  "switchTab",
11
11
  "reLaunch",
@@ -124,6 +124,5 @@ function useNativePageRouter() {
124
124
  return useRuntimeRouterByAccessor("pageRouter", "router", "useNativePageRouter");
125
125
  }
126
126
 
127
- //#endregion
128
127
  export { useNativePageRouter, useNativeRouter };
129
128
  //# sourceMappingURL=router.mjs.map
@@ -3,7 +3,7 @@ import { getCurrentInstance } from "../hooks/base.mjs";
3
3
  import { installTemplateRefs } from "../features/templateRefs.mjs";
4
4
  import { WEVU_TEMPLATE_REF_MAP_KEY } from "@weapp-core/constants";
5
5
 
6
- //#region src/runtime/vueCompat/templateRef.ts
6
+ // src/runtime/vueCompat/templateRef.ts
7
7
  function ensureTemplateRefMap(target) {
8
8
  const existing = target[WEVU_TEMPLATE_REF_MAP_KEY];
9
9
  if (existing) return existing;
@@ -34,6 +34,5 @@ function useTemplateRef(name) {
34
34
  return target;
35
35
  }
36
36
 
37
- //#endregion
38
37
  export { useTemplateRef };
39
38
  //# sourceMappingURL=templateRef.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/scheduler.ts
1
+ // src/scheduler.ts
2
2
  const resolvedPromise = Promise.resolve();
3
3
  const jobQueue = /* @__PURE__ */ new Set();
4
4
  const deferredJobQueue = /* @__PURE__ */ new Set();
@@ -69,6 +69,5 @@ function nextTick(fn) {
69
69
  return fn ? promise.then(fn) : promise;
70
70
  }
71
71
 
72
- //#endregion
73
72
  export { nextTick, queueJob };
74
73
  //# sourceMappingURL=scheduler.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { setActivePinia } from "./manager.mjs";
2
2
 
3
- //#region src/store/actions.ts
3
+ // src/store/actions.ts
4
4
  /** Action 的结果回调属于已开始的调用,不随后续退订取消。 */
5
5
  function wrapAction(store, name, action, subscriptions, pinia) {
6
6
  return function wrapped(...args) {
@@ -33,6 +33,5 @@ function wrapAction(store, name, action, subscriptions, pinia) {
33
33
  };
34
34
  }
35
35
 
36
- //#endregion
37
36
  export { wrapAction };
38
37
  //# sourceMappingURL=actions.mjs.map
@@ -7,7 +7,7 @@ import { mergeState } from "./view.mjs";
7
7
  import { addSubscription, noop } from "./subscriptions.mjs";
8
8
  import { MutationType } from "./types.mjs";
9
9
 
10
- //#region src/store/base.ts
10
+ // src/store/base.ts
11
11
  /** 逐层追踪公开值与键增删,ref 解包不消耗额外的 state 深度。 */
12
12
  function trackState(value, depth, seen = /* @__PURE__ */ new Map()) {
13
13
  if (!value || typeof value !== "object" || depth <= 0) return;
@@ -160,6 +160,5 @@ function createBaseApi(id, pinia, scope, getStore) {
160
160
  };
161
161
  }
162
162
 
163
- //#endregion
164
163
  export { createBaseApi };
165
164
  //# sourceMappingURL=base.mjs.map
@@ -8,7 +8,7 @@ import { setActivePinia } from "../manager.mjs";
8
8
  import { wrapAction } from "../actions.mjs";
9
9
  import { createBaseApi } from "../base.mjs";
10
10
 
11
- //#region src/store/define/create.ts
11
+ // src/store/define/create.ts
12
12
  /** 创建 Store 实例;state 与实例缓存分离,释放实例后可继续复用状态。 */
13
13
  function createStoreInstance(id, definition, pinia, setupOptions) {
14
14
  const scope = pinia._e.run(() => effectScope());
@@ -76,6 +76,5 @@ function createStoreInstance(id, definition, pinia, setupOptions) {
76
76
  }
77
77
  }
78
78
 
79
- //#endregion
80
79
  export { createStoreInstance };
81
80
  //# sourceMappingURL=create.mjs.map
@@ -1,7 +1,7 @@
1
1
  import { getActivePinia, setActivePinia } from "./manager.mjs";
2
2
  import { createStoreInstance } from "./define/create.mjs";
3
3
 
4
- //#region src/store/define.ts
4
+ // src/store/define.ts
5
5
  function defineStore(id, setupOrOptions, options) {
6
6
  const useStore = (pinia) => {
7
7
  const owner = pinia ?? getActivePinia();
@@ -14,6 +14,5 @@ function defineStore(id, setupOrOptions, options) {
14
14
  return useStore;
15
15
  }
16
16
 
17
- //#endregion
18
17
  export { defineStore };
19
18
  //# sourceMappingURL=define.mjs.map
@@ -4,7 +4,7 @@ import { ref } from "../reactivity/ref.mjs";
4
4
  import { hasInjectionContext, inject } from "../runtime/provide.mjs";
5
5
  import { storeView } from "./view.mjs";
6
6
 
7
- //#region src/store/manager.ts
7
+ // src/store/manager.ts
8
8
  const piniaKey = Symbol("wevu.pinia");
9
9
  let activePinia;
10
10
  function setActivePinia(pinia) {
@@ -57,6 +57,5 @@ function disposePinia(pinia) {
57
57
  }
58
58
  }
59
59
 
60
- //#endregion
61
60
  export { createPinia, createStore, disposePinia, getActivePinia, setActivePinia };
62
61
  //# sourceMappingURL=manager.mjs.map
@@ -5,7 +5,7 @@ import { computed, isComputedRef } from "../reactivity/computed.mjs";
5
5
  import { toRef } from "../reactivity/toRefs.mjs";
6
6
  import { rawStore } from "./view.mjs";
7
7
 
8
- //#region src/store/storeToRefs.ts
8
+ // src/store/storeToRefs.ts
9
9
  function storeToRefs(store) {
10
10
  const result = {};
11
11
  for (const [key, value] of Object.entries(rawStore(store))) if (isComputedRef(value)) result[key] = isReadonly(value) ? computed(() => store[key]) : computed({
@@ -16,6 +16,5 @@ function storeToRefs(store) {
16
16
  return result;
17
17
  }
18
18
 
19
- //#endregion
20
19
  export { storeToRefs };
21
20
  //# sourceMappingURL=storeToRefs.mjs.map
@@ -1,6 +1,6 @@
1
1
  import { getCurrentScope, onScopeDispose } from "../reactivity/core.mjs";
2
2
 
3
- //#region src/store/subscriptions.ts
3
+ // src/store/subscriptions.ts
4
4
  function noop() {}
5
5
  /** 订阅归注册时的作用域所有,detached 订阅由调用方显式清理。 */
6
6
  function addSubscription(subscriptions, callback, detached = false, cleanup = noop) {
@@ -12,6 +12,5 @@ function addSubscription(subscriptions, callback, detached = false, cleanup = no
12
12
  return remove;
13
13
  }
14
14
 
15
- //#endregion
16
15
  export { addSubscription, noop };
17
16
  //# sourceMappingURL=subscriptions.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/store/types.ts
1
+ // src/store/types.ts
2
2
  /** 与 Pinia 一致的变更类型和值。 */
3
3
  const MutationType = {
4
4
  direct: "direct",
@@ -6,6 +6,5 @@ const MutationType = {
6
6
  patchFunction: "patch function"
7
7
  };
8
8
 
9
- //#endregion
10
9
  export { MutationType };
11
10
  //# sourceMappingURL=types.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/store/utils.ts
1
+ // src/store/utils.ts
2
2
  function isObject(val) {
3
3
  return typeof val === "object" && val !== null;
4
4
  }
@@ -8,6 +8,5 @@ function isPlainObject(val) {
8
8
  return proto === Object.prototype || proto === null;
9
9
  }
10
10
 
11
- //#endregion
12
11
  export { isObject, isPlainObject };
13
12
  //# sourceMappingURL=utils.mjs.map
@@ -4,7 +4,7 @@ import { isReactive, reactive } from "../reactivity/reactive.mjs";
4
4
  import { isRef } from "../reactivity/ref.mjs";
5
5
  import { isPlainObject } from "./utils.mjs";
6
6
 
7
- //#region src/store/view.ts
7
+ // src/store/view.ts
8
8
  const views = /* @__PURE__ */ new WeakMap();
9
9
  /** 仅在 Store 边界解包 ref,所有读写仍转发到原始响应式来源。 */
10
10
  function storeView(source) {
@@ -51,6 +51,5 @@ function rawStore(store) {
51
51
  return toRaw(store);
52
52
  }
53
53
 
54
- //#endregion
55
54
  export { mergeState, rawStore, storeView };
56
55
  //# sourceMappingURL=view.mjs.map
@@ -1,4 +1,4 @@
1
- //#region src/utils.ts
1
+ // src/utils.ts
2
2
  function capitalize(str) {
3
3
  if (!str) return "";
4
4
  return str.charAt(0).toUpperCase() + str.slice(1);
@@ -16,6 +16,5 @@ function hasOwn(source, key) {
16
16
  return Object.prototype.hasOwnProperty.call(source, key);
17
17
  }
18
18
 
19
- //#endregion
20
19
  export { capitalize, hasOwn, hyphenate, toPathSegments };
21
20
  //# sourceMappingURL=utils.mjs.map
@@ -1,8 +1,7 @@
1
1
  import { version as version$1 } from "./package.mjs";
2
2
 
3
- //#region src/version.ts
3
+ // src/version.ts
4
4
  const version = version$1;
5
5
 
6
- //#endregion
7
6
  export { version };
8
7
  //# sourceMappingURL=version.mjs.map
@@ -48,7 +48,7 @@ import { storeToRefs } from "./store/storeToRefs.mjs";
48
48
 
49
49
  export * from "@wevu/web-apis"
50
50
 
51
- //#region src/vue-demi.ts
51
+ // src/vue-demi.ts
52
52
  /**
53
53
  * 标记当前兼容层运行在 Vue 3 风格分支。
54
54
  */
@@ -66,6 +66,5 @@ const Vue2 = void 0;
66
66
  */
67
67
  function install() {}
68
68
 
69
- //#endregion
70
69
  export { MutationType, Vue2, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createPinia, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineStore, disposePinia, effect, effectScope, endBatch, getActivePinia, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getNavigationBarMetrics, getReactiveVersion, hasInjectionContext, inject, injectGlobal, install, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, isVue2, isVue3, 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 };
71
70
  //# sourceMappingURL=vue-demi.mjs.map
package/dist/fetch.d.mts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { WeapiMiniProgramRequestMethod } from "@wevu/api";
2
2
  import { RequestGlobalsFetchInit as WevuFetchInit, fetch } from "@wevu/web-apis/fetch";
3
- //#region src/fetch.d.ts
4
3
  export type WevuFetchInput = Parameters<typeof import('@wevu/web-apis/fetch').fetch>[0];
5
4
  export type MiniProgramRequestMethod = WeapiMiniProgramRequestMethod;
6
5
  export type WxRequestMethod = MiniProgramRequestMethod;
7
- //#endregion
8
6
  export { type WevuFetchInit, fetch };
package/dist/index.d.mts CHANGED
@@ -1,11 +1,17 @@
1
+ import { PageLayoutMeta, PageMeta } from "./types/pageMeta.mjs";
2
+ import { SetDataBindingDiagnostic, SetDataDebugInfo, SetDataSnapshotOptions } from "./runtime/types/setData.mjs";
3
+ import { PageFeatures } from "./config/pageFeatures.mjs";
1
4
  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
5
  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
6
  import { MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentInstance, MiniProgramComponentOptions, MiniProgramComponentPropertyValue, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes } from "./runtime/types/miniprogram.mjs";
4
7
  import { ComponentPropsOptions, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InferNativePropType, InferNativeProps, InferPropType, InferProps, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, PropConstructor, PropOptions, PropType } from "./runtime/types/props/propTypes.mjs";
5
8
  import { MiniProgramRouterNavigateToOption, MiniProgramRouterReLaunchOption, MiniProgramRouterRedirectToOption, MiniProgramRouterSwitchTabOption, SetupContextRouter, WevuTypedRouterRouteMap } from "./runtime/types/props/router.mjs";
9
+ import { ComputedGetter, ComputedSetter, WritableComputedOptions } from "./types/reactivity.mjs";
10
+ import { ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions } from "./types/definitions.mjs";
11
+ import { ComponentPublicInstance, ModelBinding, ModelBindingOptions, ModelBindingPayload } from "./runtime/types/core.mjs";
6
12
  import { AsyncDerivation, AsyncDerivationContext, AsyncDerivationState, AsyncDerivationStatus, UseAsyncDerivationOptions, useAsyncDerivation } from "./reactivity/asyncDerivation.mjs";
7
13
  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";
14
+ import { ComputedRef, WritableComputedRef, computed } from "./reactivity/computed.mjs";
9
15
  import { nextTick } from "./scheduler.mjs";
10
16
  import { EffectScope, batch, effect, effectScope, endBatch, getCurrentScope, onScopeDispose, startBatch, stop } from "./reactivity/core.mjs";
11
17
  import { MutationKind, MutationOp, MutationRecord, addMutationRecorder, removeMutationRecorder } from "./reactivity/reactive/mutation.mjs";
@@ -20,21 +26,19 @@ import { traverse } from "./reactivity/traverse.mjs";
20
26
  import { MapSources, MaybeUndefined, MultiWatchSources, OnCleanup, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy } from "./reactivity/watch/types.mjs";
21
27
  import { watch, watchEffect, watchPostEffect, watchSyncEffect } from "./reactivity/watch.mjs";
22
28
  import "./reactivity/index.mjs";
23
- import { ComponentPublicInstance, ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions, ModelBinding, ModelBindingOptions, ModelBindingPayload } from "./runtime/types/core.mjs";
24
29
  import { AppConfig, InternalRuntimeState, InternalRuntimeStateFields, RuntimeApp, RuntimeInstance, WevuPlugin } from "./runtime/types/runtime.mjs";
25
30
  import { SetupContext, SetupContextIntersectionObserver, SetupContextIntersectionObserverOptions, SetupContextNativeInstance, SetupContextSelectorQuery, SetupFunction } from "./runtime/types/props/setup.mjs";
26
31
  import { AllowedComponentProps, ComponentCustomProps, ComponentOptionsMixin, DefineComponent, NativeComponent, ObjectDirective, PublicProps, ShallowUnwrapRef, VNode, VNodeProps } from "./vue-types.mjs";
27
- import { SetDataBindingDiagnostic, SetDataDebugInfo, SetDataSnapshotOptions } from "./runtime/types/setData.mjs";
28
- import { CreateAppOptions, DataOption, DefineAppOptions, DefineComponentOptions, PageFeatures } from "./runtime/types/options.mjs";
32
+ import { CreateAppOptions, DataOption, DefineAppOptions, DefineComponentOptions } from "./runtime/types/options.mjs";
29
33
  import { GlobalComponents, GlobalDirectives, MiniProgramTemplateRefValue, TemplateRefValue, TemplateRefs, WevuGlobalComponents, WevuGlobalDirectives } from "./runtime/types.mjs";
30
- import "./runtime/templateRefTypes.mjs";
31
34
  import "./vue-augment.mjs";
32
35
  import { useCssModule } from "./runtime/css.mjs";
33
36
  import { WevuDefaults, resetWevuDefaults } from "./runtime/defaults.mjs";
34
37
  import { ComponentDefinition, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, SetupContextWithTypeProps, SetupFunctionWithTypeProps, WevuComponentConstructor, WevuDefinedComponent } from "./runtime/define.mjs";
35
38
  import { DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, useDisposables } from "./runtime/disposables.mjs";
36
39
  import { ElementIntersectionObserverCallback, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, useElementIntersectionObserver } from "./runtime/elementIntersectionObserver.mjs";
37
- import { PageLayoutState, WevuPageLayoutMap } from "./runtime/pageLayout.mjs";
40
+ import { WevuPageLayoutMap } from "./types/pageLayout.mjs";
41
+ import { PageLayoutState } from "./runtime/pageLayout.mjs";
38
42
  import { LayoutHostBinding } from "./runtime/capabilities.mjs";
39
43
  import { LayoutBridgeInstance } from "./runtime/layoutBridge.mjs";
40
44
  import { registerPageLayoutBridge, registerRuntimeLayoutHosts, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, setPageLayout, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, useLayoutBridge, useLayoutHosts, usePageLayout, waitForLayoutHost } from "./runtime/features/publicLayout.mjs";
@@ -61,7 +65,8 @@ import { useNativePageRouter, useNativeRouter } from "./runtime/vueCompat/router
61
65
  import { TemplateRef, useTemplateRef } from "./runtime/vueCompat/templateRef.mjs";
62
66
  import "./runtime/index.mjs";
63
67
  import { ComponentTypeEmits, EmitFn, EmitsOptions } from "./macros/shared.mjs";
64
- import { DefineModelModifiers, DefineModelTransformOptions, ModelRef, PageLayoutMeta, PageMeta, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, withDefaults } from "./macros.mjs";
68
+ import { DefineModelModifiers, DefineModelTransformOptions, ModelRef, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, withDefaults } from "./macros.mjs";
69
+ import { MiniProgramTemplateRefElements } from "./runtime/templateRefTypes.mjs";
65
70
  import { ActionContext, ActionSubscriber, DefineStoreOptions, MutationType, Pinia, PiniaCustomProperties, PiniaCustomStateProperties, PiniaPlugin, PiniaPluginContext, StateTree, StoreActions, StoreDefinition, StoreGeneric, StoreManager, StoreState, StoreSubscribeOptions, SubscriptionCallback, SubscriptionCallbackMutation } from "./store/types.mjs";
66
71
  import { defineStore } from "./store/define.mjs";
67
72
  import { createPinia, createStore, disposePinia, getActivePinia, setActivePinia } from "./store/manager.mjs";
@@ -69,4 +74,4 @@ import { StoreToRefsResult, storeToRefs } from "./store/storeToRefs.mjs";
69
74
  import "./store.mjs";
70
75
  import { version } from "./version.mjs";
71
76
  export * from "@wevu/web-apis";
72
- 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 };
77
+ 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, type MiniProgramTemplateRefElements, 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, type PageLayoutMeta, type PageLayoutState, type 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 };
@@ -1,6 +1,7 @@
1
+ import { ComputedGetter, ComputedSetter, WritableComputedOptions } from "./types/reactivity.mjs";
1
2
  import { AsyncDerivation, AsyncDerivationContext, AsyncDerivationState, AsyncDerivationStatus, UseAsyncDerivationOptions, useAsyncDerivation } from "./reactivity/asyncDerivation.mjs";
2
3
  import { CustomRefFactory, CustomRefOptions, CustomRefSource, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, customRef, isRef, ref, toValue, unref } from "./reactivity/ref.mjs";
3
- import { ComputedGetter, ComputedRef, ComputedSetter, WritableComputedOptions, WritableComputedRef, computed } from "./reactivity/computed.mjs";
4
+ import { ComputedRef, WritableComputedRef, computed } from "./reactivity/computed.mjs";
4
5
  import { nextTick } from "./scheduler.mjs";
5
6
  import { EffectScope, batch, effect, effectScope, endBatch, getCurrentScope, onScopeDispose, startBatch, stop } from "./reactivity/core.mjs";
6
7
  import { MutationKind, MutationOp, MutationRecord, addMutationRecorder, removeMutationRecorder } from "./reactivity/reactive/mutation.mjs";
@@ -1,5 +1,4 @@
1
1
  import { WevuJsxVNode } from "./jsxTypes.mjs";
2
- //#region src/jsx-runtime.d.ts
3
2
  interface WevuJsxClassObject {
4
3
  [name: string]: boolean | null | undefined;
5
4
  }
@@ -55,4 +54,4 @@ export declare namespace JSX {
55
54
  interface IntrinsicAttributes extends WevuJsxHostAttributes {}
56
55
  interface IntrinsicElements extends WevuJsxGlobalComponents {}
57
56
  }
58
- //#endregion
57
+ export {};
@@ -1,8 +1,6 @@
1
- //#region src/jsxTypes.d.ts
2
1
  /** Wevu JSX island 使用的内部节点结构。 */
3
2
  export interface WevuJsxVNode {
4
3
  children?: unknown;
5
4
  props?: Record<string, unknown> | null;
6
5
  type: unknown;
7
- }
8
- //#endregion
6
+ }
@@ -1,10 +1,9 @@
1
1
  import { HostMiniProgramComponentAllFullProperty, HostMiniProgramComponentAllProperty, HostMiniProgramComponentBehaviorOptions, HostMiniProgramComponentEmptyArray, HostMiniProgramComponentMethodOption, HostMiniProgramComponentPropertyOption, HostMiniProgramTriggerEventOptions } from "../runtime/types/miniprogramHost.mjs";
2
2
  import { MiniProgramComponentInstance, MiniProgramComponentPropertyValue } from "../runtime/types/miniprogram.mjs";
3
3
  import { ComponentPropsOptions, InferProps } from "../runtime/types/props/propTypes.mjs";
4
- import { ComputedDefinitions, MethodDefinitions } from "../runtime/types/core.mjs";
4
+ import { ComputedDefinitions, MethodDefinitions } from "../types/definitions.mjs";
5
5
  import { DefineComponentOptions } from "../runtime/types/options.mjs";
6
6
  import "../runtime/index.mjs";
7
- //#region src/macros/shared.d.ts
8
7
  export type Prettify<T> = { [K in keyof T]: T[K]; } & {};
9
8
  type IfAny<T, Y, N> = 0 extends 1 & T ? Y : N;
10
9
  type ComponentObjectPropsOptions = ComponentPropsOptions;
@@ -79,4 +78,4 @@ export type ScriptSetupDefineOptions<D extends object = Record<string, any>, C e
79
78
  */
80
79
  setupLifecycle?: 'created' | 'attached';
81
80
  };
82
- //#endregion
81
+ export {};
package/dist/macros.d.mts CHANGED
@@ -1,11 +1,11 @@
1
+ import { PageLayoutMeta, PageMeta } from "./types/pageMeta.mjs";
1
2
  import { HostMiniProgramComponentPropertyOption } from "./runtime/types/miniprogramHost.mjs";
2
3
  import { ComponentPropsOptions } from "./runtime/types/props/propTypes.mjs";
4
+ import { ComputedDefinitions, MethodDefinitions } from "./types/definitions.mjs";
3
5
  import { Ref } from "./reactivity/ref.mjs";
4
6
  import "./reactivity/index.mjs";
5
- import { ComputedDefinitions, MethodDefinitions } from "./runtime/types/core.mjs";
6
7
  import "./runtime/index.mjs";
7
8
  import { BooleanKey, ComponentTypeEmits, DefineProps, DefinePropsFromArray, DefinePropsFromOptions, EmitFn, EmitsOptions, InferDefaults, PropsWithDefaults, ScriptSetupDefineOptions, ShortEmits } from "./macros/shared.mjs";
8
- //#region src/macros.d.ts
9
9
  /**
10
10
  * defineProps 声明(类型层宏)。
11
11
  */
@@ -35,14 +35,6 @@ export declare function defineOptions<D extends object = Record<string, any>, C
35
35
  * defineSlots 声明 slots 类型(仅类型层)。
36
36
  */
37
37
  export declare function defineSlots<T extends Record<string, any> = Record<string, any>>(): T;
38
- export type PageLayoutMeta = string | false | {
39
- name: string;
40
- props?: Record<string, unknown>;
41
- };
42
- export interface PageMeta {
43
- layout?: PageLayoutMeta;
44
- [key: string]: unknown;
45
- }
46
38
  /**
47
39
  * definePageMeta 声明页面级元信息(仅类型层)。
48
40
  */
@@ -66,5 +58,4 @@ export declare function defineModel<T = any, M extends PropertyKey = string, G =
66
58
  export declare function defineModel<T = any, M extends PropertyKey = string, G = T, S = T>(name: string, options: DefineModelBaseOptions<T, M, G, S> & DefineModelRequiredOptions<T>): ModelRef<T, M, G, S>;
67
59
  export declare function defineModel<T = any, M extends PropertyKey = string, G = T, S = T>(options?: DefineModelBaseOptions<T | undefined, M, G | undefined, S | undefined>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
68
60
  export declare function defineModel<T = any, M extends PropertyKey = string, G = T, S = T>(name?: string, options?: DefineModelBaseOptions<T | undefined, M, G | undefined, S | undefined>): ModelRef<T | undefined, M, G | undefined, S | undefined>;
69
- //#endregion
70
- export type { ComponentTypeEmits, EmitFn, EmitsOptions };
61
+ export type { ComponentTypeEmits, EmitFn, EmitsOptions, PageLayoutMeta, PageMeta };
@@ -1,6 +1,5 @@
1
1
  import { JSX as JSX$1, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxGlobalComponents as WevuJsxGlobalComponents$1, WevuJsxHostAttributes } from "wevu/jsx-runtime";
2
2
  import { MiniProgramIntrinsicElementBaseAttributes, MiniProgramIntrinsicElements, MiniProgramIntrinsicElements as MiniProgramIntrinsicElements$1 } from "@weapp-core/types/miniprogram";
3
- //#region src/miniprogram/jsx-runtime.d.ts
4
3
  export declare namespace JSX {
5
4
  type Element = JSX$1.Element;
6
5
  interface ElementClass extends JSX$1.ElementClass {}
@@ -8,5 +7,4 @@ export declare namespace JSX {
8
7
  interface IntrinsicAttributes extends JSX$1.IntrinsicAttributes {}
9
8
  interface IntrinsicElements extends WevuJsxGlobalComponents$1, MiniProgramIntrinsicElements$1 {}
10
9
  }
11
- //#endregion
12
10
  export type { MiniProgramIntrinsicElementBaseAttributes, MiniProgramIntrinsicElements, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxHostAttributes };
package/dist/package.mjs CHANGED
@@ -1 +1 @@
1
- var e=`7.5.0`;export{e as version};
1
+ var e=`7.7.0`;export{e as version};
@@ -1,4 +1,3 @@
1
- //#region src/reactivity/asyncDerivation.d.ts
2
1
  /** 异步派生状态的生命周期阶段。 */
3
2
  export type AsyncDerivationStatus = 'idle' | 'initial-pending' | 'ready' | 'refreshing' | 'error' | 'disposed';
4
3
  /** 传给异步加载函数的当前任务上下文。 */
@@ -37,4 +36,4 @@ export type AsyncDerivation<T> = AsyncDerivationState<T> & AsyncDerivationContro
37
36
  * 加载错误通过 `status` 与 `error` 暴露,`refresh()` 始终正常完成。
38
37
  */
39
38
  export declare function useAsyncDerivation<T>(loader: (context: AsyncDerivationContext) => T | PromiseLike<T>, options?: UseAsyncDerivationOptions): AsyncDerivation<T>;
40
- //#endregion
39
+ export {};
@@ -1,7 +1,5 @@
1
+ import { ComputedGetter, ComputedSetter, WritableComputedOptions } from "../types/reactivity.mjs";
1
2
  import { Ref } from "./ref.mjs";
2
- //#region src/reactivity/computed.d.ts
3
- export type ComputedGetter<T> = () => T;
4
- export type ComputedSetter<T> = (value: T) => void;
5
3
  declare const computedBrand: unique symbol;
6
4
  declare const writableComputedBrand: unique symbol;
7
5
  interface BaseComputedRef<T, S = T> extends Ref<T, S> {
@@ -15,10 +13,6 @@ export interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {
15
13
  readonly [writableComputedBrand]: true;
16
14
  value: T;
17
15
  }
18
- export interface WritableComputedOptions<T> {
19
- get: ComputedGetter<T>;
20
- set: ComputedSetter<T>;
21
- }
22
16
  export declare function computed<T>(getter: ComputedGetter<T>): ComputedRef<T>;
23
17
  export declare function computed<T>(options: WritableComputedOptions<T>): WritableComputedRef<T>;
24
- //#endregion
18
+ export type { ComputedGetter, ComputedSetter, WritableComputedOptions };
@@ -1,4 +1,3 @@
1
- //#region src/reactivity/core.d.ts
2
1
  export type EffectScheduler = () => void;
3
2
  export type Dep = Set<ReactiveEffect>;
4
3
  export interface ReactiveEffect<T = any> {
@@ -30,5 +29,4 @@ export interface EffectOptions {
30
29
  lazy?: boolean;
31
30
  onStop?: () => void;
32
31
  }
33
- export declare function effect<T = any>(fn: () => T, options?: EffectOptions): ReactiveEffect<T>;
34
- //#endregion
32
+ export declare function effect<T = any>(fn: () => T, options?: EffectOptions): ReactiveEffect<T>;
@@ -1 +1 @@
1
- import{queueJob as e}from"../scheduler.mjs";import t from"../_virtual/_@oxc-project_runtime@0.153.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}}else e()}}function f(e){s>0||c?u.add(e):(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){o&&(o.active?o.effects.push(e):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){e._running||(e._computed?d(e):s>0||c?l.add(e):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.155.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}}else e()}}function f(e){s>0||c?u.add(e):(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){o&&(o.active?o.effects.push(e):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){e._running||(e._computed?d(e):s>0||c?l.add(e):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,6 +1,7 @@
1
+ import { ComputedGetter, ComputedSetter, WritableComputedOptions } from "../types/reactivity.mjs";
1
2
  import { AsyncDerivation, AsyncDerivationContext, AsyncDerivationState, AsyncDerivationStatus, UseAsyncDerivationOptions, useAsyncDerivation } from "./asyncDerivation.mjs";
2
3
  import { CustomRefFactory, CustomRefOptions, CustomRefSource, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, customRef, isRef, ref, toValue, unref } from "./ref.mjs";
3
- import { ComputedGetter, ComputedRef, ComputedSetter, WritableComputedOptions, WritableComputedRef, computed } from "./computed.mjs";
4
+ import { ComputedRef, WritableComputedRef, computed } from "./computed.mjs";
4
5
  import { EffectScope, batch, effect, effectScope, endBatch, getCurrentScope, onScopeDispose, startBatch, stop } from "./core.mjs";
5
6
  import { MutationKind, MutationOp, MutationRecord, addMutationRecorder, removeMutationRecorder } from "./reactive/mutation.mjs";
6
7
  import { PrelinkReactiveTreeOptions, prelinkReactiveTree, touchReactive } from "./reactive/patch.mjs";
@@ -1,4 +1,3 @@
1
- //#region src/reactivity/reactive/mutation.d.ts
2
1
  export type MutationOp = 'set' | 'delete';
3
2
  export type MutationKind = 'property' | 'array';
4
3
  export interface MutationRecord {
@@ -17,4 +16,4 @@ export interface MutationRecord {
17
16
  type MutationRecorder = (record: MutationRecord) => void;
18
17
  export declare function addMutationRecorder(recorder: MutationRecorder): void;
19
18
  export declare function removeMutationRecorder(recorder: MutationRecorder): void;
20
- //#endregion
19
+ export {};
@@ -1,4 +1,3 @@
1
- //#region src/reactivity/reactive/patch.d.ts
2
1
  export interface PrelinkReactiveTreeOptions {
3
2
  shouldIncludeTopKey?: (key: string) => boolean;
4
3
  maxDepth?: number;
@@ -13,5 +12,4 @@ export declare function prelinkReactiveTree(root: object, options?: PrelinkReact
13
12
  * 让 effect 订阅整个对象的“版本号”,无需深度遍历即可对任何字段变化做出响应。
14
13
  * @internal
15
14
  */
16
- export declare function touchReactive(target: object): void;
17
- //#endregion
15
+ export declare function touchReactive(target: object): void;
@@ -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){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}s===1&&n&&o?(a.delete(e),r.set(e,{parent:n,key:o})):(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
+ 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}s===1&&n&&o?(a.delete(e),r.set(e,{parent:n,key:o})):(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,4 +1,3 @@
1
- //#region src/reactivity/reactive/shallow.d.ts
2
1
  /**
3
2
  * 创建一个浅层响应式代理:仅跟踪第一层属性变更,不深度递归嵌套对象。
4
3
  *
@@ -17,5 +16,4 @@ export declare function shallowReactive<T extends object>(target: T): T;
17
16
  /**
18
17
  * 判断一个值是否为 shallowReactive 创建的浅层响应式对象
19
18
  */
20
- export declare function isShallowReactive(value: unknown): boolean;
21
- //#endregion
19
+ export declare function isShallowReactive(value: unknown): boolean;