wevu 7.6.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 (298) hide show
  1. package/dist/alipay/jsx-runtime.d.mts +0 -2
  2. package/dist/config/defaults.d.mts +1 -3
  3. package/dist/config/pageFeatures.d.mts +1 -3
  4. package/dist/dev/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.mjs +1 -2
  5. package/dist/dev/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.mjs +1 -2
  6. package/dist/dev/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.mjs +1 -2
  7. package/dist/dev/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.mjs +1 -2
  8. package/dist/dev/api/vitest/setup.mjs +1 -2
  9. package/dist/dev/package.mjs +2 -3
  10. package/dist/dev/reactivity/asyncDerivation.mjs +1 -2
  11. package/dist/dev/reactivity/computed.mjs +1 -2
  12. package/dist/dev/reactivity/core.mjs +2 -3
  13. package/dist/dev/reactivity/reactive/mutation.mjs +1 -2
  14. package/dist/dev/reactivity/reactive/patch.mjs +1 -2
  15. package/dist/dev/reactivity/reactive/patchState.mjs +1 -2
  16. package/dist/dev/reactivity/reactive/shallow.mjs +1 -2
  17. package/dist/dev/reactivity/reactive/shared.mjs +1 -2
  18. package/dist/dev/reactivity/reactive/state.mjs +1 -2
  19. package/dist/dev/reactivity/reactive.mjs +1 -2
  20. package/dist/dev/reactivity/readonly.mjs +1 -2
  21. package/dist/dev/reactivity/ref.mjs +2 -3
  22. package/dist/dev/reactivity/shallowRef.mjs +1 -2
  23. package/dist/dev/reactivity/toRefs.mjs +1 -2
  24. package/dist/dev/reactivity/traverse.mjs +1 -2
  25. package/dist/dev/reactivity/watch/helpers.mjs +1 -2
  26. package/dist/dev/reactivity/watch/types.mjs +1 -2
  27. package/dist/dev/reactivity/watch.mjs +1 -2
  28. package/dist/dev/router/auto-routes.mjs +1 -2
  29. package/dist/dev/router/backNavigation.mjs +1 -2
  30. package/dist/dev/router/createRouter.mjs +1 -2
  31. package/dist/dev/router/initialNavigation.mjs +1 -2
  32. package/dist/dev/router/instance.mjs +1 -2
  33. package/dist/dev/router/navigationApi.mjs +1 -2
  34. package/dist/dev/router/navigationCore.mjs +1 -2
  35. package/dist/dev/router/navigationResult.mjs +1 -2
  36. package/dist/dev/router/navigationTarget.mjs +1 -2
  37. package/dist/dev/router/navigationTargetHelpers.mjs +1 -2
  38. package/dist/dev/router/resolve.mjs +1 -2
  39. package/dist/dev/router/routeRegistry.mjs +1 -2
  40. package/dist/dev/router/routeSync.mjs +1 -2
  41. package/dist/dev/router/scrollRestoration/adapters.mjs +1 -2
  42. package/dist/dev/router/scrollRestoration/controller.mjs +1 -2
  43. package/dist/dev/router/scrollRestoration/host.mjs +1 -2
  44. package/dist/dev/router/scrollRestoration/index.mjs +1 -2
  45. package/dist/dev/router/types.mjs +1 -2
  46. package/dist/dev/router/useRoute.mjs +1 -2
  47. package/dist/dev/router/useRouter.mjs +1 -2
  48. package/dist/dev/routerInternal/location.mjs +1 -2
  49. package/dist/dev/routerInternal/matching.mjs +1 -2
  50. package/dist/dev/routerInternal/params.mjs +1 -2
  51. package/dist/dev/routerInternal/path.mjs +1 -2
  52. package/dist/dev/routerInternal/query.mjs +1 -2
  53. package/dist/dev/routerInternal/records.mjs +1 -2
  54. package/dist/dev/routerInternal/recordsWarnings.mjs +1 -2
  55. package/dist/dev/routerInternal/snapshots.mjs +1 -2
  56. package/dist/dev/runtime/app/computed.mjs +1 -2
  57. package/dist/dev/runtime/app/context.mjs +1 -2
  58. package/dist/dev/runtime/app/diagnostics.mjs +1 -2
  59. package/dist/dev/runtime/app/mount.mjs +1 -2
  60. package/dist/dev/runtime/app/pending.mjs +1 -2
  61. package/dist/dev/runtime/app/setData/commitTracker.mjs +1 -2
  62. package/dist/dev/runtime/app/setData/observation.mjs +1 -2
  63. package/dist/dev/runtime/app/setData/patchScheduler.mjs +1 -2
  64. package/dist/dev/runtime/app/setData/payload.mjs +1 -2
  65. package/dist/dev/runtime/app/setData/scheduler.mjs +1 -2
  66. package/dist/dev/runtime/app/setData/snapshot.mjs +1 -2
  67. package/dist/dev/runtime/app/setDataOptions.mjs +1 -2
  68. package/dist/dev/runtime/app.mjs +1 -2
  69. package/dist/dev/runtime/bindModel.mjs +1 -2
  70. package/dist/dev/runtime/bindingManifest.mjs +1 -2
  71. package/dist/dev/runtime/capabilities.mjs +1 -2
  72. package/dist/dev/runtime/css.mjs +1 -2
  73. package/dist/dev/runtime/defaults.mjs +1 -2
  74. package/dist/dev/runtime/define/componentDefinition.mjs +1 -2
  75. package/dist/dev/runtime/define/initialComputed.mjs +1 -2
  76. package/dist/dev/runtime/define/options.mjs +1 -2
  77. package/dist/dev/runtime/define/optionsApi.mjs +1 -2
  78. package/dist/dev/runtime/define/props.mjs +1 -2
  79. package/dist/dev/runtime/define/scopedSlotOptions.mjs +1 -2
  80. package/dist/dev/runtime/define/setupResult.mjs +1 -2
  81. package/dist/dev/runtime/define.mjs +1 -2
  82. package/dist/dev/runtime/diff.mjs +1 -2
  83. package/dist/dev/runtime/disposables.mjs +1 -2
  84. package/dist/dev/runtime/elementIntersectionObserver.mjs +1 -2
  85. package/dist/dev/runtime/emit.mjs +1 -2
  86. package/dist/dev/runtime/features/inlineEvents.mjs +1 -2
  87. package/dist/dev/runtime/features/jsxIslands.mjs +1 -2
  88. package/dist/dev/runtime/features/layout.mjs +1 -2
  89. package/dist/dev/runtime/features/patchStrategy.mjs +1 -2
  90. package/dist/dev/runtime/features/publicLayout.mjs +1 -2
  91. package/dist/dev/runtime/features/scopedSlots.mjs +1 -2
  92. package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs +1 -2
  93. package/dist/dev/runtime/features/templateRefs.mjs +1 -2
  94. package/dist/dev/runtime/hooks/base.mjs +1 -2
  95. package/dist/dev/runtime/hooks/pageScroll.mjs +1 -2
  96. package/dist/dev/runtime/hooks/register.mjs +1 -2
  97. package/dist/dev/runtime/hooks/vue.mjs +1 -2
  98. package/dist/dev/runtime/inlineDataset.mjs +1 -2
  99. package/dist/dev/runtime/internal.mjs +1 -2
  100. package/dist/dev/runtime/intersectionObserver.mjs +1 -2
  101. package/dist/dev/runtime/jsxIsland.mjs +1 -2
  102. package/dist/dev/runtime/layoutBridge.mjs +1 -2
  103. package/dist/dev/runtime/layoutComponentMatcher.mjs +1 -2
  104. package/dist/dev/runtime/nativeBridge.mjs +1 -2
  105. package/dist/dev/runtime/navigationLifecycle.mjs +1 -2
  106. package/dist/dev/runtime/noSetData.mjs +1 -2
  107. package/dist/dev/runtime/pageEnvironment.mjs +1 -2
  108. package/dist/dev/runtime/pageLayout.mjs +1 -2
  109. package/dist/dev/runtime/pageScroll.mjs +1 -2
  110. package/dist/dev/runtime/platform/current.mjs +1 -2
  111. package/dist/dev/runtime/platform/generic.mjs +1 -2
  112. package/dist/dev/runtime/platform/globals.mjs +1 -2
  113. package/dist/dev/runtime/platform.mjs +1 -2
  114. package/dist/dev/runtime/provide.mjs +1 -2
  115. package/dist/dev/runtime/provideContext.mjs +1 -2
  116. package/dist/dev/runtime/provideStore.mjs +1 -2
  117. package/dist/dev/runtime/publicRuntime.mjs +1 -2
  118. package/dist/dev/runtime/pullDownRefresh.mjs +1 -2
  119. package/dist/dev/runtime/register/app.mjs +1 -2
  120. package/dist/dev/runtime/register/component/alipay.mjs +1 -2
  121. package/dist/dev/runtime/register/component/alipayRegistration.mjs +1 -2
  122. package/dist/dev/runtime/register/component/features.mjs +1 -2
  123. package/dist/dev/runtime/register/component/hmrRegistration.mjs +1 -2
  124. package/dist/dev/runtime/register/component/lifecycle/optionalHooks.mjs +1 -2
  125. package/dist/dev/runtime/register/component/lifecycle/platform.mjs +1 -2
  126. package/dist/dev/runtime/register/component/lifecycle.mjs +1 -2
  127. package/dist/dev/runtime/register/component/methods.mjs +1 -2
  128. package/dist/dev/runtime/register/component/options.mjs +1 -2
  129. package/dist/dev/runtime/register/component/props.mjs +1 -2
  130. package/dist/dev/runtime/register/component/registerDefinition.mjs +1 -2
  131. package/dist/dev/runtime/register/component/registerNativeDefinition.mjs +1 -2
  132. package/dist/dev/runtime/register/component.mjs +1 -2
  133. package/dist/dev/runtime/register/inline.mjs +1 -2
  134. package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs +1 -2
  135. package/dist/dev/runtime/register/runtimeInstance/nativeDeclaration.mjs +1 -2
  136. package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs +1 -2
  137. package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +1 -2
  138. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +1 -2
  139. package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -2
  140. package/dist/dev/runtime/register/runtimeInstance/utils.mjs +1 -2
  141. package/dist/dev/runtime/register/runtimeInstance.mjs +1 -2
  142. package/dist/dev/runtime/register/setDataFrequencyWarning.mjs +1 -2
  143. package/dist/dev/runtime/register/setup.mjs +1 -2
  144. package/dist/dev/runtime/register/snapshot.mjs +1 -2
  145. package/dist/dev/runtime/register/watch.mjs +1 -2
  146. package/dist/dev/runtime/scopedSlots.mjs +1 -2
  147. package/dist/dev/runtime/selectorQuery.mjs +1 -2
  148. package/dist/dev/runtime/setupTracking.mjs +1 -2
  149. package/dist/dev/runtime/teardown.mjs +1 -2
  150. package/dist/dev/runtime/template.mjs +1 -2
  151. package/dist/dev/runtime/templateRefs/helpers.mjs +1 -2
  152. package/dist/dev/runtime/templateRefs.mjs +1 -2
  153. package/dist/dev/runtime/uniAppHost.mjs +1 -2
  154. package/dist/dev/runtime/updatePerformance.mjs +1 -2
  155. package/dist/dev/runtime/use.mjs +1 -2
  156. package/dist/dev/runtime/vueCompat/context.mjs +1 -2
  157. package/dist/dev/runtime/vueCompat/model.mjs +1 -2
  158. package/dist/dev/runtime/vueCompat/router.mjs +1 -2
  159. package/dist/dev/runtime/vueCompat/templateRef.mjs +1 -2
  160. package/dist/dev/scheduler.mjs +1 -2
  161. package/dist/dev/store/actions.mjs +1 -2
  162. package/dist/dev/store/base.mjs +1 -2
  163. package/dist/dev/store/define/create.mjs +1 -2
  164. package/dist/dev/store/define.mjs +1 -2
  165. package/dist/dev/store/manager.mjs +1 -2
  166. package/dist/dev/store/storeToRefs.mjs +1 -2
  167. package/dist/dev/store/subscriptions.mjs +1 -2
  168. package/dist/dev/store/types.mjs +1 -2
  169. package/dist/dev/store/utils.mjs +1 -2
  170. package/dist/dev/store/view.mjs +1 -2
  171. package/dist/dev/utils.mjs +1 -2
  172. package/dist/dev/version.mjs +1 -2
  173. package/dist/dev/vue-demi.mjs +1 -2
  174. package/dist/fetch.d.mts +0 -2
  175. package/dist/jsx-runtime.d.mts +0 -2
  176. package/dist/jsxTypes.d.mts +1 -3
  177. package/dist/macros/shared.d.mts +0 -2
  178. package/dist/macros.d.mts +0 -2
  179. package/dist/miniprogram/jsx-runtime.d.mts +0 -2
  180. package/dist/package.mjs +1 -1
  181. package/dist/reactivity/asyncDerivation.d.mts +0 -2
  182. package/dist/reactivity/computed.d.mts +0 -2
  183. package/dist/reactivity/core.d.mts +1 -3
  184. package/dist/reactivity/core.mjs +1 -1
  185. package/dist/reactivity/reactive/mutation.d.mts +0 -2
  186. package/dist/reactivity/reactive/patch.d.mts +1 -3
  187. package/dist/reactivity/reactive/patchState.mjs +1 -1
  188. package/dist/reactivity/reactive/shallow.d.mts +1 -3
  189. package/dist/reactivity/reactive/shared.d.mts +1 -3
  190. package/dist/reactivity/reactive.d.mts +0 -2
  191. package/dist/reactivity/readonly.d.mts +1 -3
  192. package/dist/reactivity/ref.d.mts +1 -3
  193. package/dist/reactivity/ref.mjs +1 -1
  194. package/dist/reactivity/shallowRef.d.mts +1 -3
  195. package/dist/reactivity/toRefs.d.mts +0 -2
  196. package/dist/reactivity/traverse.d.mts +1 -3
  197. package/dist/reactivity/watch/types.d.mts +0 -2
  198. package/dist/reactivity/watch.d.mts +0 -2
  199. package/dist/router/auto-routes.d.mts +0 -2
  200. package/dist/router/createRouter.d.mts +1 -3
  201. package/dist/router/navigationCore.d.mts +1 -3
  202. package/dist/router/resolve.d.mts +1 -3
  203. package/dist/router/scrollRestoration/adapters.d.mts +1 -3
  204. package/dist/router/scrollRestoration/controller.d.mts +1 -3
  205. package/dist/router/scrollRestoration/index.d.mts +0 -2
  206. package/dist/router/scrollRestoration/index.mjs +1 -1
  207. package/dist/router/scrollRestoration/types.d.mts +1 -3
  208. package/dist/router/types.d.mts +0 -2
  209. package/dist/router/useRoute.d.mts +1 -3
  210. package/dist/router/useRouter.d.mts +1 -3
  211. package/dist/router.d.mts +0 -2
  212. package/dist/routerInternal/query.d.mts +1 -3
  213. package/dist/routerInternal/types.d.mts +1 -3
  214. package/dist/runtime/app/pending.d.mts +1 -3
  215. package/dist/runtime/app/setData/commitTracker.d.mts +1 -3
  216. package/dist/runtime/app/setData/observation.d.mts +0 -2
  217. package/dist/runtime/app/setData/scheduler.d.mts +1 -3
  218. package/dist/runtime/app/setData/scheduler.mjs +1 -1
  219. package/dist/runtime/app.d.mts +1 -3
  220. package/dist/runtime/capabilities.d.mts +0 -2
  221. package/dist/runtime/css.d.mts +1 -3
  222. package/dist/runtime/defaults.d.mts +1 -3
  223. package/dist/runtime/define/props.mjs +1 -1
  224. package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
  225. package/dist/runtime/define.d.mts +0 -2
  226. package/dist/runtime/disposables.d.mts +1 -3
  227. package/dist/runtime/elementIntersectionObserver.d.mts +1 -3
  228. package/dist/runtime/features/inlineEvents.d.mts +1 -3
  229. package/dist/runtime/features/jsxIslands.d.mts +1 -3
  230. package/dist/runtime/features/layout.d.mts +1 -3
  231. package/dist/runtime/features/patchStrategy.d.mts +1 -3
  232. package/dist/runtime/features/publicLayout.d.mts +0 -2
  233. package/dist/runtime/features/scopedSlots.d.mts +1 -3
  234. package/dist/runtime/features/setDataHighFrequencyWarning.d.mts +1 -3
  235. package/dist/runtime/features/templateRefs.d.mts +1 -3
  236. package/dist/runtime/hooks/base.d.mts +1 -3
  237. package/dist/runtime/hooks/register.d.mts +1 -3
  238. package/dist/runtime/hooks/vue.d.mts +1 -3
  239. package/dist/runtime/intersectionObserver.d.mts +1 -3
  240. package/dist/runtime/jsxIsland.d.mts +1 -3
  241. package/dist/runtime/layoutBridge.d.mts +0 -2
  242. package/dist/runtime/noSetData.d.mts +1 -3
  243. package/dist/runtime/pageEnvironment.d.mts +1 -3
  244. package/dist/runtime/pageLayout.d.mts +0 -2
  245. package/dist/runtime/pageScroll.d.mts +1 -3
  246. package/dist/runtime/provide.d.mts +0 -2
  247. package/dist/runtime/provideStore.d.mts +1 -3
  248. package/dist/runtime/publicRuntime.d.mts +1 -3
  249. package/dist/runtime/pullDownRefresh.d.mts +1 -3
  250. package/dist/runtime/register/app.d.mts +1 -3
  251. package/dist/runtime/register/component.d.mts +1 -3
  252. package/dist/runtime/register/inline.d.mts +0 -2
  253. package/dist/runtime/register/runtimeInstance.d.mts +0 -2
  254. package/dist/runtime/register/runtimeInstance.mjs +1 -1
  255. package/dist/runtime/register/setDataFrequencyWarning.mjs +1 -1
  256. package/dist/runtime/register/setup.d.mts +0 -2
  257. package/dist/runtime/register/watch.d.mts +0 -2
  258. package/dist/runtime/selectorQuery.d.mts +1 -3
  259. package/dist/runtime/template.d.mts +1 -3
  260. package/dist/runtime/templateRefTypes.d.mts +0 -2
  261. package/dist/runtime/types/core.d.mts +0 -2
  262. package/dist/runtime/types/miniprogram.d.mts +0 -2
  263. package/dist/runtime/types/miniprogramHost.d.mts +0 -2
  264. package/dist/runtime/types/miniprogramHostSources.d.mts +1 -3
  265. package/dist/runtime/types/options.d.mts +0 -2
  266. package/dist/runtime/types/props/propTypes.d.mts +0 -2
  267. package/dist/runtime/types/props/router.d.mts +0 -2
  268. package/dist/runtime/types/props/setup.d.mts +1 -3
  269. package/dist/runtime/types/runtime.d.mts +1 -3
  270. package/dist/runtime/types/setData.d.mts +1 -3
  271. package/dist/runtime/types.d.mts +0 -2
  272. package/dist/runtime/uniAppHost.d.mts +0 -2
  273. package/dist/runtime/updatePerformance.d.mts +1 -3
  274. package/dist/runtime/use.d.mts +1 -3
  275. package/dist/runtime/vueCompat/context.d.mts +1 -3
  276. package/dist/runtime/vueCompat/model.d.mts +0 -2
  277. package/dist/runtime/vueCompat/router.d.mts +0 -2
  278. package/dist/runtime/vueCompat/templateRef.d.mts +1 -3
  279. package/dist/scheduler.d.mts +1 -3
  280. package/dist/store/define.d.mts +1 -3
  281. package/dist/store/manager.d.mts +1 -3
  282. package/dist/store/storeToRefs.d.mts +0 -2
  283. package/dist/store/types.d.mts +0 -2
  284. package/dist/tt/jsx-runtime.d.mts +0 -2
  285. package/dist/types/definitions.d.mts +1 -3
  286. package/dist/types/pageLayout.d.mts +1 -3
  287. package/dist/types/pageMeta.d.mts +1 -3
  288. package/dist/types/reactivity.d.mts +0 -2
  289. package/dist/version.d.mts +1 -3
  290. package/dist/vue-augment.d.mts +1 -3
  291. package/dist/vue-demi.d.mts +0 -2
  292. package/dist/vue-types.d.mts +0 -2
  293. package/dist/weapp/jsx-runtime.d.mts +0 -2
  294. package/package.json +8 -8
  295. /package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.mjs +0 -0
  296. /package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.mjs +0 -0
  297. /package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.mjs +0 -0
  298. /package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.mjs +0 -0
@@ -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 };
@@ -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,5 +54,4 @@ export declare namespace JSX {
55
54
  interface IntrinsicAttributes extends WevuJsxHostAttributes {}
56
55
  interface IntrinsicElements extends WevuJsxGlobalComponents {}
57
56
  }
58
- //#endregion
59
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
+ }
@@ -4,7 +4,6 @@ import { ComponentPropsOptions, InferProps } from "../runtime/types/props/propTy
4
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,5 +78,4 @@ export type ScriptSetupDefineOptions<D extends object = Record<string, any>, C e
79
78
  */
80
79
  setupLifecycle?: 'created' | 'attached';
81
80
  };
82
- //#endregion
83
81
  export {};
package/dist/macros.d.mts CHANGED
@@ -6,7 +6,6 @@ import { Ref } from "./reactivity/ref.mjs";
6
6
  import "./reactivity/index.mjs";
7
7
  import "./runtime/index.mjs";
8
8
  import { BooleanKey, ComponentTypeEmits, DefineProps, DefinePropsFromArray, DefinePropsFromOptions, EmitFn, EmitsOptions, InferDefaults, PropsWithDefaults, ScriptSetupDefineOptions, ShortEmits } from "./macros/shared.mjs";
9
- //#region src/macros.d.ts
10
9
  /**
11
10
  * defineProps 声明(类型层宏)。
12
11
  */
@@ -59,5 +58,4 @@ export declare function defineModel<T = any, M extends PropertyKey = string, G =
59
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>;
60
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>;
61
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>;
62
- //#endregion
63
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.6.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,5 +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
41
39
  export {};
@@ -1,6 +1,5 @@
1
1
  import { ComputedGetter, ComputedSetter, WritableComputedOptions } from "../types/reactivity.mjs";
2
2
  import { Ref } from "./ref.mjs";
3
- //#region src/reactivity/computed.d.ts
4
3
  declare const computedBrand: unique symbol;
5
4
  declare const writableComputedBrand: unique symbol;
6
5
  interface BaseComputedRef<T, S = T> extends Ref<T, S> {
@@ -16,5 +15,4 @@ export interface WritableComputedRef<T, S = T> extends BaseComputedRef<T, S> {
16
15
  }
17
16
  export declare function computed<T>(getter: ComputedGetter<T>): ComputedRef<T>;
18
17
  export declare function computed<T>(options: WritableComputedOptions<T>): WritableComputedRef<T>;
19
- //#endregion
20
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.154.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,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,5 +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
21
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;
@@ -1,3 +1 @@
1
- //#region src/reactivity/reactive/shared.d.ts
2
- export declare function toRaw<T>(observed: T): T;
3
- //#endregion
1
+ export declare function toRaw<T>(observed: T): T;
@@ -2,7 +2,6 @@ import { MutationKind, MutationOp, MutationRecord, addMutationRecorder, removeMu
2
2
  import { PrelinkReactiveTreeOptions, prelinkReactiveTree, touchReactive } from "./reactive/patch.mjs";
3
3
  import { isShallowReactive, shallowReactive } from "./reactive/shallow.mjs";
4
4
  import { toRaw } from "./reactive/shared.mjs";
5
- //#region src/reactivity/reactive.d.ts
6
5
  /**
7
6
  * 读取响应式版本号(框架内部调试能力)。
8
7
  * @internal
@@ -37,5 +36,4 @@ export declare function markRaw<T extends object>(value: T): T;
37
36
  * @returns 若含有跳过标记则返回 true
38
37
  */
39
38
  export declare function isRaw(value: unknown): boolean;
40
- //#endregion
41
39
  export { type MutationKind, type MutationOp, type MutationRecord, type PrelinkReactiveTreeOptions, addMutationRecorder, isShallowReactive, prelinkReactiveTree, removeMutationRecorder, shallowReactive, toRaw, touchReactive };
@@ -1,5 +1,4 @@
1
1
  import { Ref } from "./ref.mjs";
2
- //#region src/reactivity/readonly.d.ts
3
2
  /**
4
3
  * readonly 会为对象/数组创建一个“浅层”只读代理,并为 Ref 创建只读包装。
5
4
  * 选择浅层而非深层递归,是为了在小程序环境中保持实现和运行时开销最小,
@@ -22,5 +21,4 @@ export declare function isReadonly(value: unknown): boolean;
22
21
  /**
23
22
  * 判断值是否为响应式代理或只读代理。
24
23
  */
25
- export declare function isProxy(value: unknown): boolean;
26
- //#endregion
24
+ export declare function isProxy(value: unknown): boolean;
@@ -1,6 +1,5 @@
1
1
  import { Ref as Ref$1, ShallowRef as ShallowRef$1 } from "../types/reactivity.mjs";
2
2
  import { ComputedRef, WritableComputedRef } from "./computed.mjs";
3
- //#region src/reactivity/ref.d.ts
4
3
  export type Ref<T = any, S = T> = Ref$1<T, S>;
5
4
  export type ShallowRef<T = any> = ShallowRef$1<T>;
6
5
  export type MaybeRef<T = any> = T | Ref<T> | ShallowRef<T> | WritableComputedRef<T>;
@@ -22,5 +21,4 @@ export interface CustomRefOptions<T> {
22
21
  set: (value: T) => void;
23
22
  }
24
23
  export type CustomRefSource<T> = CustomRefFactory<T> | CustomRefOptions<T>;
25
- export declare function customRef<T>(factory: CustomRefSource<T>, defaultValue?: T): Ref<T>;
26
- //#endregion
24
+ export declare function customRef<T>(factory: CustomRefSource<T>, defaultValue?: T): Ref<T>;
@@ -1 +1 @@
1
- import e from"../_virtual/_@oxc-project_runtime@0.154.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
+ import e from"../_virtual/_@oxc-project_runtime@0.155.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,5 +1,4 @@
1
1
  import { Ref } from "./ref.mjs";
2
- //#region src/reactivity/shallowRef.d.ts
3
2
  export declare function shallowRef<T>(value: T): Ref<T>;
4
3
  export declare function shallowRef<T>(value: T, defaultValue: T): Ref<T>;
5
4
  /**
@@ -14,5 +13,4 @@ export declare function isShallowRef(r: any): r is Ref<any>;
14
13
  *
15
14
  * @param ref 需要触发的 ref
16
15
  */
17
- export declare function triggerRef<T>(ref: Ref<T>): void;
18
- //#endregion
16
+ export declare function triggerRef<T>(ref: Ref<T>): void;
@@ -1,5 +1,4 @@
1
1
  import { Ref } from "./ref.mjs";
2
- //#region src/reactivity/toRefs.d.ts
3
2
  /**
4
3
  * 为源响应式对象的单个属性创建 ref,可读可写并与原属性保持同步。
5
4
  *
@@ -39,5 +38,4 @@ export declare function toRefs<T extends object>(object: T): ToRefs<T>;
39
38
  */
40
39
  type ToRef<T> = T extends Ref<any> ? T : Ref<T>;
41
40
  export type ToRefs<T extends object> = { [K in keyof T]: ToRef<T[K]>; };
42
- //#endregion
43
41
  export {};
@@ -1,7 +1,5 @@
1
- //#region src/reactivity/traverse.d.ts
2
1
  /**
3
2
  * 深度遍历工具(框架内部依赖收集使用)。
4
3
  * @internal
5
4
  */
6
- export declare function traverse(value: any, depth?: number, seen?: Map<object, number>): any;
7
- //#endregion
5
+ export declare function traverse(value: any, depth?: number, seen?: Map<object, number>): any;
@@ -1,6 +1,5 @@
1
1
  import { Ref } from "../ref.mjs";
2
2
  import { ComputedRef } from "../computed.mjs";
3
- //#region src/reactivity/watch/types.d.ts
4
3
  export type OnCleanup = (cleanupFn: () => void) => void;
5
4
  export type WatchEffect = (onCleanup: OnCleanup) => void;
6
5
  export type WatchSource<T = any> = Ref<T> | ComputedRef<T> | (() => T);
@@ -39,5 +38,4 @@ export declare function setDeepWatchStrategy(strategy: DeepWatchStrategy): void;
39
38
  * @internal
40
39
  */
41
40
  export declare function getDeepWatchStrategy(): DeepWatchStrategy;
42
- //#endregion
43
41
  export {};
@@ -1,5 +1,4 @@
1
1
  import { DeepWatchStrategy, MapSources, MaybeUndefined, MultiWatchSources, OnCleanup, WatchCallback, WatchEffect, WatchEffectOptions, WatchMultiSources, WatchOptions, WatchScheduler, WatchSource, WatchSourceValue, WatchSources, WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy } from "./watch/types.mjs";
2
- //#region src/reactivity/watch.d.ts
3
2
  export declare function watch<T, Immediate extends Readonly<boolean> = false>(source: WatchSource<T>, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
4
3
  export declare function watch<T extends object, Immediate extends Readonly<boolean> = false>(source: T extends ReadonlyArray<any> ? never : T, cb: WatchCallback<T, MaybeUndefined<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
5
4
  export declare function watch<T extends Readonly<MultiWatchSources>, Immediate extends Readonly<boolean> = false>(source: readonly [...T] | T, cb: WatchCallback<MapSources<T, false>, MapSources<T, Immediate>>, options?: WatchOptions<Immediate>): WatchStopHandle;
@@ -17,5 +16,4 @@ export declare function watchPostEffect(effectFn: WatchEffect, options?: Omit<Wa
17
16
  * 以同步刷新的方式运行副作用,与 Vue 的 `watchSyncEffect()` 兼容。
18
17
  */
19
18
  export declare function watchSyncEffect(effectFn: WatchEffect, options?: Omit<WatchEffectOptions, 'flush'>): WatchStopHandle;
20
- //#endregion
21
19
  export { type MapSources, type MaybeUndefined, type MultiWatchSources, type OnCleanup, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, getDeepWatchStrategy, setDeepWatchStrategy };
@@ -1,7 +1,5 @@
1
1
  import { WevuAutoRoute } from "./types.mjs";
2
2
  import { WevuNamedRouteMap } from "../router.mjs";
3
- //#region src/router/auto-routes.d.ts
4
3
  export type WevuAutoRoutes<TRouteMap extends object = WevuNamedRouteMap> = readonly WevuAutoRoute<TRouteMap>[];
5
4
  export declare const routes: WevuAutoRoutes;
6
- //#endregion
7
5
  export type { WevuAutoRoute };
@@ -1,8 +1,6 @@
1
1
  import { RouterNavigation, UseRouterOptions } from "./types.mjs";
2
2
  import { WevuNamedRouteMap } from "../router.mjs";
3
- //#region src/router/createRouter.d.ts
4
3
  /**
5
4
  * @description 创建高阶路由导航器(对齐 Vue Router 的 createRouter 心智)
6
5
  */
7
- export declare function createRouter<TRouteMap extends object = WevuNamedRouteMap>(optionsInput?: UseRouterOptions<NoInfer<TRouteMap>>): RouterNavigation<TRouteMap>;
8
- //#endregion
6
+ export declare function createRouter<TRouteMap extends object = WevuNamedRouteMap>(optionsInput?: UseRouterOptions<NoInfer<TRouteMap>>): RouterNavigation<TRouteMap>;
@@ -1,6 +1,4 @@
1
1
  import { NavigationFailure, NavigationFailureTypeValue, RouteLocationNormalizedLoaded } from "./types.mjs";
2
2
  import { WevuNamedRouteMap } from "../router.mjs";
3
- //#region src/router/navigationCore.d.ts
4
3
  export declare function createNavigationFailure<TRouteMap extends object = WevuNamedRouteMap>(type: NavigationFailureTypeValue, to?: RouteLocationNormalizedLoaded<NoInfer<TRouteMap>>, from?: RouteLocationNormalizedLoaded<NoInfer<TRouteMap>>, cause?: unknown): NavigationFailure<TRouteMap>;
5
- export declare function isNavigationFailure<TRouteMap extends object = WevuNamedRouteMap>(error: unknown, type?: NavigationFailureTypeValue): error is NavigationFailure<TRouteMap>;
6
- //#endregion
4
+ export declare function isNavigationFailure<TRouteMap extends object = WevuNamedRouteMap>(error: unknown, type?: NavigationFailureTypeValue): error is NavigationFailure<TRouteMap>;
@@ -1,6 +1,4 @@
1
1
  import { RouteResolveCodec } from "../routerInternal/types.mjs";
2
2
  import "../routerInternal/shared.mjs";
3
3
  import { RouteLocationNormalizedLoaded, RouteLocationRaw, WevuBroadRouteMap } from "./types.mjs";
4
- //#region src/router/resolve.d.ts
5
- export declare function resolveRouteLocation(to: RouteLocationRaw<WevuBroadRouteMap>, currentPath?: string, codec?: RouteResolveCodec): RouteLocationNormalizedLoaded<WevuBroadRouteMap>;
6
- //#endregion
4
+ export declare function resolveRouteLocation(to: RouteLocationRaw<WevuBroadRouteMap>, currentPath?: string, codec?: RouteResolveCodec): RouteLocationNormalizedLoaded<WevuBroadRouteMap>;
@@ -1,7 +1,5 @@
1
1
  import { ScrollRestorationHandle, ScrollRestorationRegistrationOptions, ScrollViewRestorationHandle } from "./types.mjs";
2
- //#region src/router/scrollRestoration/adapters.d.ts
3
2
  /** WebView 页面适配器;Skyline 没有隐式页面滚动容器。 */
4
3
  export declare function usePageScrollRestoration(options?: ScrollRestorationRegistrationOptions): ScrollRestorationHandle;
5
4
  /** 用属性控制 WebView/Skyline scroll-view,scroll 事件不产生 setData。 */
6
- export declare function useScrollViewRestoration(options?: ScrollRestorationRegistrationOptions): ScrollViewRestorationHandle;
7
- //#endregion
5
+ export declare function useScrollViewRestoration(options?: ScrollRestorationRegistrationOptions): ScrollViewRestorationHandle;
@@ -1,7 +1,5 @@
1
1
  import "../types.mjs";
2
2
  import { ScrollRestorationController, ScrollRestorationOptions } from "./types.mjs";
3
3
  import "./host.mjs";
4
- //#region src/router/scrollRestoration/controller.d.ts
5
4
  /** 创建显式启用的路由会话;不会安装全局默认滚动行为。 */
6
- export declare function createScrollRestoration<TRouteMap extends object>(options: ScrollRestorationOptions<TRouteMap>): ScrollRestorationController;
7
- //#endregion
5
+ export declare function createScrollRestoration<TRouteMap extends object>(options: ScrollRestorationOptions<TRouteMap>): ScrollRestorationController;
@@ -1,8 +1,6 @@
1
1
  import { ScrollRestorationContext, ScrollRestorationController, ScrollRestorationHandle, ScrollRestorationOptions, ScrollRestorationRegistrationOptions, ScrollViewRestorationHandle, UseScrollRestorationOptions } from "./types.mjs";
2
2
  import "./host.mjs";
3
3
  import { createScrollRestoration } from "./controller.mjs";
4
- //#region src/router/scrollRestoration/index.d.ts
5
4
  /** 在同步 setup 中注册快照;只恢复新实例,不覆盖原生保留页的位置。 */
6
5
  export declare function useScrollRestoration<T extends object>(options: UseScrollRestorationOptions<T>): ScrollRestorationHandle;
7
- //#endregion
8
6
  export { type ScrollRestorationContext, type ScrollRestorationController, type ScrollRestorationHandle, type ScrollRestorationOptions, type ScrollRestorationRegistrationOptions, type ScrollViewRestorationHandle, type UseScrollRestorationOptions, createScrollRestoration };