wevu 7.4.0 → 7.6.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 (291) hide show
  1. package/README.md +2 -0
  2. package/dist/config/defaults.d.mts +44 -0
  3. package/dist/config/pageFeatures.d.mts +51 -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.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/defineProperty.mjs +1 -1
  7. package/dist/dev/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPrimitive.mjs +1 -1
  8. package/dist/dev/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPropertyKey.mjs +1 -1
  9. package/dist/dev/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/typeof.mjs +1 -1
  10. package/dist/dev/package.mjs +1 -1
  11. package/dist/dev/reactivity/computed.mjs.map +1 -1
  12. package/dist/dev/reactivity/core.mjs +1 -1
  13. package/dist/dev/reactivity/ref.mjs +1 -1
  14. package/dist/dev/reactivity/ref.mjs.map +1 -1
  15. package/dist/dev/runtime/app/diagnostics.mjs +5 -1
  16. package/dist/dev/runtime/app/diagnostics.mjs.map +1 -1
  17. package/dist/dev/runtime/app/mount.mjs +8 -3
  18. package/dist/dev/runtime/app/mount.mjs.map +1 -1
  19. package/dist/dev/runtime/app/setData/commitTracker.mjs +39 -4
  20. package/dist/dev/runtime/app/setData/commitTracker.mjs.map +1 -1
  21. package/dist/dev/runtime/app/setData/observation.mjs +109 -0
  22. package/dist/dev/runtime/app/setData/observation.mjs.map +1 -0
  23. package/dist/dev/runtime/app/setData/scheduler.mjs +12 -1
  24. package/dist/dev/runtime/app/setData/scheduler.mjs.map +1 -1
  25. package/dist/dev/runtime/app/setDataOptions.mjs +1 -0
  26. package/dist/dev/runtime/app/setDataOptions.mjs.map +1 -1
  27. package/dist/dev/runtime/define/initialComputed.mjs +13 -12
  28. package/dist/dev/runtime/define/initialComputed.mjs.map +1 -1
  29. package/dist/dev/runtime/define/props.mjs +5 -1
  30. package/dist/dev/runtime/define/props.mjs.map +1 -1
  31. package/dist/dev/runtime/define/scopedSlotOptions.mjs +2 -1
  32. package/dist/dev/runtime/define/scopedSlotOptions.mjs.map +1 -1
  33. package/dist/dev/runtime/define/setupResult.mjs +3 -5
  34. package/dist/dev/runtime/define/setupResult.mjs.map +1 -1
  35. package/dist/dev/runtime/define.mjs +3 -8
  36. package/dist/dev/runtime/define.mjs.map +1 -1
  37. package/dist/dev/runtime/features/scopedSlots.mjs.map +1 -1
  38. package/dist/dev/runtime/pageLayout.mjs.map +1 -1
  39. package/dist/dev/runtime/register/component/hmrRegistration.mjs +15 -0
  40. package/dist/dev/runtime/register/component/hmrRegistration.mjs.map +1 -0
  41. package/dist/dev/runtime/register/component/props.mjs +15 -5
  42. package/dist/dev/runtime/register/component/props.mjs.map +1 -1
  43. package/dist/dev/runtime/register/component/registerDefinition.mjs +30 -18
  44. package/dist/dev/runtime/register/component/registerDefinition.mjs.map +1 -1
  45. package/dist/dev/runtime/register/component.mjs +23 -12
  46. package/dist/dev/runtime/register/component.mjs.map +1 -1
  47. package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs +14 -7
  48. package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs.map +1 -1
  49. package/dist/dev/runtime/register/runtimeInstance/nativeDeclaration.mjs +78 -0
  50. package/dist/dev/runtime/register/runtimeInstance/nativeDeclaration.mjs.map +1 -0
  51. package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs +52 -8
  52. package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs.map +1 -1
  53. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +2 -25
  54. package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs.map +1 -1
  55. package/dist/dev/runtime/register/runtimeInstance/utils.mjs.map +1 -1
  56. package/dist/dev/runtime/register/runtimeInstance.mjs +69 -29
  57. package/dist/dev/runtime/register/runtimeInstance.mjs.map +1 -1
  58. package/dist/dev/runtime/register/watch.mjs +1 -3
  59. package/dist/dev/runtime/register/watch.mjs.map +1 -1
  60. package/dist/fetch.mjs +1 -1
  61. package/dist/index.d.mts +13 -8
  62. package/dist/internal-reactivity.d.mts +2 -1
  63. package/dist/internal-template.mjs +1 -1
  64. package/dist/jsx-runtime.d.mts +2 -1
  65. package/dist/macros/shared.d.mts +3 -2
  66. package/dist/macros.d.mts +3 -10
  67. package/dist/package.mjs +1 -1
  68. package/dist/reactivity/asyncDerivation.d.mts +2 -1
  69. package/dist/reactivity/computed.d.mts +3 -7
  70. package/dist/reactivity/core.mjs +1 -1
  71. package/dist/reactivity/index.d.mts +2 -1
  72. package/dist/reactivity/reactive/mutation.d.mts +2 -1
  73. package/dist/reactivity/reactive/patch.mjs +1 -1
  74. package/dist/reactivity/reactive/patchState.mjs +1 -1
  75. package/dist/reactivity/ref.d.mts +1 -1
  76. package/dist/reactivity/ref.mjs +1 -1
  77. package/dist/reactivity/toRefs.d.mts +2 -1
  78. package/dist/reactivity/watch/helpers.mjs +1 -1
  79. package/dist/reactivity/watch/types.d.mts +2 -1
  80. package/dist/router/initialNavigation.mjs +1 -1
  81. package/dist/router/types.d.mts +2 -1
  82. package/dist/router/useRoute.mjs +1 -1
  83. package/dist/routerInternal/matching.mjs +1 -1
  84. package/dist/routerInternal/params.mjs +1 -1
  85. package/dist/routerInternal/path.mjs +1 -1
  86. package/dist/routerInternal/query.mjs +1 -1
  87. package/dist/routerInternal/records.mjs +1 -1
  88. package/dist/runtime/app/context.mjs +1 -1
  89. package/dist/runtime/app/diagnostics.mjs +1 -1
  90. package/dist/runtime/app/mount.mjs +1 -1
  91. package/dist/runtime/app/setData/commitTracker.d.mts +2 -1
  92. package/dist/runtime/app/setData/commitTracker.mjs +1 -1
  93. package/dist/runtime/app/setData/observation.d.mts +13 -0
  94. package/dist/runtime/app/setData/observation.mjs +1 -0
  95. package/dist/runtime/app/setData/scheduler.d.mts +1 -0
  96. package/dist/runtime/app/setData/scheduler.mjs +1 -1
  97. package/dist/runtime/app/setDataOptions.mjs +1 -1
  98. package/dist/runtime/app.d.mts +1 -1
  99. package/dist/runtime/capabilities.d.mts +2 -2
  100. package/dist/runtime/define/initialComputed.mjs +1 -1
  101. package/dist/runtime/define/props.mjs +1 -1
  102. package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
  103. package/dist/runtime/define/setupResult.mjs +1 -1
  104. package/dist/runtime/define.d.mts +5 -3
  105. package/dist/runtime/define.mjs +1 -1
  106. package/dist/runtime/diff.mjs +1 -1
  107. package/dist/runtime/features/publicLayout.d.mts +2 -1
  108. package/dist/runtime/features/publicLayout.mjs +1 -1
  109. package/dist/runtime/features/scopedSlots.d.mts +3 -2
  110. package/dist/runtime/index.d.mts +7 -4
  111. package/dist/runtime/jsxIsland.mjs +1 -1
  112. package/dist/runtime/pageLayout.d.mts +3 -2
  113. package/dist/runtime/pageLayout.mjs +1 -1
  114. package/dist/runtime/pageScroll.mjs +1 -1
  115. package/dist/runtime/register/app.d.mts +1 -1
  116. package/dist/runtime/register/component/alipayRegistration.mjs +1 -1
  117. package/dist/runtime/register/component/hmrRegistration.mjs +1 -0
  118. package/dist/runtime/register/component/lifecycle.mjs +1 -1
  119. package/dist/runtime/register/component/props.mjs +1 -1
  120. package/dist/runtime/register/component/registerDefinition.mjs +1 -1
  121. package/dist/runtime/register/component/registerNativeDefinition.mjs +1 -1
  122. package/dist/runtime/register/component.d.mts +1 -1
  123. package/dist/runtime/register/component.mjs +1 -1
  124. package/dist/runtime/register/inline.d.mts +2 -1
  125. package/dist/runtime/register/runtimeInstance/methodBridge.mjs +1 -1
  126. package/dist/runtime/register/runtimeInstance/nativeDeclaration.mjs +1 -0
  127. package/dist/runtime/register/runtimeInstance/provideContext.mjs +1 -1
  128. package/dist/runtime/register/runtimeInstance/setupPhase.mjs +1 -1
  129. package/dist/runtime/register/runtimeInstance.d.mts +11 -6
  130. package/dist/runtime/register/runtimeInstance.mjs +1 -1
  131. package/dist/runtime/register/setup.d.mts +2 -1
  132. package/dist/runtime/register/watch.d.mts +2 -1
  133. package/dist/runtime/register/watch.mjs +1 -1
  134. package/dist/runtime/setupTracking.mjs +1 -1
  135. package/dist/runtime/templateRefTypes.d.mts +3 -5
  136. package/dist/runtime/templateRefs.mjs +1 -1
  137. package/dist/runtime/types/core.d.mts +3 -7
  138. package/dist/runtime/types/miniprogramHostSources.d.mts +1 -0
  139. package/dist/runtime/types/options.d.mts +6 -52
  140. package/dist/runtime/types/props/propTypes.d.mts +2 -1
  141. package/dist/runtime/types/props/router.d.mts +2 -1
  142. package/dist/runtime/types/props/setup.d.mts +2 -1
  143. package/dist/runtime/types/runtime.d.mts +3 -1
  144. package/dist/runtime/types/setData.d.mts +30 -0
  145. package/dist/runtime/types.d.mts +5 -3
  146. package/dist/runtime/uniAppHost.d.mts +2 -1
  147. package/dist/runtime/vueCompat/model.d.mts +3 -2
  148. package/dist/runtime/vueCompat/router.d.mts +2 -1
  149. package/dist/scheduler.mjs +1 -1
  150. package/dist/store/storeToRefs.d.mts +2 -1
  151. package/dist/store/types.d.mts +4 -3
  152. package/dist/types/definitions.d.mts +7 -0
  153. package/dist/types/pageLayout.d.mts +4 -0
  154. package/dist/types/pageMeta.d.mts +10 -0
  155. package/dist/types/reactivity.d.mts +13 -0
  156. package/dist/types.d.mts +5 -0
  157. package/dist/types.mjs +1 -0
  158. package/dist/vue-demi.d.mts +13 -7
  159. package/dist/vue-types.d.mts +3 -4
  160. package/dist/web-apis.mjs +1 -1
  161. package/package.json +23 -13
  162. package/dist/dev/api/vitest/setup.d.mts +0 -1
  163. package/dist/dev/api/vitest.d.mts +0 -1
  164. package/dist/dev/api.d.mts +0 -1
  165. package/dist/dev/compiler.d.mts +0 -1
  166. package/dist/dev/fetch.d.mts +0 -9
  167. package/dist/dev/index.d.mts +0 -72
  168. package/dist/dev/internal-reactivity.d.mts +0 -18
  169. package/dist/dev/internal-runtime.d.mts +0 -45
  170. package/dist/dev/internal-template.d.mts +0 -2
  171. package/dist/dev/jsxTypes.d.mts +0 -9
  172. package/dist/dev/macros/shared.d.mts +0 -83
  173. package/dist/dev/macros.d.mts +0 -71
  174. package/dist/dev/reactivity/asyncDerivation.d.mts +0 -41
  175. package/dist/dev/reactivity/computed.d.mts +0 -25
  176. package/dist/dev/reactivity/core.d.mts +0 -35
  177. package/dist/dev/reactivity/index.d.mts +0 -16
  178. package/dist/dev/reactivity/reactive/mutation.d.mts +0 -21
  179. package/dist/dev/reactivity/reactive/patch.d.mts +0 -18
  180. package/dist/dev/reactivity/reactive/shallow.d.mts +0 -22
  181. package/dist/dev/reactivity/reactive/shared.d.mts +0 -4
  182. package/dist/dev/reactivity/reactive.d.mts +0 -42
  183. package/dist/dev/reactivity/readonly.d.mts +0 -27
  184. package/dist/dev/reactivity/ref.d.mts +0 -27
  185. package/dist/dev/reactivity/shallowRef.d.mts +0 -19
  186. package/dist/dev/reactivity/toRefs.d.mts +0 -43
  187. package/dist/dev/reactivity/traverse.d.mts +0 -8
  188. package/dist/dev/reactivity/watch/types.d.mts +0 -43
  189. package/dist/dev/reactivity/watch.d.mts +0 -22
  190. package/dist/dev/router/auto-routes.d.mts +0 -8
  191. package/dist/dev/router/createRouter.d.mts +0 -9
  192. package/dist/dev/router/navigationCore.d.mts +0 -7
  193. package/dist/dev/router/resolve.d.mts +0 -7
  194. package/dist/dev/router/routeSync.d.mts +0 -2
  195. package/dist/dev/router/scrollRestoration/adapters.d.mts +0 -8
  196. package/dist/dev/router/scrollRestoration/controller.d.mts +0 -8
  197. package/dist/dev/router/scrollRestoration/host.d.mts +0 -3
  198. package/dist/dev/router/scrollRestoration/index.d.mts +0 -9
  199. package/dist/dev/router/scrollRestoration/types.d.mts +0 -61
  200. package/dist/dev/router/types.d.mts +0 -267
  201. package/dist/dev/router/useRoute.d.mts +0 -20
  202. package/dist/dev/router/useRouter.d.mts +0 -9
  203. package/dist/dev/router.d.mts +0 -30
  204. package/dist/dev/routerInternal/location.d.mts +0 -2
  205. package/dist/dev/routerInternal/matching.d.mts +0 -2
  206. package/dist/dev/routerInternal/params.d.mts +0 -2
  207. package/dist/dev/routerInternal/query.d.mts +0 -7
  208. package/dist/dev/routerInternal/records.d.mts +0 -2
  209. package/dist/dev/routerInternal/recordsWarnings.d.mts +0 -2
  210. package/dist/dev/routerInternal/shared.d.mts +0 -9
  211. package/dist/dev/routerInternal/snapshots.d.mts +0 -2
  212. package/dist/dev/routerInternal/types.d.mts +0 -9
  213. package/dist/dev/runtime/app/pending.d.mts +0 -10
  214. package/dist/dev/runtime/app/setData/commitTracker.d.mts +0 -13
  215. package/dist/dev/runtime/app/setData/scheduler.d.mts +0 -51
  216. package/dist/dev/runtime/app.d.mts +0 -8
  217. package/dist/dev/runtime/capabilities.d.mts +0 -78
  218. package/dist/dev/runtime/css.d.mts +0 -14
  219. package/dist/dev/runtime/defaults.d.mts +0 -12
  220. package/dist/dev/runtime/define.d.mts +0 -118
  221. package/dist/dev/runtime/disposables.d.mts +0 -31
  222. package/dist/dev/runtime/elementIntersectionObserver.d.mts +0 -26
  223. package/dist/dev/runtime/features/inlineEvents.d.mts +0 -7
  224. package/dist/dev/runtime/features/jsxIslands.d.mts +0 -7
  225. package/dist/dev/runtime/features/layout.d.mts +0 -7
  226. package/dist/dev/runtime/features/patchStrategy.d.mts +0 -7
  227. package/dist/dev/runtime/features/publicLayout.d.mts +0 -24
  228. package/dist/dev/runtime/features/scopedSlots.d.mts +0 -23
  229. package/dist/dev/runtime/features/setDataHighFrequencyWarning.d.mts +0 -7
  230. package/dist/dev/runtime/features/templateRefs.d.mts +0 -7
  231. package/dist/dev/runtime/hooks/base.d.mts +0 -27
  232. package/dist/dev/runtime/hooks/register.d.mts +0 -30
  233. package/dist/dev/runtime/hooks/vue.d.mts +0 -52
  234. package/dist/dev/runtime/hooks.d.mts +0 -4
  235. package/dist/dev/runtime/index.d.mts +0 -46
  236. package/dist/dev/runtime/intersectionObserver.d.mts +0 -14
  237. package/dist/dev/runtime/jsxIsland.d.mts +0 -37
  238. package/dist/dev/runtime/layoutBridge.d.mts +0 -55
  239. package/dist/dev/runtime/noSetData.d.mts +0 -5
  240. package/dist/dev/runtime/pageEnvironment.d.mts +0 -50
  241. package/dist/dev/runtime/pageLayout.d.mts +0 -25
  242. package/dist/dev/runtime/pageScroll.d.mts +0 -29
  243. package/dist/dev/runtime/provide.d.mts +0 -60
  244. package/dist/dev/runtime/provideStore.d.mts +0 -7
  245. package/dist/dev/runtime/publicRuntime.d.mts +0 -22
  246. package/dist/dev/runtime/pullDownRefresh.d.mts +0 -12
  247. package/dist/dev/runtime/register/app.d.mts +0 -14
  248. package/dist/dev/runtime/register/component.d.mts +0 -17
  249. package/dist/dev/runtime/register/inline.d.mts +0 -15
  250. package/dist/dev/runtime/register/runtimeInstance.d.mts +0 -26
  251. package/dist/dev/runtime/register/setup.d.mts +0 -11
  252. package/dist/dev/runtime/register/watch.d.mts +0 -12
  253. package/dist/dev/runtime/register.d.mts +0 -5
  254. package/dist/dev/runtime/selectorQuery.d.mts +0 -54
  255. package/dist/dev/runtime/template.d.mts +0 -6
  256. package/dist/dev/runtime/templateRefTypes.d.mts +0 -12
  257. package/dist/dev/runtime/types/core.d.mts +0 -35
  258. package/dist/dev/runtime/types/miniprogram.d.mts +0 -84
  259. package/dist/dev/runtime/types/miniprogramHost.d.mts +0 -45
  260. package/dist/dev/runtime/types/miniprogramHostSources.d.mts +0 -112
  261. package/dist/dev/runtime/types/options.d.mts +0 -138
  262. package/dist/dev/runtime/types/props/propTypes.d.mts +0 -79
  263. package/dist/dev/runtime/types/props/router.d.mts +0 -51
  264. package/dist/dev/runtime/types/props/setup.d.mts +0 -96
  265. package/dist/dev/runtime/types/props.d.mts +0 -4
  266. package/dist/dev/runtime/types/runtime.d.mts +0 -59
  267. package/dist/dev/runtime/types/setData.d.mts +0 -237
  268. package/dist/dev/runtime/types.d.mts +0 -29
  269. package/dist/dev/runtime/uniAppHost.d.mts +0 -8
  270. package/dist/dev/runtime/updatePerformance.d.mts +0 -13
  271. package/dist/dev/runtime/use.d.mts +0 -13
  272. package/dist/dev/runtime/vueCompat/context.d.mts +0 -8
  273. package/dist/dev/runtime/vueCompat/model.d.mts +0 -30
  274. package/dist/dev/runtime/vueCompat/router.d.mts +0 -29
  275. package/dist/dev/runtime/vueCompat/templateRef.d.mts +0 -9
  276. package/dist/dev/runtime/vueCompat.d.mts +0 -5
  277. package/dist/dev/scheduler.d.mts +0 -4
  278. package/dist/dev/store/define.d.mts +0 -8
  279. package/dist/dev/store/manager.d.mts +0 -16
  280. package/dist/dev/store/storeToRefs.d.mts +0 -11
  281. package/dist/dev/store/types.d.mts +0 -106
  282. package/dist/dev/store.d.mts +0 -5
  283. package/dist/dev/version.d.mts +0 -4
  284. package/dist/dev/vue-augment.d.mts +0 -8
  285. package/dist/dev/vue-demi.d.mts +0 -87
  286. package/dist/dev/vue-types.d.mts +0 -19
  287. package/dist/dev/web-apis.d.mts +0 -3
  288. /package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/defineProperty.mjs +0 -0
  289. /package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPrimitive.mjs +0 -0
  290. /package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/toPropertyKey.mjs +0 -0
  291. /package/dist/_virtual/{_@oxc-project_runtime@0.151.0 → _@oxc-project_runtime@0.154.0}/helpers/esm/typeof.mjs +0 -0
@@ -1,10 +1,12 @@
1
+ import { SetDataSnapshotOptions } from "./setData.mjs";
2
+ import { PageFeatures } from "../../config/pageFeatures.mjs";
1
3
  import { MiniProgramAppOptions, MiniProgramComponentOptions, MiniProgramPageLifetimes } from "./miniprogram.mjs";
2
4
  import { ComponentPropsOptions, InferProps } from "./props/propTypes.mjs";
3
- import { ComponentPublicInstance, ComputedDefinitions, MethodDefinitions } from "./core.mjs";
5
+ import { ComputedDefinitions, MethodDefinitions } from "../../types/definitions.mjs";
6
+ import { ComponentPublicInstance } from "./core.mjs";
4
7
  import { SetupContext, SetupFunction } from "./props/setup.mjs";
5
8
  import "./props.mjs";
6
9
  import { ShallowUnwrapRef } from "../../vue-types.mjs";
7
- import { SetDataSnapshotOptions } from "./setData.mjs";
8
10
  //#region src/runtime/types/options.d.ts
9
11
  export type DataOption<D extends object> = D | (() => D);
10
12
  type SetupThis<S> = [Exclude<S, void>] extends [never] ? Record<never, never> : ShallowUnwrapRef<Exclude<S, void>>;
@@ -85,53 +87,5 @@ export interface CreateAppOptions<D extends object = Record<string, any>, C exte
85
87
  setup?: (props: AppSetupProps, ctx: SetupContext<D, C, M, AppSetupProps>) => Record<string, any> | void;
86
88
  [key: string]: any;
87
89
  }
88
- export interface PageFeatures {
89
- /**
90
- * 启用页面滚动事件(注入 `onPageScroll`)。
91
- */
92
- enableOnPageScroll?: boolean;
93
- /**
94
- * 启用下拉刷新事件(注入 `onPullDownRefresh`;仍需在页面配置开启 enablePullDownRefresh)。
95
- */
96
- enableOnPullDownRefresh?: boolean;
97
- /**
98
- * 启用触底事件(注入 `onReachBottom`)。
99
- */
100
- enableOnReachBottom?: boolean;
101
- /**
102
- * 启用路由动画完成事件(注入 `onRouteDone`)。
103
- */
104
- enableOnRouteDone?: boolean;
105
- /**
106
- * 启用 onReady 阶段的 routeDone 兜底补发。
107
- *
108
- * 默认关闭:保持与微信小程序平台事件更一致的行为。
109
- * 仅当个别 IDE/基础库未派发 routeDone 且业务确实依赖该时机时再开启。
110
- */
111
- enableOnRouteDoneFallback?: boolean;
112
- /**
113
- * 启用 Tab 点击事件(注入 `onTabItemTap`)。
114
- */
115
- enableOnTabItemTap?: boolean;
116
- /**
117
- * 启用窗口尺寸变化事件(注入 `onResize`)。
118
- */
119
- enableOnResize?: boolean;
120
- /**
121
- * 启用“转发/分享给朋友”(注入 `onShareAppMessage`,使右上角菜单显示“转发”)。
122
- */
123
- enableOnShareAppMessage?: boolean;
124
- /**
125
- * 启用“分享到朋友圈”(注入 `onShareTimeline`,使右上角菜单显示“分享到朋友圈”)。
126
- */
127
- enableOnShareTimeline?: boolean;
128
- /**
129
- * 启用“收藏”(注入 `onAddToFavorites`)。
130
- */
131
- enableOnAddToFavorites?: boolean;
132
- /**
133
- * 启用“退出状态保存”(注入 `onSaveExitState`)。
134
- */
135
- enableOnSaveExitState?: boolean;
136
- }
137
- //#endregion
90
+ //#endregion
91
+ export type { PageFeatures };
@@ -75,4 +75,5 @@ export type InferProps<P extends ComponentPropsOptions = ComponentPropsOptions>
75
75
  export type ExtractPropTypes<P extends ComponentPropsOptions = ComponentPropsOptions> = InferProps<P>;
76
76
  export type ExtractPublicPropTypes<P extends ComponentPropsOptions = ComponentPropsOptions> = InferProps<P>;
77
77
  export type ExtractDefaultPropTypes<P extends ComponentPropsOptions = ComponentPropsOptions> = { [K in keyof Pick<P, DefaultKeys<P>>]: InferPropType<P[K]>; };
78
- //#endregion
78
+ //#endregion
79
+ export {};
@@ -47,4 +47,5 @@ export interface SetupContextRouter {
47
47
  navigateTo: (option: MiniProgramRouterNavigateToOption) => ReturnType<HostMiniProgramRouter['navigateTo']>;
48
48
  navigateBack: HostMiniProgramRouter['navigateBack'];
49
49
  }
50
- //#endregion
50
+ //#endregion
51
+ export {};
@@ -1,7 +1,8 @@
1
1
  import { HostMiniProgramIntersectionObserver, HostMiniProgramIntersectionObserverOptions, HostMiniProgramSelectorQuery, HostMiniProgramTriggerEventOptions } from "../miniprogramHost.mjs";
2
2
  import { ComponentPropsOptions, InferProps } from "./propTypes.mjs";
3
3
  import { SetupContextRouter } from "./router.mjs";
4
- import { ComputedDefinitions, MethodDefinitions } from "../core.mjs";
4
+ import { ComputedDefinitions, MethodDefinitions } from "../../../types/definitions.mjs";
5
+ import "../core.mjs";
5
6
  import { InternalRuntimeState, RuntimeInstance } from "../runtime.mjs";
6
7
  //#region src/runtime/types/props/setup.d.ts
7
8
  export type SetupContextSelectorQuery = HostMiniProgramSelectorQuery;
@@ -1,9 +1,10 @@
1
1
  import { MiniProgramAdapter, MiniProgramInstance } from "./miniprogram.mjs";
2
+ import { ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions } from "../../types/definitions.mjs";
3
+ import { ComponentPublicInstance, ModelBinding, ModelBindingOptions } from "./core.mjs";
2
4
  import { Ref } from "../../reactivity/ref.mjs";
3
5
  import { EffectScope } from "../../reactivity/core.mjs";
4
6
  import { WatchOptions, WatchStopHandle } from "../../reactivity/watch/types.mjs";
5
7
  import "../../reactivity/index.mjs";
6
- import { ComponentPublicInstance, ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions, ModelBinding, ModelBindingOptions } from "./core.mjs";
7
8
  //#region src/runtime/types/runtime.d.ts
8
9
  export interface AppConfig {
9
10
  globalProperties: Record<string, any>;
@@ -40,6 +41,7 @@ export interface InternalRuntimeStateFields {
40
41
  __wevuAppProvides?: Record<PropertyKey, any>;
41
42
  __wevuProvides?: Record<PropertyKey, any>;
42
43
  __wevuParentInstance?: InternalRuntimeState;
44
+ __wevuNativeSlotContext?: boolean;
43
45
  __wevuSetPageLayout?: (layout: string | false, props?: Record<string, any>) => void;
44
46
  __wevuWatchStops?: WatchStopHandle[];
45
47
  __wevuLayoutHostBridge?: Record<string, any>;
@@ -132,6 +132,12 @@ export interface SetDataSnapshotOptions {
132
132
  * setData 调试信息回调(用于观测 patch 命中率/回退原因/payload 大小)。
133
133
  */
134
134
  debug?: (info: SetDataDebugInfo) => void;
135
+ /**
136
+ * 通过 debug 回调额外观测 prepare、物理 dispatch 与提交结算,默认关闭。
137
+ * 按 revision 采样一次;同一次物理调用可关联多个 revision,按 dispatch.id 去重。
138
+ * callback / Promise / 同步返回均不等于可见视图完成;visibleAt 始终为 null。
139
+ */
140
+ debugPhases?: boolean;
135
141
  /**
136
142
  * 内建诊断日志开关(默认 off)。
137
143
  *
@@ -232,5 +238,29 @@ export interface SetDataDebugInfo {
232
238
  bindings?: SetDataBindingDiagnostic[];
233
239
  revision?: number;
234
240
  committedRevision?: number;
241
+ /** 阶段观测;仅在显式开启 debugPhases 时提供。 */
242
+ phase?: {
243
+ version: 1;
244
+ observerId: number;
245
+ name: 'prepare' | 'dispatch' | 'commit';
246
+ result: 'prepared' | 'pending' | 'committed' | 'failed' | 'abandoned' | 'disposed' | 'late-committed' | 'late-failed' | 'out-of-order';
247
+ completion: 'unknown' | 'callback' | 'promise' | 'return' | 'throw';
248
+ /** Date.now 毫秒时间;不可用或时钟倒退时,持续时间为 null。 */
249
+ prepareStartedAt: number | null;
250
+ preparedAt: number;
251
+ prepareDurationMs: number | null;
252
+ settledAt: number | null;
253
+ commitDurationMs: number | null;
254
+ visibleAt: null;
255
+ /** 一个运行时模块实例内唯一的物理调用;缺失表示尚未下发或适配器无法观测。 */
256
+ dispatch: {
257
+ id: number;
258
+ startedAt: number;
259
+ returnedAt: number | null;
260
+ durationMs: number | null;
261
+ /** JSON 载荷 UTF-8 字节数;不含宿主协议封装,序列化失败时为 null。 */
262
+ payloadBytes: number | null;
263
+ } | null;
264
+ };
235
265
  }
236
266
  //#endregion
@@ -1,15 +1,17 @@
1
+ import { SetDataBindingDiagnostic, SetDataDebugInfo, SetDataSnapshotOptions } from "./types/setData.mjs";
2
+ import { PageFeatures } from "../config/pageFeatures.mjs";
1
3
  import { AlipayMiniProgramHostNamespace, AlipayMiniProgramHostSourceContract, DefaultMiniProgramHostNamespace, DefaultMiniProgramHostSourceContract, DouyinMiniProgramHostNamespace, DouyinMiniProgramHostSourceContract, MiniProgramHostNamespace, MiniProgramHostNamespaceBySource, MiniProgramHostSourceName, MiniProgramHostSourceRegistry, MiniProgramPlatformHostNamespaceBySource, MiniProgramPlatformHostSourceName, MiniProgramPlatformHostSourceRegistry, MiniProgramRuntimeHostNamespaceBySource, MiniProgramRuntimeHostSourceName, MiniProgramRuntimeHostSourceRegistry, TtMiniProgramHostNamespace, TtMiniProgramHostSourceContract, WechatMiniProgramHostNamespace, WechatMiniProgramHostSourceContract } from "./types/miniprogramHostSources.mjs";
2
4
  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 "./types/miniprogramHost.mjs";
3
5
  import { MiniProgramAdapter, MiniProgramAppOptions, MiniProgramBehaviorIdentifier, MiniProgramComponentInstance, MiniProgramComponentOptions, MiniProgramComponentPropertyValue, MiniProgramComponentRawOptions, MiniProgramInstance, MiniProgramPageLifetimes } from "./types/miniprogram.mjs";
4
6
  import { ComponentPropsOptions, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InferNativePropType, InferNativeProps, InferPropType, InferProps, NativePropType, NativePropsOptions, NativeTypeHint, NativeTypedProperty, PropConstructor, PropOptions, PropType } from "./types/props/propTypes.mjs";
5
7
  import { MiniProgramRouterNavigateToOption, MiniProgramRouterReLaunchOption, MiniProgramRouterRedirectToOption, MiniProgramRouterSwitchTabOption, SetupContextRouter, WevuTypedRouterRouteMap } from "./types/props/router.mjs";
6
- import { ComponentPublicInstance, ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions, ModelBinding, ModelBindingOptions, ModelBindingPayload } from "./types/core.mjs";
8
+ import { ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions } from "../types/definitions.mjs";
9
+ import { ComponentPublicInstance, ModelBinding, ModelBindingOptions, ModelBindingPayload } from "./types/core.mjs";
7
10
  import { AppConfig, InternalRuntimeState, InternalRuntimeStateFields, RuntimeApp, RuntimeInstance, WevuPlugin } from "./types/runtime.mjs";
8
11
  import { SetupContext, SetupContextIntersectionObserver, SetupContextIntersectionObserverOptions, SetupContextNativeInstance, SetupContextSelectorQuery, SetupFunction } from "./types/props/setup.mjs";
9
12
  import "./types/props.mjs";
10
13
  import { AllowedComponentProps, ComponentCustomProps, ComponentOptionsMixin, DefineComponent, NativeComponent, ObjectDirective, PublicProps, ShallowUnwrapRef, VNode, VNodeProps } from "../vue-types.mjs";
11
- import { SetDataBindingDiagnostic, SetDataDebugInfo, SetDataSnapshotOptions } from "./types/setData.mjs";
12
- import { CreateAppOptions, DataOption, DefineAppOptions, DefineComponentOptions, PageFeatures } from "./types/options.mjs";
14
+ import { CreateAppOptions, DataOption, DefineAppOptions, DefineComponentOptions } from "./types/options.mjs";
13
15
  //#region src/runtime/types.d.ts
14
16
  export interface WevuGlobalComponents {}
15
17
  export interface WevuGlobalDirectives {}
@@ -4,4 +4,5 @@ type UniAppHost = Record<string, any>;
4
4
  * 在原生小程序宿主上补齐 uni-app 专属 API,并保持未适配 API 继续继承宿主实现。
5
5
  */
6
6
  export declare function createUniAppHost(host: UniAppHost): UniAppHost;
7
- //#endregion
7
+ //#endregion
8
+ export {};
@@ -1,6 +1,6 @@
1
+ import { ModelBinding, ModelBindingOptions, ModelBindingPayload } from "../types/core.mjs";
1
2
  import { Ref } from "../../reactivity/ref.mjs";
2
3
  import "../../reactivity/index.mjs";
3
- import { ModelBinding, ModelBindingOptions, ModelBindingPayload } from "../types/core.mjs";
4
4
  import "../types.mjs";
5
5
  //#region src/runtime/vueCompat/model.d.ts
6
6
  export type ModelModifiers<M extends PropertyKey = string> = Record<M, true | undefined>;
@@ -26,4 +26,5 @@ export declare function useBindModel<DefaultEvent extends string = 'input', Defa
26
26
  */
27
27
  export declare function useChangeModel(): <T = any, ValueProp extends string = "value", Formatted = T>(path: string, options?: ModelBindingOptions<T, "change", ValueProp, Formatted>) => ModelBindingPayload<T, "change", ValueProp, Formatted>;
28
28
  export declare function mergeModels<T>(a: T, b: T): T;
29
- //#endregion
29
+ //#endregion
30
+ export {};
@@ -25,4 +25,5 @@ export declare function useNativeRouter(): RuntimeRouter;
25
25
  * 推荐改用 `wevu/router` 子入口的 `useRouter()`。
26
26
  */
27
27
  export declare function useNativePageRouter(): RuntimeRouter;
28
- //#endregion
28
+ //#endregion
29
+ export {};
@@ -1 +1 @@
1
- const e=Promise.resolve(),t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set;let r=!1,i=!1,a,o;function s(){i=!1,r=!0,a=/* @__PURE__ */ new Set;let e=!1,o=!1,c,l=[];try{t.forEach(e=>{a?.add(e);try{let t=e();t&&typeof t.then==`function`&&l.push(t)}catch(e){o||(o=!0,c=e)}})}finally{t.clear(),a=void 0,r=!1,n.size&&(n.forEach(e=>t.add(e)),n.clear(),i=!0,e=!0)}if(l.length||e)return Promise.all(l).then(()=>e?s():void 0).then(()=>{if(o)throw c},e=>{throw o?c:e});if(o)throw c}function c(){let t=e.then(s);o=t;let n=()=>{o===t&&(o=void 0)};t.then(n,n)}function l(e){if(r&&a?.has(e)){n.add(e);return}t.add(e),!r&&!i&&(i=!0,c())}function u(t){let n=o??e;return t?n.then(t):n}export{u as nextTick,l as queueJob};
1
+ const e=Promise.resolve(),t=/* @__PURE__ */ new Set,n=/* @__PURE__ */ new Set;let r=!1,i=!1,a,o;function s(){i=!1,r=!0,a=/* @__PURE__ */ new Set;let e=!1,o=!1,c,l=[];try{t.forEach(e=>{a?.add(e);try{let t=e();t&&typeof t.then==`function`&&l.push(t)}catch(e){o||(o=!0,c=e)}})}finally{t.clear(),a=void 0,r=!1,n.size&&(n.forEach(e=>t.add(e)),n.clear(),i=!0,e=!0)}if(l.length||e)return Promise.all(l).then(()=>e?s():void 0).then(()=>{if(o)throw c},e=>{throw o?c:e});if(o)throw c}function c(){let t=e.then(s);o=t;let n=()=>{o===t&&(o=void 0)};t.then(n,n)}function l(e){r&&a?.has(e)?n.add(e):(t.add(e),!r&&!i&&(i=!0,c()))}function u(t){let n=o??e;return t?n.then(t):n}export{u as nextTick,l as queueJob};
@@ -7,4 +7,5 @@ type IfEquals<X, Y, Yes, No> = (<T>() => T extends X ? 1 : 2) extends (<T>() =>
7
7
  /** 仅提取状态与 getter,保留 getter 的只读类型。 */
8
8
  export type StoreToRefsResult<T extends Record<string, any>> = { [K in keyof T as K extends keyof StoreApi<any, any, any, any> ? never : T[K] extends ((...args: any[]) => any) ? never : K]: IfEquals<{ [P in K]: T[P]; }, { -readonly [P in K]: T[P]; }, Ref<T[K]>, ComputedRef<T[K]>>; };
9
9
  export declare function storeToRefs<T extends Record<string, any>>(store: T): StoreToRefsResult<T>;
10
- //#endregion
10
+ //#endregion
11
+ export {};
@@ -1,4 +1,4 @@
1
- import { Ref as Ref$1 } from "../reactivity/ref.mjs";
1
+ import { Ref } from "../reactivity/ref.mjs";
2
2
  import { ComputedRef, WritableComputedRef } from "../reactivity/computed.mjs";
3
3
  import { EffectScope } from "../reactivity/core.mjs";
4
4
  import { WatchOptions } from "../reactivity/watch/types.mjs";
@@ -50,7 +50,7 @@ export interface PiniaPlugin {
50
50
  }
51
51
  /** 应用的 Store 管理器,独立保存实例与状态。 */
52
52
  export interface Pinia {
53
- state: Ref$1<Record<string, StateTree>>;
53
+ state: Ref<Record<string, StateTree>>;
54
54
  install: (app: any) => void;
55
55
  use: (plugin: PiniaPlugin) => Pinia;
56
56
  _e: EffectScope;
@@ -102,4 +102,5 @@ export type SetupStore<Id extends string, T extends Record<string, any>> = Setup
102
102
  export type StoreGeneric = Record<string, any> & StoreApi<string, any, any, any>;
103
103
  export type StoreState<T extends StoreGeneric> = T['$state'];
104
104
  export type StoreActions<T extends StoreGeneric> = SetupActions<Omit<T, keyof StoreApi<any, any, any, any>>>;
105
- //#endregion
105
+ //#endregion
106
+ export {};
@@ -0,0 +1,7 @@
1
+ import { ComputedGetter, WritableComputedOptions } from "./reactivity.mjs";
2
+ //#region src/types/definitions.d.ts
3
+ export type ComputedDefinitions = Record<string, ComputedGetter<any> | WritableComputedOptions<any>>;
4
+ export type MethodDefinitions = Record<string, (...args: any[]) => any>;
5
+ export type ExtractComputed<C extends ComputedDefinitions> = { [K in keyof C]: C[K] extends ComputedGetter<infer R> ? R : C[K] extends WritableComputedOptions<infer R> ? R : never; };
6
+ export type ExtractMethods<M extends MethodDefinitions> = { [K in keyof M]: M[K] extends ((...args: infer P) => infer R) ? (...args: P) => R : never; };
7
+ //#endregion
@@ -0,0 +1,4 @@
1
+ //#region src/types/pageLayout.d.ts
2
+ /** 页面 layout 名称与属性映射,允许通过 wevu 根入口进行模块增强。 */
3
+ export interface WevuPageLayoutMap {}
4
+ //#endregion
@@ -0,0 +1,10 @@
1
+ //#region src/types/pageMeta.d.ts
2
+ export type PageLayoutMeta = string | false | {
3
+ name: string;
4
+ props?: Record<string, unknown>;
5
+ };
6
+ export interface PageMeta {
7
+ layout?: PageLayoutMeta;
8
+ [key: string]: unknown;
9
+ }
10
+ //#endregion
@@ -0,0 +1,13 @@
1
+ import { Ref, ShallowRef } from "@vue/reactivity";
2
+ //#region src/types/reactivity.d.ts
3
+ /** 保持 Vue Ref 的品牌和读写泛型,不加载模板或宿主声明。 */
4
+ type Ref$1<T = any, S = T> = Ref<T, S>;
5
+ type ShallowRef$1<T = any, S = T> = ShallowRef<T, S>;
6
+ export type ComputedGetter<T> = () => T;
7
+ export type ComputedSetter<T> = (value: T) => void;
8
+ export interface WritableComputedOptions<T> {
9
+ get: ComputedGetter<T>;
10
+ set: ComputedSetter<T>;
11
+ }
12
+ //#endregion
13
+ export { Ref$1 as Ref, ShallowRef$1 as ShallowRef };
@@ -0,0 +1,5 @@
1
+ import { PageLayoutMeta, PageMeta } from "./types/pageMeta.mjs";
2
+ import { ComputedGetter, ComputedSetter, Ref, ShallowRef, WritableComputedOptions } from "./types/reactivity.mjs";
3
+ import { ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions } from "./types/definitions.mjs";
4
+ import { WevuPageLayoutMap } from "./types/pageLayout.mjs";
5
+ export type { ComputedDefinitions, ComputedGetter, ComputedSetter, ExtractComputed, ExtractMethods, MethodDefinitions, PageLayoutMeta, PageMeta, Ref, ShallowRef, WevuPageLayoutMap, WritableComputedOptions };
package/dist/types.mjs ADDED
@@ -0,0 +1 @@
1
+ export{};
@@ -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";
@@ -19,19 +25,18 @@ import { ToRefs, toRef, toRefs } from "./reactivity/toRefs.mjs";
19
25
  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
- import { ComponentPublicInstance, ComputedDefinitions, ExtractComputed, ExtractMethods, MethodDefinitions, ModelBinding, ModelBindingOptions, ModelBindingPayload } from "./runtime/types/core.mjs";
23
28
  import { AppConfig, InternalRuntimeState, InternalRuntimeStateFields, RuntimeApp, RuntimeInstance, WevuPlugin } from "./runtime/types/runtime.mjs";
24
29
  import { SetupContext, SetupContextIntersectionObserver, SetupContextIntersectionObserverOptions, SetupContextNativeInstance, SetupContextSelectorQuery, SetupFunction } from "./runtime/types/props/setup.mjs";
25
30
  import { AllowedComponentProps, ComponentCustomProps, ComponentOptionsMixin, DefineComponent, NativeComponent, ObjectDirective, PublicProps, ShallowUnwrapRef, VNode, VNodeProps } from "./vue-types.mjs";
26
- import { SetDataBindingDiagnostic, SetDataDebugInfo, SetDataSnapshotOptions } from "./runtime/types/setData.mjs";
27
- import { CreateAppOptions, DataOption, DefineAppOptions, DefineComponentOptions, PageFeatures } from "./runtime/types/options.mjs";
31
+ import { CreateAppOptions, DataOption, DefineAppOptions, DefineComponentOptions } from "./runtime/types/options.mjs";
28
32
  import { GlobalComponents, GlobalDirectives, MiniProgramTemplateRefValue, TemplateRefValue, TemplateRefs, WevuGlobalComponents, WevuGlobalDirectives } from "./runtime/types.mjs";
29
33
  import { useCssModule } from "./runtime/css.mjs";
30
34
  import { WevuDefaults, resetWevuDefaults } from "./runtime/defaults.mjs";
31
35
  import { ComponentDefinition, DefineComponentTypePropsOptions, DefineComponentWithTypeProps, SetupContextWithTypeProps, SetupFunctionWithTypeProps, WevuComponentConstructor, WevuDefinedComponent } from "./runtime/define.mjs";
32
36
  import { DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, useDisposables } from "./runtime/disposables.mjs";
33
37
  import { ElementIntersectionObserverCallback, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, useElementIntersectionObserver } from "./runtime/elementIntersectionObserver.mjs";
34
- import { PageLayoutState, WevuPageLayoutMap } from "./runtime/pageLayout.mjs";
38
+ import { WevuPageLayoutMap } from "./types/pageLayout.mjs";
39
+ import { PageLayoutState } from "./runtime/pageLayout.mjs";
35
40
  import { LayoutHostBinding } from "./runtime/capabilities.mjs";
36
41
  import { LayoutBridgeInstance } from "./runtime/layoutBridge.mjs";
37
42
  import { registerPageLayoutBridge, registerRuntimeLayoutHosts, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, setPageLayout, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, useLayoutBridge, useLayoutHosts, usePageLayout, waitForLayoutHost } from "./runtime/features/publicLayout.mjs";
@@ -57,7 +62,8 @@ import { ModelModifiers, UseModelOptions, mergeModels, useBindModel, useChangeMo
57
62
  import { useNativePageRouter, useNativeRouter } from "./runtime/vueCompat/router.mjs";
58
63
  import { TemplateRef, useTemplateRef } from "./runtime/vueCompat/templateRef.mjs";
59
64
  import { ComponentTypeEmits, EmitFn, EmitsOptions } from "./macros/shared.mjs";
60
- import { DefineModelModifiers, DefineModelTransformOptions, ModelRef, PageLayoutMeta, PageMeta, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, withDefaults } from "./macros.mjs";
65
+ import { DefineModelModifiers, DefineModelTransformOptions, ModelRef, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, withDefaults } from "./macros.mjs";
66
+ import { MiniProgramTemplateRefElements } from "./runtime/templateRefTypes.mjs";
61
67
  import { ActionContext, ActionSubscriber, DefineStoreOptions, MutationType, Pinia, PiniaCustomProperties, PiniaCustomStateProperties, PiniaPlugin, PiniaPluginContext, StateTree, StoreActions, StoreDefinition, StoreGeneric, StoreManager, StoreState, StoreSubscribeOptions, SubscriptionCallback, SubscriptionCallbackMutation } from "./store/types.mjs";
62
68
  import { defineStore } from "./store/define.mjs";
63
69
  import { createPinia, createStore, disposePinia, getActivePinia, setActivePinia } from "./store/manager.mjs";
@@ -83,4 +89,4 @@ export declare const Vue2: undefined;
83
89
  */
84
90
  export declare function install(): void;
85
91
  //#endregion
86
- export { type ActionContext, type ActionSubscriber, type AlipayMiniProgramHostNamespace, type AlipayMiniProgramHostSourceContract, type AllowedComponentProps, type AppConfig, type AsyncDerivation, type AsyncDerivationContext, type AsyncDerivationState, type AsyncDerivationStatus, type ComponentCustomProps, type ComponentDefinition, type ComponentOptionsMixin, type ComponentPropsOptions, type ComponentPublicInstance, type ComponentTypeEmits, type ComputedDefinitions, type ComputedGetter, type ComputedRef, type ComputedSetter, type CreateAppOptions, type CustomRefFactory, type CustomRefOptions, type CustomRefSource, type DataOption, type DefaultMiniProgramHostNamespace, type DefaultMiniProgramHostSourceContract, type DefineAppOptions, type DefineComponent, type DefineComponentOptions, type DefineComponentTypePropsOptions, type DefineComponentWithTypeProps, DefineModelModifiers, DefineModelTransformOptions, type DefineStoreOptions, DisposableBag, DisposableLike, DisposableMethodName, DisposableObject, type DouyinMiniProgramHostNamespace, type DouyinMiniProgramHostSourceContract, type EffectScope, ElementIntersectionObserverCallback, type EmitFn, type EmitsOptions, type ExtractComputed, type ExtractDefaultPropTypes, type ExtractMethods, type ExtractPropTypes, type ExtractPublicPropTypes, GlobalComponents, GlobalDirectives, type HostMiniProgramAddToFavoritesOption, type HostMiniProgramAppOptions, type HostMiniProgramAppTrivialInstance, type HostMiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray, type HostMiniProgramComponentInstance, type HostMiniProgramComponentMethodOption, type HostMiniProgramComponentPropertyOption, type HostMiniProgramComponentPropertyValue, type HostMiniProgramComponentShortProperty, type HostMiniProgramComponentTrivialInstance, type HostMiniProgramComponentTrivialOption, type HostMiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption, type HostMiniProgramNodesRef, type HostMiniProgramNodesRefFields, type HostMiniProgramPageLifetime, type HostMiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption, type HostMiniProgramPageScrollOption, type HostMiniProgramPageTrivialInstance, type HostMiniProgramReLaunchOption, type HostMiniProgramRedirectToOption, type HostMiniProgramRouter, type HostMiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption, type HostMiniProgramThemeChangeResult, type HostMiniProgramTriggerEventOptions, type HostMiniProgramUnhandledRejectionResult, type InferNativePropType, type InferNativeProps, type InferPropType, type InferProps, type InternalRuntimeState, type InternalRuntimeStateFields, type LayoutBridgeInstance, type LayoutHostBinding, type MapSources, type MaybeRef, type MaybeRefOrGetter, type MaybeUndefined, type MethodDefinitions, type MiniProgramAdapter, type HostMiniProgramAddToFavoritesOption as MiniProgramAddToFavoritesOption, type MiniProgramAppOptions, type MiniProgramBehaviorIdentifier, type HostMiniProgramBoundingClientRectResult as MiniProgramBoundingClientRectResult, type HostMiniProgramComponentAllFullProperty as MiniProgramComponentAllFullProperty, type HostMiniProgramComponentAllProperty as MiniProgramComponentAllProperty, type HostMiniProgramComponentBehaviorOptions as MiniProgramComponentBehaviorOptions, type HostMiniProgramComponentEmptyArray as MiniProgramComponentEmptyArray, type MiniProgramComponentInstance, type HostMiniProgramComponentMethodOption as MiniProgramComponentMethodOption, type MiniProgramComponentOptions, type HostMiniProgramComponentPropertyOption as MiniProgramComponentPropertyOption, type MiniProgramComponentPropertyValue, type MiniProgramComponentRawOptions, type HostMiniProgramComponentShortProperty as MiniProgramComponentShortProperty, type MiniProgramHostNamespace, type MiniProgramHostNamespaceBySource, type MiniProgramHostSourceName, type MiniProgramHostSourceRegistry, type MiniProgramInstance, type HostMiniProgramIntersectionObserver as MiniProgramIntersectionObserver, type HostMiniProgramIntersectionObserverOptions as MiniProgramIntersectionObserverOptions, type HostMiniProgramLaunchOptions as MiniProgramLaunchOptions, type HostMiniProgramMemoryWarningResult as MiniProgramMemoryWarningResult, type HostMiniProgramNavigateToOption as MiniProgramNavigateToOption, type HostMiniProgramNodesRef as MiniProgramNodesRef, type HostMiniProgramNodesRefFields as MiniProgramNodesRefFields, type HostMiniProgramPageLifetime as MiniProgramPageLifetime, type MiniProgramPageLifetimes, type HostMiniProgramPageNotFoundOptions as MiniProgramPageNotFoundOptions, type HostMiniProgramPageResizeOption as MiniProgramPageResizeOption, type HostMiniProgramPageScrollOption as MiniProgramPageScrollOption, type MiniProgramPlatformHostNamespaceBySource, type MiniProgramPlatformHostSourceName, type MiniProgramPlatformHostSourceRegistry, type HostMiniProgramReLaunchOption as MiniProgramReLaunchOption, type HostMiniProgramRedirectToOption as MiniProgramRedirectToOption, type HostMiniProgramRouter as MiniProgramRouter, type MiniProgramRouterNavigateToOption, type MiniProgramRouterReLaunchOption, type MiniProgramRouterRedirectToOption, type MiniProgramRouterSwitchTabOption, type MiniProgramRuntimeHostNamespaceBySource, type MiniProgramRuntimeHostSourceName, type MiniProgramRuntimeHostSourceRegistry, type HostMiniProgramSaveExitState as MiniProgramSaveExitState, type HostMiniProgramScrollOffsetResult as MiniProgramScrollOffsetResult, type HostMiniProgramSelectorQuery as MiniProgramSelectorQuery, type HostMiniProgramShareAppMessageOption as MiniProgramShareAppMessageOption, type HostMiniProgramSwitchTabOption as MiniProgramSwitchTabOption, type HostMiniProgramTabItemTapOption as MiniProgramTabItemTapOption, MiniProgramTemplateRefValue, type HostMiniProgramThemeChangeResult as MiniProgramThemeChangeResult, type HostMiniProgramUnhandledRejectionResult as MiniProgramUnhandledRejectionResult, type ModelBinding, type ModelBindingOptions, type ModelBindingPayload, type ModelModifiers, ModelRef, type MultiWatchSources, type MutationKind, type MutationOp, type MutationRecord, MutationType, type NativeComponent, type NativePropType, type NativePropsOptions, type NativeTypeHint, type NativeTypedProperty, NavigationBarMetrics, type ObjectDirective, type OnCleanup, type PageFeatures, PageLayoutMeta, type PageLayoutState, PageMeta, PageStackSnapshot, type Pinia, type PiniaCustomProperties, type PiniaCustomStateProperties, type PiniaPlugin, type PiniaPluginContext, type PrelinkReactiveTreeOptions, type PropConstructor, type PropOptions, type PropType, type PublicProps, PullDownRefreshHandler, type Ref, type RuntimeApp, type RuntimeInstance, type SetDataBindingDiagnostic, type SetDataDebugInfo, type SetDataSnapshotOptions, type SetupContext, type SetupContextIntersectionObserver, type SetupContextIntersectionObserverOptions, type SetupContextNativeInstance, type SetupContextRouter, type SetupContextSelectorQuery, type SetupContextWithTypeProps, type SetupFunction, type SetupFunctionWithTypeProps, type ShallowRef, type ShallowUnwrapRef, type StateTree, type StoreActions, type StoreDefinition, type StoreGeneric, type StoreManager, type StoreState, type StoreSubscribeOptions, type StoreToRefsResult, type SubscriptionCallback, type SubscriptionCallbackMutation, type TemplateRef, TemplateRefValue, TemplateRefs, type ToRefs, type HostMiniProgramTriggerEventOptions as TriggerEventOptions, type TtMiniProgramHostNamespace, type TtMiniProgramHostSourceContract, UpdatePerformanceListener, UpdatePerformanceListenerResult, UseAllBoundingClientRectOptions, UseAllScrollOffsetOptions, UseAllSelectorFieldsOptions, type UseAsyncDerivationOptions, UseAsyncPullDownRefreshOptions, UseBoundingClientRectOptions, UseElementIntersectionObserverOptions, UseElementIntersectionObserverReturn, UseIntersectionObserverOptions, UseIntersectionObserverResult, type UseModelOptions, UseNavigationBarMetricsOptions, UsePageScrollThrottleOptions, UsePageScrollThrottleStopHandle, UsePageStackOptions, UseScrollOffsetOptions, UseSelectorFieldsOptions, UseSelectorQueryOptions, UseUpdatePerformanceListenerStopHandle, type VNode, type VNodeProps, type WatchCallback, type WatchEffect, type WatchEffectOptions, type WatchMultiSources, type WatchOptions, type WatchScheduler, type WatchSource, type WatchSourceValue, type WatchSources, type WatchStopHandle, type WechatMiniProgramHostNamespace, type WechatMiniProgramHostSourceContract, type WevuComponentConstructor, type WevuDefaults, type WevuDefinedComponent, WevuGlobalComponents, WevuGlobalDirectives, type WevuPageLayoutMap, type WevuPlugin, type WevuTypedRouterRouteMap, type WritableComputedOptions, type WritableComputedRef, addMutationRecorder, batch, callHookList, callHookReturn, callUpdateHooks, computed, createApp, createPinia, createStore, createWevuComponent, createWevuScopedSlotComponent, customRef, defineAppSetup, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, definePageMeta, defineProps, defineSlots, defineStore, disposePinia, effect, effectScope, endBatch, getActivePinia, getCurrentInstance, getCurrentPageStackSnapshot, getCurrentScope, getCurrentSetupContext, getDeepWatchStrategy, getNavigationBarMetrics, getReactiveVersion, hasInjectionContext, inject, injectGlobal, isNoSetData, isProxy, isRaw, isReactive, isReadonly, isRef, isShallowReactive, isShallowRef, markNoSetData, markRaw, mergeModels, mountRuntimeInstance, nextTick, normalizeClass, normalizeStyle, onActivated, onAddToFavorites, onAttached, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onDetached, onError, onErrorCaptured, onHide, onLaunch, onLoad, onMemoryWarning, onMounted, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onScopeDispose, onServerPrefetch, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload, onUnmounted, onUpdated, prelinkReactiveTree, provide, provideGlobal, reactive, readonly, ref, registerApp, registerComponent, registerPageLayoutBridge, registerRuntimeLayoutHosts, removeMutationRecorder, resetWevuDefaults, resolveLayoutBridge, resolveLayoutHost, resolvePropValue, resolveRuntimePageLayoutName, runSetupFunction, setActivePinia, setCurrentInstance, setCurrentSetupContext, setDeepWatchStrategy, setGlobalProvidedValue, setPageLayout, setRuntimeSetDataVisibility, setWevuDefaults, shallowReactive, shallowReadonly, shallowRef, startBatch, stop, storeToRefs, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, teardownRuntimeInstance, toRaw, toRef, toRefs, toValue, touchReactive, traverse, triggerRef, unref, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, use, useAsyncDerivation, useAsyncPullDownRefresh, useAttrs, useBindModel, useBoundingClientRect, useChangeModel, useCssModule, useDisposables, useElementIntersectionObserver, useIntersectionObserver, useLayoutBridge, useLayoutHosts, useModel, useNativeInstance, useNativePageRouter, useNativeRouter, useNavigationBarMetrics, usePageLayout, usePageScrollThrottle, usePageStack, useScrollOffset, useSelectorFields, useSelectorQuery, useSlots, useTemplateRef, useUpdatePerformanceListener, version, waitForLayoutHost, watch, watchEffect, watchPostEffect, watchSyncEffect, withDefaults };
92
+ 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,9 +1,8 @@
1
1
  import { ComponentPropsOptions, ExtractDefaultPropTypes, ExtractPropTypes } from "./runtime/types/props/propTypes.mjs";
2
+ import { Ref, ShallowRef } from "./types/reactivity.mjs";
2
3
  import "./runtime/types/props.mjs";
3
- import { AllowedComponentProps, Component, ComponentCustomProps, ComponentOptionsMixin, ComponentProvideOptions, ComputedOptions, DefineComponent, Directive, EmitsOptions, MethodOptions, ObjectDirective, PublicProps, Ref, ShallowRef, ShallowUnwrapRef, SlotsType, VNode, VNodeProps } from "vue";
4
+ import { AllowedComponentProps, Component, ComponentCustomProps, ComponentOptionsMixin, ComponentProvideOptions, ComputedOptions, DefineComponent, Directive, EmitsOptions, MethodOptions, ObjectDirective, PublicProps, ShallowUnwrapRef, SlotsType, VNode, VNodeProps } from "vue";
4
5
  //#region src/vue-types.d.ts
5
- type Ref$1<T = any, S = T> = Ref<T, S>;
6
- type ShallowRef$1<T = any, S = T> = ShallowRef<T, S>;
7
6
  type AllowedComponentProps$1 = AllowedComponentProps;
8
7
  type ComponentCustomProps$1 = ComponentCustomProps;
9
8
  type ComponentOptionsMixin$1 = ComponentOptionsMixin;
@@ -15,4 +14,4 @@ type ShallowUnwrapRef$1<T> = ShallowUnwrapRef<T>;
15
14
  type VNode$1<HostNode = any, HostElement = any, ExtraProps = Record<string, any>> = VNode<HostNode, HostElement, ExtraProps>;
16
15
  type VNodeProps$1 = VNodeProps;
17
16
  //#endregion
18
- export { AllowedComponentProps$1 as AllowedComponentProps, ComponentCustomProps$1 as ComponentCustomProps, ComponentOptionsMixin$1 as ComponentOptionsMixin, DefineComponent$1 as DefineComponent, ObjectDirective$1 as ObjectDirective, PublicProps$1 as PublicProps, Ref$1 as Ref, ShallowRef$1 as ShallowRef, ShallowUnwrapRef$1 as ShallowUnwrapRef, VNode$1 as VNode, VNodeProps$1 as VNodeProps };
17
+ export { AllowedComponentProps$1 as AllowedComponentProps, ComponentCustomProps$1 as ComponentCustomProps, ComponentOptionsMixin$1 as ComponentOptionsMixin, DefineComponent$1 as DefineComponent, ObjectDirective$1 as ObjectDirective, PublicProps$1 as PublicProps, ShallowUnwrapRef$1 as ShallowUnwrapRef, VNode$1 as VNode, VNodeProps$1 as VNodeProps };
package/dist/web-apis.mjs CHANGED
@@ -1 +1 @@
1
- import{installRequestGlobals as e,installWebRuntimeGlobals as t}from"@wevu/web-apis";export*from"@wevu/web-apis";export{e as installRequestGlobals,t as installWebRuntimeGlobals};
1
+ export{installRequestGlobals,installWebRuntimeGlobals}from"@wevu/web-apis";export*from"@wevu/web-apis";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wevu",
3
3
  "type": "module",
4
- "version": "7.4.0",
4
+ "version": "7.6.0",
5
5
  "description": "Vue 3 风格的小程序运行时,包含响应式、diff+setData 与轻量状态管理",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",
@@ -259,6 +259,12 @@
259
259
  "types": "./dist/vue-demi.d.mts",
260
260
  "default": "./dist/dev/vue-demi.mjs"
261
261
  }
262
+ },
263
+ "./config": {
264
+ "types": "./dist/config.d.mts"
265
+ },
266
+ "./types": {
267
+ "types": "./dist/types.d.mts"
262
268
  }
263
269
  },
264
270
  "main": "./dist/index.mjs",
@@ -272,10 +278,9 @@
272
278
  "registry": "https://registry.npmjs.org"
273
279
  },
274
280
  "engines": {
275
- "node": "^20.19.0 || >=22.12.0"
281
+ "node": "^22.18.0 || ^24.11.0 || >=26.0.0"
276
282
  },
277
283
  "peerDependencies": {
278
- "miniprogram-api-typings": "^5.0.0",
279
284
  "vitest": ">=4.0.0"
280
285
  },
281
286
  "peerDependenciesMeta": {
@@ -291,16 +296,18 @@
291
296
  }
292
297
  },
293
298
  "dependencies": {
294
- "@weapp-core/constants": "0.3.0",
295
- "@weapp-core/shared": "3.2.7",
296
- "@weapp-core/types": "1.1.5",
297
- "@wevu/api": "0.3.7",
298
- "@wevu/compiler": "7.4.0",
299
- "@wevu/web-apis": "1.3.4",
300
- "vue": "^3.5.43"
299
+ "@vue/reactivity": "^3.5.44",
300
+ "@weapp-core/constants": "0.4.0",
301
+ "@weapp-core/shared": "3.3.0",
302
+ "@weapp-core/types": "1.1.7",
303
+ "@wevu/api": "0.3.9",
304
+ "@wevu/compiler": "7.6.0",
305
+ "@wevu/web-apis": "1.3.6",
306
+ "miniprogram-api-typings": "^5.2.3",
307
+ "vue": "^3.5.44"
301
308
  },
302
309
  "devDependencies": {
303
- "pinia": "4.0.3"
310
+ "pinia": "4.1.0"
304
311
  },
305
312
  "scripts": {
306
313
  "dev": "tsdown -w",
@@ -308,10 +315,13 @@
308
315
  "build:types": "tsdown --dts",
309
316
  "test": "vitest run",
310
317
  "test:dev": "vitest",
311
- "test:types": "pnpm build:types && tsd --files \"test-d/**/*.test-d.{ts,tsx}\" && tsd --files \"test-d/router-named-map.test-types.ts\"",
318
+ "test:types": "pnpm build:types && pnpm run test:types:check",
319
+ "test:types:check": "tsd --files \"test-d/**/*.test-d.{ts,tsx}\" && tsd --files \"test-d/router-named-map.test-types.ts\" && pnpm run test:types:host && pnpm run test:types:pure",
312
320
  "typecheck": "tsc --noEmit",
313
321
  "release": "pnpm publish",
314
322
  "lint": "eslint .",
315
- "lint:fix": "eslint . --fix"
323
+ "lint:fix": "eslint . --fix",
324
+ "test:types:pure": "cd test-d-pure && tsd --files \"**/*.test-d.ts\"",
325
+ "test:types:host": "tsd test-d-host --files root.test-d.ts && tsd test-d-host --files internal-runtime.test-d.ts"
316
326
  }
317
327
  }
@@ -1 +0,0 @@
1
- export {}
@@ -1 +0,0 @@
1
- export * from "@wevu/api/vitest";
@@ -1 +0,0 @@
1
- export * from "@wevu/api";
@@ -1 +0,0 @@
1
- export * from "@wevu/compiler";
@@ -1,9 +0,0 @@
1
- import { WeapiMiniProgramRequestMethod } from "@wevu/api";
2
- import { RequestGlobalsFetchInit as WevuFetchInit, fetch } from "@wevu/web-apis/fetch";
3
- //#region src/fetch.d.ts
4
- export type WevuFetchInput = Parameters<typeof import('@wevu/web-apis/fetch').fetch>[0];
5
- export type MiniProgramRequestMethod = WeapiMiniProgramRequestMethod;
6
- export type WxRequestMethod = MiniProgramRequestMethod;
7
- //#endregion
8
- export { type WevuFetchInit, fetch };
9
- //# sourceMappingURL=fetch.d.mts.map