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.
- package/dist/alipay/jsx-runtime.d.mts +0 -2
- package/dist/config/defaults.d.mts +1 -3
- package/dist/config/pageFeatures.d.mts +1 -3
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.mjs +1 -2
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.mjs +1 -2
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.mjs +1 -2
- package/dist/dev/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.mjs +1 -2
- package/dist/dev/api/vitest/setup.mjs +1 -2
- package/dist/dev/package.mjs +2 -3
- package/dist/dev/reactivity/asyncDerivation.mjs +1 -2
- package/dist/dev/reactivity/computed.mjs +1 -2
- package/dist/dev/reactivity/core.mjs +2 -3
- package/dist/dev/reactivity/reactive/mutation.mjs +1 -2
- package/dist/dev/reactivity/reactive/patch.mjs +1 -2
- package/dist/dev/reactivity/reactive/patchState.mjs +1 -2
- package/dist/dev/reactivity/reactive/shallow.mjs +1 -2
- package/dist/dev/reactivity/reactive/shared.mjs +1 -2
- package/dist/dev/reactivity/reactive/state.mjs +1 -2
- package/dist/dev/reactivity/reactive.mjs +1 -2
- package/dist/dev/reactivity/readonly.mjs +1 -2
- package/dist/dev/reactivity/ref.mjs +2 -3
- package/dist/dev/reactivity/shallowRef.mjs +1 -2
- package/dist/dev/reactivity/toRefs.mjs +1 -2
- package/dist/dev/reactivity/traverse.mjs +1 -2
- package/dist/dev/reactivity/watch/helpers.mjs +1 -2
- package/dist/dev/reactivity/watch/types.mjs +1 -2
- package/dist/dev/reactivity/watch.mjs +1 -2
- package/dist/dev/router/auto-routes.mjs +1 -2
- package/dist/dev/router/backNavigation.mjs +1 -2
- package/dist/dev/router/createRouter.mjs +1 -2
- package/dist/dev/router/initialNavigation.mjs +1 -2
- package/dist/dev/router/instance.mjs +1 -2
- package/dist/dev/router/navigationApi.mjs +1 -2
- package/dist/dev/router/navigationCore.mjs +1 -2
- package/dist/dev/router/navigationResult.mjs +1 -2
- package/dist/dev/router/navigationTarget.mjs +1 -2
- package/dist/dev/router/navigationTargetHelpers.mjs +1 -2
- package/dist/dev/router/resolve.mjs +1 -2
- package/dist/dev/router/routeRegistry.mjs +1 -2
- package/dist/dev/router/routeSync.mjs +1 -2
- package/dist/dev/router/scrollRestoration/adapters.mjs +1 -2
- package/dist/dev/router/scrollRestoration/controller.mjs +1 -2
- package/dist/dev/router/scrollRestoration/host.mjs +1 -2
- package/dist/dev/router/scrollRestoration/index.mjs +1 -2
- package/dist/dev/router/types.mjs +1 -2
- package/dist/dev/router/useRoute.mjs +1 -2
- package/dist/dev/router/useRouter.mjs +1 -2
- package/dist/dev/routerInternal/location.mjs +1 -2
- package/dist/dev/routerInternal/matching.mjs +1 -2
- package/dist/dev/routerInternal/params.mjs +1 -2
- package/dist/dev/routerInternal/path.mjs +1 -2
- package/dist/dev/routerInternal/query.mjs +1 -2
- package/dist/dev/routerInternal/records.mjs +1 -2
- package/dist/dev/routerInternal/recordsWarnings.mjs +1 -2
- package/dist/dev/routerInternal/snapshots.mjs +1 -2
- package/dist/dev/runtime/app/computed.mjs +1 -2
- package/dist/dev/runtime/app/context.mjs +1 -2
- package/dist/dev/runtime/app/diagnostics.mjs +1 -2
- package/dist/dev/runtime/app/mount.mjs +1 -2
- package/dist/dev/runtime/app/pending.mjs +1 -2
- package/dist/dev/runtime/app/setData/commitTracker.mjs +1 -2
- package/dist/dev/runtime/app/setData/observation.mjs +1 -2
- package/dist/dev/runtime/app/setData/patchScheduler.mjs +1 -2
- package/dist/dev/runtime/app/setData/payload.mjs +1 -2
- package/dist/dev/runtime/app/setData/scheduler.mjs +1 -2
- package/dist/dev/runtime/app/setData/snapshot.mjs +1 -2
- package/dist/dev/runtime/app/setDataOptions.mjs +1 -2
- package/dist/dev/runtime/app.mjs +1 -2
- package/dist/dev/runtime/bindModel.mjs +1 -2
- package/dist/dev/runtime/bindingManifest.mjs +1 -2
- package/dist/dev/runtime/capabilities.mjs +1 -2
- package/dist/dev/runtime/css.mjs +1 -2
- package/dist/dev/runtime/defaults.mjs +1 -2
- package/dist/dev/runtime/define/componentDefinition.mjs +1 -2
- package/dist/dev/runtime/define/initialComputed.mjs +1 -2
- package/dist/dev/runtime/define/options.mjs +1 -2
- package/dist/dev/runtime/define/optionsApi.mjs +1 -2
- package/dist/dev/runtime/define/props.mjs +1 -2
- package/dist/dev/runtime/define/scopedSlotOptions.mjs +1 -2
- package/dist/dev/runtime/define/setupResult.mjs +1 -2
- package/dist/dev/runtime/define.mjs +1 -2
- package/dist/dev/runtime/diff.mjs +1 -2
- package/dist/dev/runtime/disposables.mjs +1 -2
- package/dist/dev/runtime/elementIntersectionObserver.mjs +1 -2
- package/dist/dev/runtime/emit.mjs +1 -2
- package/dist/dev/runtime/features/inlineEvents.mjs +1 -2
- package/dist/dev/runtime/features/jsxIslands.mjs +1 -2
- package/dist/dev/runtime/features/layout.mjs +1 -2
- package/dist/dev/runtime/features/patchStrategy.mjs +1 -2
- package/dist/dev/runtime/features/publicLayout.mjs +1 -2
- package/dist/dev/runtime/features/scopedSlots.mjs +1 -2
- package/dist/dev/runtime/features/setDataHighFrequencyWarning.mjs +1 -2
- package/dist/dev/runtime/features/templateRefs.mjs +1 -2
- package/dist/dev/runtime/hooks/base.mjs +1 -2
- package/dist/dev/runtime/hooks/pageScroll.mjs +1 -2
- package/dist/dev/runtime/hooks/register.mjs +1 -2
- package/dist/dev/runtime/hooks/vue.mjs +1 -2
- package/dist/dev/runtime/inlineDataset.mjs +1 -2
- package/dist/dev/runtime/internal.mjs +1 -2
- package/dist/dev/runtime/intersectionObserver.mjs +1 -2
- package/dist/dev/runtime/jsxIsland.mjs +1 -2
- package/dist/dev/runtime/layoutBridge.mjs +1 -2
- package/dist/dev/runtime/layoutComponentMatcher.mjs +1 -2
- package/dist/dev/runtime/nativeBridge.mjs +1 -2
- package/dist/dev/runtime/navigationLifecycle.mjs +1 -2
- package/dist/dev/runtime/noSetData.mjs +1 -2
- package/dist/dev/runtime/pageEnvironment.mjs +1 -2
- package/dist/dev/runtime/pageLayout.mjs +1 -2
- package/dist/dev/runtime/pageScroll.mjs +1 -2
- package/dist/dev/runtime/platform/current.mjs +1 -2
- package/dist/dev/runtime/platform/generic.mjs +1 -2
- package/dist/dev/runtime/platform/globals.mjs +1 -2
- package/dist/dev/runtime/platform.mjs +1 -2
- package/dist/dev/runtime/provide.mjs +1 -2
- package/dist/dev/runtime/provideContext.mjs +1 -2
- package/dist/dev/runtime/provideStore.mjs +1 -2
- package/dist/dev/runtime/publicRuntime.mjs +1 -2
- package/dist/dev/runtime/pullDownRefresh.mjs +1 -2
- package/dist/dev/runtime/register/app.mjs +1 -2
- package/dist/dev/runtime/register/component/alipay.mjs +1 -2
- package/dist/dev/runtime/register/component/alipayRegistration.mjs +1 -2
- package/dist/dev/runtime/register/component/features.mjs +1 -2
- package/dist/dev/runtime/register/component/hmrRegistration.mjs +1 -2
- package/dist/dev/runtime/register/component/lifecycle/optionalHooks.mjs +1 -2
- package/dist/dev/runtime/register/component/lifecycle/platform.mjs +1 -2
- package/dist/dev/runtime/register/component/lifecycle.mjs +1 -2
- package/dist/dev/runtime/register/component/methods.mjs +1 -2
- package/dist/dev/runtime/register/component/options.mjs +1 -2
- package/dist/dev/runtime/register/component/props.mjs +1 -2
- package/dist/dev/runtime/register/component/registerDefinition.mjs +1 -2
- package/dist/dev/runtime/register/component/registerNativeDefinition.mjs +1 -2
- package/dist/dev/runtime/register/component.mjs +1 -2
- package/dist/dev/runtime/register/inline.mjs +1 -2
- package/dist/dev/runtime/register/runtimeInstance/methodBridge.mjs +1 -2
- package/dist/dev/runtime/register/runtimeInstance/nativeDeclaration.mjs +1 -2
- package/dist/dev/runtime/register/runtimeInstance/provideContext.mjs +1 -2
- package/dist/dev/runtime/register/runtimeInstance/setupContext.mjs +1 -2
- package/dist/dev/runtime/register/runtimeInstance/setupPhase.mjs +1 -2
- package/dist/dev/runtime/register/runtimeInstance/setupSnapshot.mjs +1 -2
- package/dist/dev/runtime/register/runtimeInstance/utils.mjs +1 -2
- package/dist/dev/runtime/register/runtimeInstance.mjs +1 -2
- package/dist/dev/runtime/register/setDataFrequencyWarning.mjs +1 -2
- package/dist/dev/runtime/register/setup.mjs +1 -2
- package/dist/dev/runtime/register/snapshot.mjs +1 -2
- package/dist/dev/runtime/register/watch.mjs +1 -2
- package/dist/dev/runtime/scopedSlots.mjs +1 -2
- package/dist/dev/runtime/selectorQuery.mjs +1 -2
- package/dist/dev/runtime/setupTracking.mjs +1 -2
- package/dist/dev/runtime/teardown.mjs +1 -2
- package/dist/dev/runtime/template.mjs +1 -2
- package/dist/dev/runtime/templateRefs/helpers.mjs +1 -2
- package/dist/dev/runtime/templateRefs.mjs +1 -2
- package/dist/dev/runtime/uniAppHost.mjs +1 -2
- package/dist/dev/runtime/updatePerformance.mjs +1 -2
- package/dist/dev/runtime/use.mjs +1 -2
- package/dist/dev/runtime/vueCompat/context.mjs +1 -2
- package/dist/dev/runtime/vueCompat/model.mjs +1 -2
- package/dist/dev/runtime/vueCompat/router.mjs +1 -2
- package/dist/dev/runtime/vueCompat/templateRef.mjs +1 -2
- package/dist/dev/scheduler.mjs +1 -2
- package/dist/dev/store/actions.mjs +1 -2
- package/dist/dev/store/base.mjs +1 -2
- package/dist/dev/store/define/create.mjs +1 -2
- package/dist/dev/store/define.mjs +1 -2
- package/dist/dev/store/manager.mjs +1 -2
- package/dist/dev/store/storeToRefs.mjs +1 -2
- package/dist/dev/store/subscriptions.mjs +1 -2
- package/dist/dev/store/types.mjs +1 -2
- package/dist/dev/store/utils.mjs +1 -2
- package/dist/dev/store/view.mjs +1 -2
- package/dist/dev/utils.mjs +1 -2
- package/dist/dev/version.mjs +1 -2
- package/dist/dev/vue-demi.mjs +1 -2
- package/dist/fetch.d.mts +0 -2
- package/dist/jsx-runtime.d.mts +0 -2
- package/dist/jsxTypes.d.mts +1 -3
- package/dist/macros/shared.d.mts +0 -2
- package/dist/macros.d.mts +0 -2
- package/dist/miniprogram/jsx-runtime.d.mts +0 -2
- package/dist/package.mjs +1 -1
- package/dist/reactivity/asyncDerivation.d.mts +0 -2
- package/dist/reactivity/computed.d.mts +0 -2
- package/dist/reactivity/core.d.mts +1 -3
- package/dist/reactivity/core.mjs +1 -1
- package/dist/reactivity/reactive/mutation.d.mts +0 -2
- package/dist/reactivity/reactive/patch.d.mts +1 -3
- package/dist/reactivity/reactive/patchState.mjs +1 -1
- package/dist/reactivity/reactive/shallow.d.mts +1 -3
- package/dist/reactivity/reactive/shared.d.mts +1 -3
- package/dist/reactivity/reactive.d.mts +0 -2
- package/dist/reactivity/readonly.d.mts +1 -3
- package/dist/reactivity/ref.d.mts +1 -3
- package/dist/reactivity/ref.mjs +1 -1
- package/dist/reactivity/shallowRef.d.mts +1 -3
- package/dist/reactivity/toRefs.d.mts +0 -2
- package/dist/reactivity/traverse.d.mts +1 -3
- package/dist/reactivity/watch/types.d.mts +0 -2
- package/dist/reactivity/watch.d.mts +0 -2
- package/dist/router/auto-routes.d.mts +0 -2
- package/dist/router/createRouter.d.mts +1 -3
- package/dist/router/navigationCore.d.mts +1 -3
- package/dist/router/resolve.d.mts +1 -3
- package/dist/router/scrollRestoration/adapters.d.mts +1 -3
- package/dist/router/scrollRestoration/controller.d.mts +1 -3
- package/dist/router/scrollRestoration/index.d.mts +0 -2
- package/dist/router/scrollRestoration/index.mjs +1 -1
- package/dist/router/scrollRestoration/types.d.mts +1 -3
- package/dist/router/types.d.mts +0 -2
- package/dist/router/useRoute.d.mts +1 -3
- package/dist/router/useRouter.d.mts +1 -3
- package/dist/router.d.mts +0 -2
- package/dist/routerInternal/query.d.mts +1 -3
- package/dist/routerInternal/types.d.mts +1 -3
- package/dist/runtime/app/pending.d.mts +1 -3
- package/dist/runtime/app/setData/commitTracker.d.mts +1 -3
- package/dist/runtime/app/setData/observation.d.mts +0 -2
- package/dist/runtime/app/setData/scheduler.d.mts +1 -3
- package/dist/runtime/app/setData/scheduler.mjs +1 -1
- package/dist/runtime/app.d.mts +1 -3
- package/dist/runtime/capabilities.d.mts +0 -2
- package/dist/runtime/css.d.mts +1 -3
- package/dist/runtime/defaults.d.mts +1 -3
- package/dist/runtime/define/props.mjs +1 -1
- package/dist/runtime/define/scopedSlotOptions.mjs +1 -1
- package/dist/runtime/define.d.mts +0 -2
- package/dist/runtime/disposables.d.mts +1 -3
- package/dist/runtime/elementIntersectionObserver.d.mts +1 -3
- package/dist/runtime/features/inlineEvents.d.mts +1 -3
- package/dist/runtime/features/jsxIslands.d.mts +1 -3
- package/dist/runtime/features/layout.d.mts +1 -3
- package/dist/runtime/features/patchStrategy.d.mts +1 -3
- package/dist/runtime/features/publicLayout.d.mts +0 -2
- package/dist/runtime/features/scopedSlots.d.mts +1 -3
- package/dist/runtime/features/setDataHighFrequencyWarning.d.mts +1 -3
- package/dist/runtime/features/templateRefs.d.mts +1 -3
- package/dist/runtime/hooks/base.d.mts +1 -3
- package/dist/runtime/hooks/register.d.mts +1 -3
- package/dist/runtime/hooks/vue.d.mts +1 -3
- package/dist/runtime/intersectionObserver.d.mts +1 -3
- package/dist/runtime/jsxIsland.d.mts +1 -3
- package/dist/runtime/layoutBridge.d.mts +0 -2
- package/dist/runtime/noSetData.d.mts +1 -3
- package/dist/runtime/pageEnvironment.d.mts +1 -3
- package/dist/runtime/pageLayout.d.mts +0 -2
- package/dist/runtime/pageScroll.d.mts +1 -3
- package/dist/runtime/provide.d.mts +0 -2
- package/dist/runtime/provideStore.d.mts +1 -3
- package/dist/runtime/publicRuntime.d.mts +1 -3
- package/dist/runtime/pullDownRefresh.d.mts +1 -3
- package/dist/runtime/register/app.d.mts +1 -3
- package/dist/runtime/register/component.d.mts +1 -3
- package/dist/runtime/register/inline.d.mts +0 -2
- package/dist/runtime/register/runtimeInstance.d.mts +0 -2
- package/dist/runtime/register/runtimeInstance.mjs +1 -1
- package/dist/runtime/register/setDataFrequencyWarning.mjs +1 -1
- package/dist/runtime/register/setup.d.mts +0 -2
- package/dist/runtime/register/watch.d.mts +0 -2
- package/dist/runtime/selectorQuery.d.mts +1 -3
- package/dist/runtime/template.d.mts +1 -3
- package/dist/runtime/templateRefTypes.d.mts +0 -2
- package/dist/runtime/types/core.d.mts +0 -2
- package/dist/runtime/types/miniprogram.d.mts +0 -2
- package/dist/runtime/types/miniprogramHost.d.mts +0 -2
- package/dist/runtime/types/miniprogramHostSources.d.mts +1 -3
- package/dist/runtime/types/options.d.mts +0 -2
- package/dist/runtime/types/props/propTypes.d.mts +0 -2
- package/dist/runtime/types/props/router.d.mts +0 -2
- package/dist/runtime/types/props/setup.d.mts +1 -3
- package/dist/runtime/types/runtime.d.mts +1 -3
- package/dist/runtime/types/setData.d.mts +1 -3
- package/dist/runtime/types.d.mts +0 -2
- package/dist/runtime/uniAppHost.d.mts +0 -2
- package/dist/runtime/updatePerformance.d.mts +1 -3
- package/dist/runtime/use.d.mts +1 -3
- package/dist/runtime/vueCompat/context.d.mts +1 -3
- package/dist/runtime/vueCompat/model.d.mts +0 -2
- package/dist/runtime/vueCompat/router.d.mts +0 -2
- package/dist/runtime/vueCompat/templateRef.d.mts +1 -3
- package/dist/scheduler.d.mts +1 -3
- package/dist/store/define.d.mts +1 -3
- package/dist/store/manager.d.mts +1 -3
- package/dist/store/storeToRefs.d.mts +0 -2
- package/dist/store/types.d.mts +0 -2
- package/dist/tt/jsx-runtime.d.mts +0 -2
- package/dist/types/definitions.d.mts +1 -3
- package/dist/types/pageLayout.d.mts +1 -3
- package/dist/types/pageMeta.d.mts +1 -3
- package/dist/types/reactivity.d.mts +0 -2
- package/dist/version.d.mts +1 -3
- package/dist/vue-augment.d.mts +1 -3
- package/dist/vue-demi.d.mts +0 -2
- package/dist/vue-types.d.mts +0 -2
- package/dist/weapp/jsx-runtime.d.mts +0 -2
- package/package.json +8 -8
- /package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/defineProperty.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPrimitive.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/toPropertyKey.mjs +0 -0
- /package/dist/_virtual/{_@oxc-project_runtime@0.154.0 → _@oxc-project_runtime@0.155.0}/helpers/esm/typeof.mjs +0 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { AlipayIntrinsicElementBaseAttributes, AlipayIntrinsicElements, AlipayIntrinsicElements as AlipayIntrinsicElements$1 } from "@weapp-core/types/alipay";
|
|
2
2
|
import { JSX as JSX$1, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxGlobalComponents as WevuJsxGlobalComponents$1, WevuJsxHostAttributes } from "wevu/jsx-runtime";
|
|
3
|
-
//#region src/alipay/jsx-runtime.d.ts
|
|
4
3
|
export declare namespace JSX {
|
|
5
4
|
type Element = JSX$1.Element;
|
|
6
5
|
interface ElementClass extends JSX$1.ElementClass {}
|
|
@@ -8,5 +7,4 @@ export declare namespace JSX {
|
|
|
8
7
|
interface IntrinsicAttributes extends JSX$1.IntrinsicAttributes {}
|
|
9
8
|
interface IntrinsicElements extends WevuJsxGlobalComponents$1, AlipayIntrinsicElements$1 {}
|
|
10
9
|
}
|
|
11
|
-
//#endregion
|
|
12
10
|
export type { AlipayIntrinsicElementBaseAttributes, AlipayIntrinsicElements, WevuJsxChild, WevuJsxElement, WevuJsxEventHandler, WevuJsxGlobalComponents, WevuJsxHostAttributes };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SetDataSnapshotOptions } from "../runtime/types/setData.mjs";
|
|
2
2
|
import { PageFeatures } from "./pageFeatures.mjs";
|
|
3
|
-
//#region src/config/defaults.d.ts
|
|
4
3
|
/** 编译期默认值允许的 JSON 数据;对象的可选字段可省略。 */
|
|
5
4
|
export type WevuConfigValue = string | number | boolean | null | WevuConfigValue[] | WevuConfigRecord;
|
|
6
5
|
export interface WevuConfigRecord {
|
|
@@ -40,5 +39,4 @@ export interface WevuConfigComponentDefaults {
|
|
|
40
39
|
export interface WevuConfigDefaults {
|
|
41
40
|
app?: WevuConfigAppDefaults;
|
|
42
41
|
component?: WevuConfigComponentDefaults;
|
|
43
|
-
}
|
|
44
|
-
//#endregion
|
|
42
|
+
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
//#region src/config/pageFeatures.d.ts
|
|
2
1
|
export interface PageFeatures {
|
|
3
2
|
/**
|
|
4
3
|
* 启用页面滚动事件(注入 `onPageScroll`)。
|
|
@@ -47,5 +46,4 @@ export interface PageFeatures {
|
|
|
47
46
|
* 启用“退出状态保存”(注入 `onSaveExitState`)。
|
|
48
47
|
*/
|
|
49
48
|
enableOnSaveExitState?: boolean;
|
|
50
|
-
}
|
|
51
|
-
//#endregion
|
|
49
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import toPropertyKey from "./toPropertyKey.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/defineProperty.js
|
|
4
4
|
function _defineProperty(e, r, t) {
|
|
5
5
|
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
6
6
|
value: t,
|
|
@@ -10,5 +10,4 @@ function _defineProperty(e, r, t) {
|
|
|
10
10
|
}) : e[r] = t, e;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
//#endregion
|
|
14
13
|
export { _defineProperty as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import _typeof from "./typeof.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPrimitive.js
|
|
4
4
|
function toPrimitive(t, r) {
|
|
5
5
|
if ("object" != _typeof(t) || !t) return t;
|
|
6
6
|
var e = t[Symbol.toPrimitive];
|
|
@@ -12,5 +12,4 @@ function toPrimitive(t, r) {
|
|
|
12
12
|
return ("string" === r ? String : Number)(t);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
//#endregion
|
|
16
15
|
export { toPrimitive as default };
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import _typeof from "./typeof.mjs";
|
|
2
2
|
import toPrimitive from "./toPrimitive.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/toPropertyKey.js
|
|
5
5
|
function toPropertyKey(t) {
|
|
6
6
|
var i = toPrimitive(t, "string");
|
|
7
7
|
return "symbol" == _typeof(i) ? i : i + "";
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
//#endregion
|
|
11
10
|
export { toPropertyKey as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// \0@oxc-project+runtime@0.155.0/helpers/esm/typeof.js
|
|
2
2
|
function _typeof(o) {
|
|
3
3
|
"@babel/helpers - typeof";
|
|
4
4
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
@@ -8,5 +8,4 @@ function _typeof(o) {
|
|
|
8
8
|
}, _typeof(o);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
//#endregion
|
|
12
11
|
export { _typeof as default };
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { setupApiMock } from "@wevu/api/vitest";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/apiVitestSetup.ts
|
|
4
4
|
setupApiMock([
|
|
5
5
|
"@weapp-core/api",
|
|
6
6
|
"@wevu/api",
|
|
7
7
|
"wevu/api"
|
|
8
8
|
]);
|
|
9
9
|
|
|
10
|
-
//#endregion
|
|
11
10
|
export { };
|
|
12
11
|
//# sourceMappingURL=setup.mjs.map
|
package/dist/dev/package.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { reactive } from "./reactive.mjs";
|
|
|
3
3
|
import { readonly } from "./readonly.mjs";
|
|
4
4
|
import { AbortControllerPolyfill } from "@wevu/web-apis/abort";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/reactivity/asyncDerivation.ts
|
|
7
7
|
const RESOLVED_PROMISE = Promise.resolve();
|
|
8
8
|
function createAsyncDerivationCycle() {
|
|
9
9
|
let resolve;
|
|
@@ -123,6 +123,5 @@ function useAsyncDerivation(loader, options = {}) {
|
|
|
123
123
|
return result;
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
//#endregion
|
|
127
126
|
export { useAsyncDerivation };
|
|
128
127
|
//# sourceMappingURL=asyncDerivation.mjs.map
|
|
@@ -2,7 +2,7 @@ import { createComputedEffect, track, trigger } from "./core.mjs";
|
|
|
2
2
|
import { markRaw } from "./reactive.mjs";
|
|
3
3
|
import { markAsRef } from "./ref.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/reactivity/computed.ts
|
|
6
6
|
const computedRefs = /* @__PURE__ */ new WeakSet();
|
|
7
7
|
/** 识别计算来源,供 Store 将派生值与可持久化 state 分离。 */
|
|
8
8
|
function isComputedRef(value) {
|
|
@@ -53,6 +53,5 @@ function computed(getterOrOptions) {
|
|
|
53
53
|
return onlyGetter ? obj : obj;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
//#endregion
|
|
57
56
|
export { computed, isComputedRef };
|
|
58
57
|
//# sourceMappingURL=computed.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { queueJob } from "../scheduler.mjs";
|
|
2
|
-
import _defineProperty from "../_virtual/_@oxc-project_runtime@0.
|
|
2
|
+
import _defineProperty from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/reactivity/core.ts
|
|
5
5
|
const targetMap = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
let activeEffect = null;
|
|
7
7
|
const effectStack = [];
|
|
@@ -300,6 +300,5 @@ function triggerEffects(dep) {
|
|
|
300
300
|
new Set(dep).forEach(scheduleEffect);
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
//#endregion
|
|
304
303
|
export { batch, createComputedEffect, createReactiveEffect, effect, effectScope, endBatch, getCurrentScope, onScopeDispose, queueBatchCallback, queueJob, runWithoutTracking, startBatch, stop, track, trackEffects, trigger, triggerEffects };
|
|
305
304
|
//# sourceMappingURL=core.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/reactivity/reactive/mutation.ts
|
|
2
2
|
const mutationRecorders = /* @__PURE__ */ new Set();
|
|
3
3
|
function addMutationRecorder(recorder) {
|
|
4
4
|
mutationRecorders.add(recorder);
|
|
@@ -7,6 +7,5 @@ function removeMutationRecorder(recorder) {
|
|
|
7
7
|
mutationRecorders.delete(recorder);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
//#endregion
|
|
11
10
|
export { addMutationRecorder, mutationRecorders, removeMutationRecorder };
|
|
12
11
|
//# sourceMappingURL=mutation.mjs.map
|
|
@@ -2,7 +2,7 @@ import { track } from "../core.mjs";
|
|
|
2
2
|
import { adoptReactiveRoot, indexPatchNode, rawMultiParentSet, rawParentMap, rawParentsMap, rawPathMap, rawRootMap, rawVersionMap, recordParentLink, rootPatchNodesMap } from "./patchState.mjs";
|
|
3
3
|
import { VERSION_KEY, isObject, toRaw } from "./shared.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/reactivity/reactive/patch.ts
|
|
6
6
|
/**
|
|
7
7
|
* 预链接响应式树结构,供运行时差量路径追踪使用。
|
|
8
8
|
* @internal
|
|
@@ -82,6 +82,5 @@ function touchReactive(target) {
|
|
|
82
82
|
track(raw, VERSION_KEY);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
//#endregion
|
|
86
85
|
export { clearPatchIndices, prelinkReactiveTree, touchReactive };
|
|
87
86
|
//# sourceMappingURL=patch.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { mutationRecorders } from "./mutation.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/reactivity/reactive/patchState.ts
|
|
4
4
|
const rawRootMap = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
const rawVersionMap = /* @__PURE__ */ new WeakMap();
|
|
6
6
|
const rawParentMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -129,6 +129,5 @@ function resolvePathToTarget(root, target) {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
//#endregion
|
|
133
132
|
export { adoptReactiveRoot, bumpAncestorVersions, bumpRawVersion, getRawVersion, indexPatchNode, rawMultiParentSet, rawParentMap, rawParentsMap, rawPathMap, rawRootMap, rawVersionMap, recordParentLink, removeParentLink, resolvePathToTarget, rootPatchNodesMap };
|
|
134
133
|
//# sourceMappingURL=patchState.mjs.map
|
|
@@ -3,7 +3,7 @@ import { bumpRawVersion, rawVersionMap } from "./patchState.mjs";
|
|
|
3
3
|
import { VERSION_KEY, getTargetType, hasOwn, isObject, toRaw } from "./shared.mjs";
|
|
4
4
|
import { rawMap, shallowReactiveMap } from "./state.mjs";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/reactivity/reactive/shallow.ts
|
|
7
7
|
const shallowHandlers = {
|
|
8
8
|
get(target, key, receiver) {
|
|
9
9
|
if (key === "__r_isReactive") return true;
|
|
@@ -72,6 +72,5 @@ function isShallowReactive(value) {
|
|
|
72
72
|
return shallowReactiveMap.has(raw);
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
//#endregion
|
|
76
75
|
export { isShallowReactive, shallowReactive };
|
|
77
76
|
//# sourceMappingURL=shallow.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/reactivity/reactive/shared.ts
|
|
2
2
|
function isObject(value) {
|
|
3
3
|
return typeof value === "object" && value !== null;
|
|
4
4
|
}
|
|
@@ -34,6 +34,5 @@ function toRaw(observed) {
|
|
|
34
34
|
return observed?.["__r_raw"] ?? observed;
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
//#endregion
|
|
38
37
|
export { VERSION_KEY, getTargetType, hasOwn, isArrayIndexKey, isObject, toRaw, toRawType };
|
|
39
38
|
//# sourceMappingURL=shared.mjs.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
// src/reactivity/reactive/state.ts
|
|
2
2
|
const reactiveMap = /* @__PURE__ */ new WeakMap();
|
|
3
3
|
const rawMap = /* @__PURE__ */ new WeakMap();
|
|
4
4
|
const shallowReactiveMap = /* @__PURE__ */ new WeakMap();
|
|
5
5
|
|
|
6
|
-
//#endregion
|
|
7
6
|
export { rawMap, reactiveMap, shallowReactiveMap };
|
|
8
7
|
//# sourceMappingURL=state.mjs.map
|
|
@@ -6,7 +6,7 @@ import { rawMap, reactiveMap } from "./reactive/state.mjs";
|
|
|
6
6
|
import { clearPatchIndices, prelinkReactiveTree, touchReactive } from "./reactive/patch.mjs";
|
|
7
7
|
import { isShallowReactive, shallowReactive } from "./reactive/shallow.mjs";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/reactivity/reactive.ts
|
|
10
10
|
/**
|
|
11
11
|
* 读取响应式版本号(框架内部调试能力)。
|
|
12
12
|
* @internal
|
|
@@ -210,6 +210,5 @@ function isRaw(value) {
|
|
|
210
210
|
return isObject(value) && "__r_skip" in value;
|
|
211
211
|
}
|
|
212
212
|
|
|
213
|
-
//#endregion
|
|
214
213
|
export { addMutationRecorder, clearPatchIndices, convertToReactive, getReactiveVersion, isObject, isRaw, isReactive, isShallowReactive, markRaw, prelinkReactiveTree, reactive, removeMutationRecorder, shallowReactive, toRaw, touchReactive };
|
|
215
214
|
//# sourceMappingURL=reactive.mjs.map
|
|
@@ -2,7 +2,7 @@ import { getTargetType, isObject } from "./reactive/shared.mjs";
|
|
|
2
2
|
import { isReactive } from "./reactive.mjs";
|
|
3
3
|
import { isRef, markAsRef } from "./ref.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/reactivity/readonly.ts
|
|
6
6
|
function createReadonlyWrapper(target) {
|
|
7
7
|
if (isRef(target)) {
|
|
8
8
|
const source = target;
|
|
@@ -64,6 +64,5 @@ function isProxy(value) {
|
|
|
64
64
|
return isReactive(value) || isReadonly(value);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
//#endregion
|
|
68
67
|
export { isProxy, isReadonly, readonly, shallowReadonly };
|
|
69
68
|
//# sourceMappingURL=readonly.mjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _defineProperty from "../_virtual/_@oxc-project_runtime@0.
|
|
1
|
+
import _defineProperty from "../_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/defineProperty.mjs";
|
|
2
2
|
import { trackEffects, triggerEffects } from "./core.mjs";
|
|
3
3
|
import { convertToReactive, markRaw } from "./reactive.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/reactivity/ref.ts
|
|
6
6
|
const RefFlag = "__v_isRef";
|
|
7
7
|
function markAsRef(target) {
|
|
8
8
|
try {
|
|
@@ -92,6 +92,5 @@ function customRef(factory, defaultValue) {
|
|
|
92
92
|
return markRaw(new CustomRefImpl(factory, defaultValue));
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
//#endregion
|
|
96
95
|
export { RefFlag, customRef, isRef, markAsRef, ref, toValue, unref };
|
|
97
96
|
//# sourceMappingURL=ref.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { triggerEffects } from "./core.mjs";
|
|
2
2
|
import { customRef, isRef } from "./ref.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/reactivity/shallowRef.ts
|
|
5
5
|
const ShallowRefFlag = "__v_isShallow";
|
|
6
6
|
function markAsShallowRef(target) {
|
|
7
7
|
try {
|
|
@@ -66,6 +66,5 @@ function triggerRef(ref) {
|
|
|
66
66
|
}
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
//#endregion
|
|
70
69
|
export { isShallowRef, shallowRef, triggerRef };
|
|
71
70
|
//# sourceMappingURL=shallowRef.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isReactive } from "./reactive.mjs";
|
|
2
2
|
import { customRef, isRef } from "./ref.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/reactivity/toRefs.ts
|
|
5
5
|
function toRef(object, key, defaultValue) {
|
|
6
6
|
const value = object[key];
|
|
7
7
|
if (isRef(value)) return value;
|
|
@@ -38,6 +38,5 @@ function toRefs(object) {
|
|
|
38
38
|
return result;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
41
|
export { toRef, toRefs };
|
|
43
42
|
//# sourceMappingURL=toRefs.mjs.map
|
|
@@ -2,7 +2,7 @@ import { isObject, toRaw } from "./reactive/shared.mjs";
|
|
|
2
2
|
import { isReactive } from "./reactive.mjs";
|
|
3
3
|
import { isRef } from "./ref.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/reactivity/traverse.ts
|
|
6
6
|
/**
|
|
7
7
|
* 深度遍历工具(框架内部依赖收集使用)。
|
|
8
8
|
* @internal
|
|
@@ -35,6 +35,5 @@ function traverse(value, depth = Infinity, seen = /* @__PURE__ */ new Map()) {
|
|
|
35
35
|
return value;
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
//#endregion
|
|
39
38
|
export { traverse };
|
|
40
39
|
//# sourceMappingURL=traverse.mjs.map
|
|
@@ -6,7 +6,7 @@ import { isShallowRef } from "../shallowRef.mjs";
|
|
|
6
6
|
import { traverse } from "../traverse.mjs";
|
|
7
7
|
import { getDeepWatchStrategy } from "./types.mjs";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/reactivity/watch/helpers.ts
|
|
10
10
|
function resolveWatchSource(item) {
|
|
11
11
|
if (typeof item === "function") return item();
|
|
12
12
|
if (isRef(item)) return item.value;
|
|
@@ -73,6 +73,5 @@ function dispatchScheduledJob(job, flush, isFirstRun, scheduler) {
|
|
|
73
73
|
else queueJob(job);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
//#endregion
|
|
77
76
|
export { applyDeepWatchGetter, createWatchGetter, dispatchScheduledJob };
|
|
78
77
|
//# sourceMappingURL=helpers.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/reactivity/watch/types.ts
|
|
2
2
|
let __deepWatchStrategy = "version";
|
|
3
3
|
/**
|
|
4
4
|
* 设置深度 watch 内部策略(测试/框架内部使用)。
|
|
@@ -15,6 +15,5 @@ function getDeepWatchStrategy() {
|
|
|
15
15
|
return __deepWatchStrategy;
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
//#endregion
|
|
19
18
|
export { getDeepWatchStrategy, setDeepWatchStrategy };
|
|
20
19
|
//# sourceMappingURL=types.mjs.map
|
|
@@ -3,7 +3,7 @@ import { getCurrentInstance, setCurrentInstance } from "../runtime/hooks/base.mj
|
|
|
3
3
|
import { getDeepWatchStrategy, setDeepWatchStrategy } from "./watch/types.mjs";
|
|
4
4
|
import { applyDeepWatchGetter, createWatchGetter, dispatchScheduledJob } from "./watch/helpers.mjs";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/reactivity/watch.ts
|
|
7
7
|
function watch(source, cb, options = {}) {
|
|
8
8
|
const ownerInstance = getCurrentInstance();
|
|
9
9
|
const watchGetterContext = createWatchGetter(source);
|
|
@@ -160,6 +160,5 @@ function watchSyncEffect(effectFn, options = {}) {
|
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
//#endregion
|
|
164
163
|
export { getDeepWatchStrategy, setDeepWatchStrategy, watch, watchEffect, watchPostEffect, watchSyncEffect };
|
|
165
164
|
//# sourceMappingURL=watch.mjs.map
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { WEVU_AUTO_ROUTES_MODULE_ID } from "@weapp-core/constants";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/router/auto-routes.ts
|
|
4
4
|
function unavailableOutsideVite() {
|
|
5
5
|
throw new Error(`${WEVU_AUTO_ROUTES_MODULE_ID} is generated by weapp-vite and is unavailable outside a weapp-vite build.`);
|
|
6
6
|
}
|
|
7
7
|
const routes = unavailableOutsideVite();
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { routes };
|
|
11
10
|
//# sourceMappingURL=auto-routes.mjs.map
|
|
@@ -4,7 +4,7 @@ import { NavigationFailureType } from "./types.mjs";
|
|
|
4
4
|
import { createNavigationFailure, runNavigationGuards } from "./navigationCore.mjs";
|
|
5
5
|
import { createNavigationRunResult } from "./navigationResult.mjs";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/router/backNavigation.ts
|
|
8
8
|
function resolveBackNavigationTarget(delta, from, resolveWithCodec) {
|
|
9
9
|
const pages = getCurrentMiniProgramPages();
|
|
10
10
|
const targetPage = pages[pages.length - 1 - delta];
|
|
@@ -27,6 +27,5 @@ async function runBackNavigationGuards(options) {
|
|
|
27
27
|
return createNavigationRunResult("back", from, target);
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
-
//#endregion
|
|
31
30
|
export { resolveBackNavigationTarget, runBackNavigationGuards };
|
|
32
31
|
//# sourceMappingURL=backNavigation.mjs.map
|
|
@@ -21,7 +21,7 @@ import { resolveRouteLocation } from "./resolve.mjs";
|
|
|
21
21
|
import { createRouteRegistry } from "./routeRegistry.mjs";
|
|
22
22
|
import { createRouteStateController, useNativeRouter } from "./useRoute.mjs";
|
|
23
23
|
|
|
24
|
-
|
|
24
|
+
// src/router/createRouter.ts
|
|
25
25
|
/**
|
|
26
26
|
* @description 创建高阶路由导航器(对齐 Vue Router 的 createRouter 心智)
|
|
27
27
|
*/
|
|
@@ -247,6 +247,5 @@ function createRouter(optionsInput = {}) {
|
|
|
247
247
|
return router;
|
|
248
248
|
}
|
|
249
249
|
|
|
250
|
-
//#endregion
|
|
251
250
|
export { createRouter };
|
|
252
251
|
//# sourceMappingURL=createRouter.mjs.map
|
|
@@ -3,7 +3,7 @@ import { getActiveRouter } from "./instance.mjs";
|
|
|
3
3
|
import { WEVU_INITIAL_NAVIGATION_TIMEOUT_MARKER } from "@weapp-core/constants";
|
|
4
4
|
import { queueMicrotaskPolyfill } from "@wevu/web-apis";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/router/initialNavigation.ts
|
|
7
7
|
const DEFAULT_INITIAL_NAVIGATION_TIMEOUT = 1e4;
|
|
8
8
|
const initialNavigationRunners = /* @__PURE__ */ new WeakMap();
|
|
9
9
|
const initialNavigationControllers = /* @__PURE__ */ new WeakMap();
|
|
@@ -144,6 +144,5 @@ function registerInitialNavigationRunner(router, runner, timeoutMs = DEFAULT_INI
|
|
|
144
144
|
});
|
|
145
145
|
}
|
|
146
146
|
|
|
147
|
-
//#endregion
|
|
148
147
|
export { DEFAULT_INITIAL_NAVIGATION_TIMEOUT, cancelInitialNavigation, ensureInitialNavigation, getInitialNavigationPromise, getInitialNavigationTimeout, registerInitialNavigationRunner };
|
|
149
148
|
//# sourceMappingURL=initialNavigation.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { injectGlobal, provideGlobal } from "../runtime/provide.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/router/instance.ts
|
|
4
4
|
const ROUTER_INSTANCE_KEY = Symbol("wevu.router.instance");
|
|
5
5
|
let activeRouter;
|
|
6
6
|
function setActiveRouter(router) {
|
|
@@ -11,6 +11,5 @@ function getActiveRouter() {
|
|
|
11
11
|
return activeRouter ?? injectGlobal(ROUTER_INSTANCE_KEY, void 0);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
//#endregion
|
|
15
14
|
export { getActiveRouter, setActiveRouter };
|
|
16
15
|
//# sourceMappingURL=instance.mjs.map
|
|
@@ -6,7 +6,7 @@ import { resolveBackNavigationTarget, runBackNavigationGuards } from "./backNavi
|
|
|
6
6
|
import { createForwardNotSupportedFailure } from "./navigationTargetHelpers.mjs";
|
|
7
7
|
import { navigateWithTarget } from "./navigationTarget.mjs";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/router/navigationApi.ts
|
|
10
10
|
function createNavigationApi(options) {
|
|
11
11
|
const { nativeRouter, route, routeResolveCodec, namedRouteLookup, beforeEachGuards, beforeResolveGuards, maxRedirects, tabBarPathSet, resolveWithCodec, settleNavigationResult } = options;
|
|
12
12
|
async function push(to) {
|
|
@@ -89,6 +89,5 @@ function createNavigationApi(options) {
|
|
|
89
89
|
};
|
|
90
90
|
}
|
|
91
91
|
|
|
92
|
-
//#endregion
|
|
93
92
|
export { createNavigationApi };
|
|
94
93
|
//# sourceMappingURL=navigationApi.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NavigationFailureType } from "./types.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/router/navigationCore.ts
|
|
4
4
|
const DUPLICATED_RE = /already|same|duplicat|重复/;
|
|
5
5
|
const CANCELLED_RE = /cancel|取消/;
|
|
6
6
|
const ABORTED_RE = /abort|interrupt|中断/;
|
|
@@ -134,6 +134,5 @@ function shouldEmitNavigationError(failure) {
|
|
|
134
134
|
return false;
|
|
135
135
|
}
|
|
136
136
|
|
|
137
|
-
//#endregion
|
|
138
137
|
export { createNavigationFailure, executeNavigationMethod, isNavigationFailure, isNavigationRedirectCandidate, runAfterEachHooks, runNavigationErrorHooks, runNavigationGuards, shouldEmitNavigationError };
|
|
139
138
|
//# sourceMappingURL=navigationCore.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { notifyRouteStateSync } from "./routeSync.mjs";
|
|
2
2
|
import { runAfterEachHooks, runNavigationErrorHooks, shouldEmitNavigationError } from "./navigationCore.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/router/navigationResult.ts
|
|
5
5
|
function createNavigationRunResult(mode, from, to, failure) {
|
|
6
6
|
return {
|
|
7
7
|
mode,
|
|
@@ -46,6 +46,5 @@ function createNavigationResultController(options) {
|
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
//#endregion
|
|
50
49
|
export { createNavigationResultController, createNavigationRunResult };
|
|
51
50
|
//# sourceMappingURL=navigationResult.mjs.map
|
|
@@ -6,7 +6,7 @@ import { createNavigationFailure, executeNavigationMethod, isNavigationFailure,
|
|
|
6
6
|
import { createNavigationRunResult } from "./navigationResult.mjs";
|
|
7
7
|
import { applyRedirectedFrom, createDuplicatedFailure, createHashOnlyNavigationFailure, createTabBarQueryFailure, createTooManyRedirectsFailure, resolveRouteRecordRedirect } from "./navigationTargetHelpers.mjs";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/router/navigationTarget.ts
|
|
10
10
|
async function navigateWithTarget(options) {
|
|
11
11
|
const { mode, target, from, nativeRouter, routeResolveCodec, namedRouteLookup, beforeEachGuards, beforeResolveGuards, maxRedirects, tabBarPathSet, resolveWithCodec, executeNative = true, allowSameLocation = false } = options;
|
|
12
12
|
let currentTarget = target;
|
|
@@ -116,6 +116,5 @@ async function navigateWithTarget(options) {
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
//#endregion
|
|
120
119
|
export { navigateWithTarget };
|
|
121
120
|
//# sourceMappingURL=navigationTarget.mjs.map
|
|
@@ -2,7 +2,7 @@ import { cloneRouteLocationRedirectedFrom, createRedirectedFromSnapshot } from "
|
|
|
2
2
|
import { NavigationFailureType } from "./types.mjs";
|
|
3
3
|
import { createNavigationFailure, isNavigationRedirectCandidate } from "./navigationCore.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/router/navigationTargetHelpers.ts
|
|
6
6
|
function createDuplicatedFailure(target, from) {
|
|
7
7
|
return createNavigationFailure(NavigationFailureType.duplicated, target, from, "Avoided redundant navigation to current location");
|
|
8
8
|
}
|
|
@@ -33,6 +33,5 @@ async function resolveRouteRecordRedirect(redirect, to, from, resolveWithCodec)
|
|
|
33
33
|
};
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
//#endregion
|
|
37
36
|
export { applyRedirectedFrom, createDuplicatedFailure, createForwardNotSupportedFailure, createHashOnlyNavigationFailure, createTabBarQueryFailure, createTooManyRedirectsFailure, resolveRouteRecordRedirect };
|
|
38
37
|
//# sourceMappingURL=navigationTargetHelpers.mjs.map
|
|
@@ -2,7 +2,7 @@ import { resolvePath } from "../routerInternal/path.mjs";
|
|
|
2
2
|
import { normalizeHash, normalizeQuery, normalizeRouteParams, parseQuery, stringifyQuery } from "../routerInternal/query.mjs";
|
|
3
3
|
import { createRouteLocation, parsePathInput } from "../routerInternal/location.mjs";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/router/resolve.ts
|
|
6
6
|
const DEFAULT_ROUTE_RESOLVE_CODEC = {
|
|
7
7
|
parseQuery,
|
|
8
8
|
stringifyQuery
|
|
@@ -23,6 +23,5 @@ function resolveRouteLocation(to, currentPath = "", codec = DEFAULT_ROUTE_RESOLV
|
|
|
23
23
|
return createRouteLocation(path, query, hash, name, params, codec.stringifyQuery);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
//#endregion
|
|
27
26
|
export { DEFAULT_ROUTE_RESOLVE_CODEC, resolveRouteLocation };
|
|
28
27
|
//# sourceMappingURL=resolve.mjs.map
|
|
@@ -4,7 +4,7 @@ import { assertValidAddRouteInput, warnRouteConfig } from "../routerInternal/rec
|
|
|
4
4
|
import { createNamedRouteNameByStaticPath, flattenNamedRouteRecords, normalizeRouteRecordRaw } from "../routerInternal/records.mjs";
|
|
5
5
|
import { cloneRouteMeta } from "../routerInternal/snapshots.mjs";
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
// src/router/routeRegistry.ts
|
|
8
8
|
function normalizeRouteRecordForOutput(record) {
|
|
9
9
|
const normalizedRoute = {
|
|
10
10
|
name: record.name,
|
|
@@ -73,6 +73,5 @@ function createRouteRegistry(namedRouteLookup) {
|
|
|
73
73
|
};
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
//#endregion
|
|
77
76
|
export { createRouteRegistry };
|
|
78
77
|
//# sourceMappingURL=routeRegistry.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getCurrentMiniProgramPages } from "../runtime/platform.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/router/routeSync.ts
|
|
4
4
|
const ROUTE_SYNC_NATIVE_METHODS = [
|
|
5
5
|
"switchTab",
|
|
6
6
|
"reLaunch",
|
|
@@ -73,6 +73,5 @@ function installRouteStateSyncOnNativeRouter(nativeRouter) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
//#endregion
|
|
77
76
|
export { installRouteStateSyncOnNativeRouter, notifyRouteStateSync, registerRouteStateSyncHandler };
|
|
78
77
|
//# sourceMappingURL=routeSync.mjs.map
|
|
@@ -6,7 +6,7 @@ import { resolveScrollController } from "./controller.mjs";
|
|
|
6
6
|
import { getScrollSetupScope, registerScrollRestoration } from "./index.mjs";
|
|
7
7
|
import { WEVU_PAGE_SCROLL_OBSERVERS_KEY, WEVU_PAGE_SCROLL_RESTORATION_OWNER_KEY } from "@weapp-core/constants";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/router/scrollRestoration/adapters.ts
|
|
10
10
|
/** WebView 页面适配器;Skyline 没有隐式页面滚动容器。 */
|
|
11
11
|
function usePageScrollRestoration(options = {}) {
|
|
12
12
|
const state = resolveScrollController(options.controller);
|
|
@@ -81,6 +81,5 @@ function useScrollViewRestoration(options = {}) {
|
|
|
81
81
|
};
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
//#endregion
|
|
85
84
|
export { usePageScrollRestoration, useScrollViewRestoration };
|
|
86
85
|
//# sourceMappingURL=adapters.mjs.map
|