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
|
@@ -5,7 +5,7 @@ import { isNoSetData } from "./noSetData.mjs";
|
|
|
5
5
|
import { hasOwn } from "../utils.mjs";
|
|
6
6
|
import { hasTrackableSetupBinding } from "./setupTracking.mjs";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/runtime/diff.ts
|
|
9
9
|
function isPlainObject(value) {
|
|
10
10
|
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
11
11
|
const proto = Object.getPrototypeOf(value);
|
|
@@ -186,6 +186,5 @@ function diffSnapshots(prev, next, options) {
|
|
|
186
186
|
return diff;
|
|
187
187
|
}
|
|
188
188
|
|
|
189
|
-
//#endregion
|
|
190
189
|
export { diffSnapshots, toPlain };
|
|
191
190
|
//# sourceMappingURL=diff.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCurrentInstance } from "./hooks/base.mjs";
|
|
2
2
|
import { onDetached, onUnload } from "./hooks/register.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/runtime/disposables.ts
|
|
5
5
|
const DISPOSABLE_METHODS = [
|
|
6
6
|
"dispose",
|
|
7
7
|
"abort",
|
|
@@ -76,6 +76,5 @@ function useDisposables() {
|
|
|
76
76
|
};
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
-
//#endregion
|
|
80
79
|
export { useDisposables };
|
|
81
80
|
//# sourceMappingURL=disposables.mjs.map
|
|
@@ -6,7 +6,7 @@ import { onDetached, onUnload } from "./hooks/register.mjs";
|
|
|
6
6
|
import { onMounted, onUnmounted } from "./hooks/vue.mjs";
|
|
7
7
|
import { watch } from "../reactivity/watch.mjs";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/runtime/elementIntersectionObserver.ts
|
|
10
10
|
function createObserverFromContext(context, options) {
|
|
11
11
|
const nativeContext = context;
|
|
12
12
|
const creator = nativeContext.createIntersectionObserver;
|
|
@@ -67,6 +67,5 @@ function useElementIntersectionObserver(options) {
|
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
|
|
70
|
-
//#endregion
|
|
71
70
|
export { useElementIntersectionObserver };
|
|
72
71
|
//# sourceMappingURL=elementIntersectionObserver.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { hasOwn, hyphenate } from "../utils.mjs";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/runtime/emit.ts
|
|
4
4
|
function isTriggerEventOptions(value) {
|
|
5
5
|
if (!value || typeof value !== "object" || Array.isArray(value)) return false;
|
|
6
6
|
return hasOwn(value, "bubbles") || hasOwn(value, "composed") || hasOwn(value, "capturePhase");
|
|
@@ -31,6 +31,5 @@ function normalizeEmitPayload(args) {
|
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
//#endregion
|
|
35
34
|
export { normalizeEmitEventName, normalizeEmitPayload };
|
|
36
35
|
//# sourceMappingURL=emit.mjs.map
|
|
@@ -2,7 +2,7 @@ import { registerRuntimeCapability } from "../capabilities.mjs";
|
|
|
2
2
|
import { runInlineExpression } from "../register/inline.mjs";
|
|
3
3
|
import { WEVU_INLINE_MAP_KEY } from "@weapp-core/constants";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/runtime/features/inlineEvents.ts
|
|
6
6
|
const inlineEventHooks = {
|
|
7
7
|
handler(event) {
|
|
8
8
|
const runtime = this.__wevu;
|
|
@@ -19,6 +19,5 @@ function installInlineEvents() {
|
|
|
19
19
|
registerRuntimeCapability("inlineEvents", inlineEventHooks);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
//#endregion
|
|
23
22
|
export { installInlineEvents };
|
|
24
23
|
//# sourceMappingURL=inlineEvents.mjs.map
|
|
@@ -2,7 +2,7 @@ import { registerRuntimeCapability } from "../capabilities.mjs";
|
|
|
2
2
|
import { runJsxIslandHandler } from "../jsxIsland.mjs";
|
|
3
3
|
import { WEVU_JSX_ISLAND_HANDLER } from "@weapp-core/constants";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/runtime/features/jsxIslands.ts
|
|
6
6
|
const jsxIslandHooks = { attachMethods(methods) {
|
|
7
7
|
if (!methods[WEVU_JSX_ISLAND_HANDLER]) methods[WEVU_JSX_ISLAND_HANDLER] = function(event) {
|
|
8
8
|
return runJsxIslandHandler(this, event);
|
|
@@ -15,6 +15,5 @@ function installJsxIslands() {
|
|
|
15
15
|
registerRuntimeCapability("jsxIslands", jsxIslandHooks);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
//#endregion
|
|
19
18
|
export { installJsxIslands };
|
|
20
19
|
//# sourceMappingURL=jsxIslands.mjs.map
|
|
@@ -5,7 +5,7 @@ import { runTeardownSteps } from "../teardown.mjs";
|
|
|
5
5
|
import { installTemplateRefs } from "./templateRefs.mjs";
|
|
6
6
|
import { WEVU_LAYOUT_HOST_BRIDGE_KEY, WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY } from "@weapp-core/constants";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/runtime/features/layout.ts
|
|
9
9
|
const layoutHooks = {
|
|
10
10
|
attachPageSetter(target) {
|
|
11
11
|
target[WEVU_PAGE_LAYOUT_SETTER_KEY] = (layout, props) => {
|
|
@@ -38,6 +38,5 @@ function installLayout() {
|
|
|
38
38
|
registerRuntimeCapability("layout", layoutHooks);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
//#endregion
|
|
42
41
|
export { installLayout };
|
|
43
42
|
//# sourceMappingURL=layout.mjs.map
|
|
@@ -5,7 +5,7 @@ import { registerRuntimeCapability } from "../capabilities.mjs";
|
|
|
5
5
|
import { createSetDataScheduler } from "../app/setData/scheduler.mjs";
|
|
6
6
|
import { preparePatchUpdate } from "../app/setData/patchScheduler.mjs";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/runtime/features/patchStrategy.ts
|
|
9
9
|
function createPatchSetDataScheduler(options) {
|
|
10
10
|
const scheduler = createSetDataScheduler(options);
|
|
11
11
|
const stateRootRaw = toRaw(options.state);
|
|
@@ -124,6 +124,5 @@ function installPatchStrategy() {
|
|
|
124
124
|
registerRuntimeCapability("patchStrategy", patchStrategyHooks);
|
|
125
125
|
}
|
|
126
126
|
|
|
127
|
-
//#endregion
|
|
128
127
|
export { installPatchStrategy };
|
|
129
128
|
//# sourceMappingURL=patchStrategy.mjs.map
|
|
@@ -6,7 +6,7 @@ import { getCurrentPageInstance } from "../register/component/lifecycle/platform
|
|
|
6
6
|
import { resolveRuntimePageLayoutName as resolveRuntimePageLayoutName$1, setPageLayout as setPageLayout$1, syncRuntimePageLayoutState as syncRuntimePageLayoutState$1, syncRuntimePageLayoutStateFromRuntime as syncRuntimePageLayoutStateFromRuntime$1, usePageLayout as usePageLayout$1 } from "../pageLayout.mjs";
|
|
7
7
|
import { installLayout } from "./layout.mjs";
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
// src/runtime/features/publicLayout.ts
|
|
10
10
|
const registerPageLayoutBridge = (...args) => {
|
|
11
11
|
installLayout();
|
|
12
12
|
return registerPageLayoutBridge$1(...args);
|
|
@@ -72,6 +72,5 @@ const resolveRuntimePageLayoutName = (...args) => {
|
|
|
72
72
|
return resolveRuntimePageLayoutName$1(...args);
|
|
73
73
|
};
|
|
74
74
|
|
|
75
|
-
//#endregion
|
|
76
75
|
export { registerPageLayoutBridge, registerRuntimeLayoutHosts, resolveLayoutBridge, resolveLayoutHost, resolveRuntimePageLayoutName, setPageLayout, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, useLayoutBridge, useLayoutHosts, usePageLayout, waitForLayoutHost };
|
|
77
76
|
//# sourceMappingURL=publicLayout.mjs.map
|
|
@@ -7,7 +7,7 @@ import { allocateOwnerId, attachOwnerSnapshot, getOwnerProxy, mergeOwnerSnapshot
|
|
|
7
7
|
import { createScopedSlotOptions } from "../define/scopedSlotOptions.mjs";
|
|
8
8
|
import { WEVU_PROPS_KEY, WEVU_RUNTIME_OWNER_ID_KEY, WEVU_SCOPED_SLOT_CREATOR_KEY, WEVU_SLOT_OWNER_ID_KEY } from "@weapp-core/constants";
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
// src/runtime/features/scopedSlots.ts
|
|
11
11
|
const scopedSlotHooks = {
|
|
12
12
|
prepareMount(target) {
|
|
13
13
|
const existing = getScopedSlotMountState(target);
|
|
@@ -79,6 +79,5 @@ function installScopedSlots() {
|
|
|
79
79
|
if (globalObject && globalObject[WEVU_SCOPED_SLOT_CREATOR_KEY] !== createWevuScopedSlotComponent) globalObject[WEVU_SCOPED_SLOT_CREATOR_KEY] = createWevuScopedSlotComponent;
|
|
80
80
|
}
|
|
81
81
|
|
|
82
|
-
//#endregion
|
|
83
82
|
export { createWevuScopedSlotComponent, installScopedSlots };
|
|
84
83
|
//# sourceMappingURL=scopedSlots.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { registerRuntimeCapability } from "../capabilities.mjs";
|
|
2
2
|
import { createSetDataHighFrequencyWarningMonitor } from "../register/setDataFrequencyWarning.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/runtime/features/setDataHighFrequencyWarning.ts
|
|
5
5
|
const setDataHighFrequencyWarningHooks = { createMonitor: createSetDataHighFrequencyWarningMonitor };
|
|
6
6
|
/**
|
|
7
7
|
* 安装可选的 setData 高频告警能力。
|
|
@@ -10,6 +10,5 @@ function installSetDataHighFrequencyWarning() {
|
|
|
10
10
|
registerRuntimeCapability("setDataHighFrequencyWarning", setDataHighFrequencyWarningHooks);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
//#endregion
|
|
14
13
|
export { installSetDataHighFrequencyWarning };
|
|
15
14
|
//# sourceMappingURL=setDataHighFrequencyWarning.mjs.map
|
|
@@ -2,7 +2,7 @@ import { registerRuntimeCapability } from "../capabilities.mjs";
|
|
|
2
2
|
import { clearTemplateRefs, scheduleTemplateRefUpdate } from "../templateRefs.mjs";
|
|
3
3
|
import { WEVU_TEMPLATE_REFS_KEY } from "@weapp-core/constants";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/runtime/features/templateRefs.ts
|
|
6
6
|
const templateRefHooks = {
|
|
7
7
|
attachBindings(target, bindings) {
|
|
8
8
|
Object.defineProperty(target, WEVU_TEMPLATE_REFS_KEY, {
|
|
@@ -34,6 +34,5 @@ function installTemplateRefs() {
|
|
|
34
34
|
registerRuntimeCapability("templateRefs", templateRefHooks);
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
//#endregion
|
|
38
37
|
export { installTemplateRefs };
|
|
39
38
|
//# sourceMappingURL=templateRefs.mjs.map
|
|
@@ -2,7 +2,7 @@ import { getCurrentMiniProgramGlobalObject, getCurrentMiniProgramRuntimeCapabili
|
|
|
2
2
|
import { getMiniProgramRuntimeGlobalObject, supportsCurrentMiniProgramRuntimeCapability } from "../platform.mjs";
|
|
3
3
|
import { WEVU_CURRENT_SETUP_STATE_KEY, WEVU_HOOKS_KEY } from "@weapp-core/constants";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/runtime/hooks/base.ts
|
|
6
6
|
const currentSetupState = (() => {
|
|
7
7
|
const host = typeof globalThis !== "undefined" ? globalThis : getMiniProgramRuntimeGlobalObject();
|
|
8
8
|
return host ? host[WEVU_CURRENT_SETUP_STATE_KEY] ?? (host[WEVU_CURRENT_SETUP_STATE_KEY] = {}) : {};
|
|
@@ -140,6 +140,5 @@ function callHookReturn(target, name, args = []) {
|
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
|
|
143
|
-
//#endregion
|
|
144
143
|
export { assertInSetup, callHookList, callHookReturn, ensurePageShareMenusOnSetup, ensureSinglePageHookOnInstance, getCurrentInstance, getCurrentSetupContext, pushHook, setCurrentInstance, setCurrentSetupContext };
|
|
145
144
|
//# sourceMappingURL=base.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { callHookList } from "./base.mjs";
|
|
2
2
|
import { WEVU_PAGE_HOOK_BRIDGES_KEY, WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY, WEVU_PAGE_SCROLL_OBSERVERS_KEY } from "@weapp-core/constants";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/runtime/hooks/pageScroll.ts
|
|
5
5
|
function runInPageScrollHook(target, task) {
|
|
6
6
|
const state = target;
|
|
7
7
|
const depth = Number(state[WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY] ?? 0);
|
|
@@ -36,6 +36,5 @@ function ensurePageHookOnInstance(target, name) {
|
|
|
36
36
|
page[name] = bridge;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
//#endregion
|
|
40
39
|
export { callPageScrollHooks, ensurePageHookOnInstance, runInPageScrollHook };
|
|
41
40
|
//# sourceMappingURL=pageScroll.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assertInSetup, ensurePageShareMenusOnSetup, ensureSinglePageHookOnInstance, pushHook } from "./base.mjs";
|
|
2
2
|
import { ensurePageHookOnInstance } from "./pageScroll.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/runtime/hooks/register.ts
|
|
5
5
|
function registerHook(name, handler, options) {
|
|
6
6
|
pushHook(assertInSetup(name), name, handler, options);
|
|
7
7
|
}
|
|
@@ -88,6 +88,5 @@ function onAddToFavorites(handler) {
|
|
|
88
88
|
ensureSinglePageHookOnInstance(instance, "onAddToFavorites");
|
|
89
89
|
}
|
|
90
90
|
|
|
91
|
-
//#endregion
|
|
92
91
|
export { onAddToFavorites, onAttached, onDetached, onError, onHide, onLaunch, onLoad, onMemoryWarning, onMoved, onPageNotFound, onPageScroll, onPullDownRefresh, onReachBottom, onReady, onResize, onRouteDone, onSaveExitState, onShareAppMessage, onShareTimeline, onShow, onTabItemTap, onThemeChange, onUnhandledRejection, onUnload };
|
|
93
92
|
//# sourceMappingURL=register.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { assertInSetup, callHookList, pushHook } from "./base.mjs";
|
|
2
2
|
import { WEVU_ON_BEFORE_UNMOUNT_HOOK, WEVU_ON_BEFORE_UPDATE_HOOK, WEVU_ON_UPDATED_HOOK } from "@weapp-core/constants";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/runtime/hooks/vue.ts
|
|
5
5
|
/**
|
|
6
6
|
* Vue 3 对齐:组件/页面已挂载,映射小程序 onReady
|
|
7
7
|
*/
|
|
@@ -74,6 +74,5 @@ function callUpdateHooks(target, phase) {
|
|
|
74
74
|
callHookList(target, phase === "before" ? WEVU_ON_BEFORE_UPDATE_HOOK : WEVU_ON_UPDATED_HOOK);
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
-
//#endregion
|
|
78
77
|
export { callUpdateHooks, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onServerPrefetch, onUnmounted, onUpdated };
|
|
79
78
|
//# sourceMappingURL=vue.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/inlineDataset.ts
|
|
2
2
|
const AMP_RE = /&/g;
|
|
3
3
|
const QUOT_RE = /"/g;
|
|
4
4
|
const NUM_QUOT_RE = /"/g;
|
|
@@ -69,6 +69,5 @@ function resolveDatasetIndex(value) {
|
|
|
69
69
|
return normalizeDatasetIndex(value);
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
//#endregion
|
|
73
72
|
export { decodeWxmlEntities, resolveDatasetEventValue, resolveDatasetIndex };
|
|
74
73
|
//# sourceMappingURL=inlineDataset.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/internal.ts
|
|
2
2
|
function setComputedValue(setters, key, value) {
|
|
3
3
|
const setter = setters[key];
|
|
4
4
|
if (!setter) throw new Error(`计算属性 "${key}" 是只读的`);
|
|
@@ -13,6 +13,5 @@ function parseModelEventValue(event) {
|
|
|
13
13
|
return event;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { parseModelEventValue, setComputedValue };
|
|
18
17
|
//# sourceMappingURL=internal.mjs.map
|
|
@@ -3,7 +3,7 @@ import { supportsCurrentMiniProgramRuntimeCapability } from "./platform.mjs";
|
|
|
3
3
|
import { getCurrentInstance } from "./hooks/base.mjs";
|
|
4
4
|
import { onDetached, onUnload } from "./hooks/register.mjs";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/runtime/intersectionObserver.ts
|
|
7
7
|
function createObserverFromInstance(instance, options) {
|
|
8
8
|
const nativeInstance = instance;
|
|
9
9
|
const creator = nativeInstance.createIntersectionObserver;
|
|
@@ -41,6 +41,5 @@ function useIntersectionObserver(options = {}) {
|
|
|
41
41
|
return observer;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
//#endregion
|
|
45
44
|
export { useIntersectionObserver };
|
|
46
45
|
//# sourceMappingURL=intersectionObserver.mjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WEVU_JSX_ISLAND_HANDLER_MAP_KEY } from "@weapp-core/constants";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
// src/runtime/jsxIsland.ts
|
|
4
4
|
const Fragment = Symbol.for("wevu.jsx.fragment");
|
|
5
5
|
function createVNode(type, props, children) {
|
|
6
6
|
return {
|
|
@@ -159,6 +159,5 @@ function runJsxIslandHandler(target, event) {
|
|
|
159
159
|
return typeof handler === "function" ? handler.call(runtime?.proxy ?? target, event) : void 0;
|
|
160
160
|
}
|
|
161
161
|
|
|
162
|
-
//#endregion
|
|
163
162
|
export { Fragment, createTextVNode, createVNode, isVNode, mergeProps, normalizeJsxIsland, resolveComponent, resolveDirective, runJsxIslandHandler, transformOn, vModelCheckbox, vModelRadio, vModelSelect, vModelText, vShow, withDirectives };
|
|
164
163
|
//# sourceMappingURL=jsxIsland.mjs.map
|
|
@@ -5,7 +5,7 @@ import { onAttached, onDetached } from "./hooks/register.mjs";
|
|
|
5
5
|
import { getTemplateRefMap } from "./templateRefs/helpers.mjs";
|
|
6
6
|
import { WEVU_LAYOUT_BRIDGE_PAGE_KEYS, WEVU_NATIVE_INSTANCE_KEY, WEVU_PUBLIC_RUNTIME_KEY } from "@weapp-core/constants";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/runtime/layoutBridge.ts
|
|
9
9
|
/**
|
|
10
10
|
* @description 对 layout host key 去重并过滤空字符串。
|
|
11
11
|
*/
|
|
@@ -268,6 +268,5 @@ function useLayoutHosts(hosts) {
|
|
|
268
268
|
} });
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
//#endregion
|
|
272
271
|
export { registerPageLayoutBridge, registerRuntimeLayoutHosts, resolveLayoutBridge, resolveLayoutHost, unregisterPageLayoutBridge, unregisterRuntimeLayoutHosts, useLayoutBridge, useLayoutHosts, waitForLayoutHost };
|
|
273
272
|
//# sourceMappingURL=layoutBridge.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/layoutComponentMatcher.ts
|
|
2
2
|
const DEFAULT_LAYOUT_COMPONENT_PATH_PREFIX = "layouts/";
|
|
3
3
|
let runtimeLayoutComponentMatcher = (componentPath) => componentPath.startsWith(DEFAULT_LAYOUT_COMPONENT_PATH_PREFIX);
|
|
4
4
|
function isRuntimeLayoutComponentTarget(target) {
|
|
@@ -6,6 +6,5 @@ function isRuntimeLayoutComponentTarget(target) {
|
|
|
6
6
|
return typeof componentPath === "string" && runtimeLayoutComponentMatcher(componentPath, target);
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
//#endregion
|
|
10
9
|
export { isRuntimeLayoutComponentTarget };
|
|
11
10
|
//# sourceMappingURL=layoutComponentMatcher.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/nativeBridge.ts
|
|
2
2
|
const NATIVE_BRIDGE_MARKER = "__wevu_native_bridge__";
|
|
3
3
|
function markNativeBridgeMethod(method) {
|
|
4
4
|
try {
|
|
@@ -16,6 +16,5 @@ function isNativeBridgeMethod(method) {
|
|
|
16
16
|
return typeof method === "function" && Boolean(method[NATIVE_BRIDGE_MARKER]);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
//#endregion
|
|
20
19
|
export { isNativeBridgeMethod, markNativeBridgeMethod };
|
|
21
20
|
//# sourceMappingURL=nativeBridge.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/navigationLifecycle.ts
|
|
2
2
|
let initialNavigationLifecycle;
|
|
3
3
|
/**
|
|
4
4
|
* 路由器注册首航任务时接入生命周期,基础组件不直接依赖导航状态机。
|
|
@@ -19,6 +19,5 @@ function cancelInitialNavigation(instance) {
|
|
|
19
19
|
initialNavigationLifecycle?.cancel(instance);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
//#endregion
|
|
23
22
|
export { cancelInitialNavigation, ensureInitialNavigation, registerInitialNavigationLifecycle };
|
|
24
23
|
//# sourceMappingURL=navigationLifecycle.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/noSetData.ts
|
|
2
2
|
const NO_SETDATA = Symbol("wevu.noSetData");
|
|
3
3
|
function markNoSetData(value) {
|
|
4
4
|
Object.defineProperty(value, NO_SETDATA, {
|
|
@@ -13,6 +13,5 @@ function isNoSetData(value) {
|
|
|
13
13
|
return typeof value === "object" && value !== null && value[NO_SETDATA] === true;
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { isNoSetData, markNoSetData };
|
|
18
17
|
//# sourceMappingURL=noSetData.mjs.map
|
|
@@ -5,7 +5,7 @@ import { getCurrentMiniProgramPages } from "./platform.mjs";
|
|
|
5
5
|
import { getCurrentSetupContext } from "./hooks/base.mjs";
|
|
6
6
|
import { onAttached, onShow } from "./hooks/register.mjs";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/runtime/pageEnvironment.ts
|
|
9
9
|
function normalizeRoute(route) {
|
|
10
10
|
return route ? route.split("?")[0]?.replace(/^\/+/, "") ?? "" : "";
|
|
11
11
|
}
|
|
@@ -92,6 +92,5 @@ function useNavigationBarMetrics(options = {}) {
|
|
|
92
92
|
};
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
//#endregion
|
|
96
95
|
export { getCurrentPageStackSnapshot, getNavigationBarMetrics, useNavigationBarMetrics, usePageStack };
|
|
97
96
|
//# sourceMappingURL=pageEnvironment.mjs.map
|
|
@@ -5,7 +5,7 @@ import { getCurrentInstance, getCurrentSetupContext } from "./hooks/base.mjs";
|
|
|
5
5
|
import { getCurrentPageInstance } from "./register/component/lifecycle/platform.mjs";
|
|
6
6
|
import { WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_NONE, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY } from "@weapp-core/constants";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/runtime/pageLayout.ts
|
|
9
9
|
function resolveCurrentPageInstance() {
|
|
10
10
|
const runtimeCurrentPage = getCurrentPageInstance();
|
|
11
11
|
if (runtimeCurrentPage) return runtimeCurrentPage;
|
|
@@ -62,6 +62,5 @@ function resolveRuntimePageLayoutName(layout) {
|
|
|
62
62
|
return layout === false ? WEVU_PAGE_LAYOUT_NONE : layout;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
//#endregion
|
|
66
65
|
export { resolveRuntimePageLayoutName, setPageLayout, syncRuntimePageLayoutState, syncRuntimePageLayoutStateFromRuntime, usePageLayout };
|
|
67
66
|
//# sourceMappingURL=pageLayout.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getCurrentInstance } from "./hooks/base.mjs";
|
|
2
2
|
import { onDetached, onPageScroll, onUnload } from "./hooks/register.mjs";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/runtime/pageScroll.ts
|
|
5
5
|
function resolvePositiveInterval(interval) {
|
|
6
6
|
if (typeof interval !== "number" || !Number.isFinite(interval)) return 80;
|
|
7
7
|
return Math.max(0, interval);
|
|
@@ -104,6 +104,5 @@ function usePageScrollThrottle(handler, options = {}) {
|
|
|
104
104
|
return stop;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
//#endregion
|
|
108
107
|
export { usePageScrollThrottle };
|
|
109
108
|
//# sourceMappingURL=pageScroll.mjs.map
|
|
@@ -2,11 +2,10 @@ import { getAlipayGlobalObject, getBaiduGlobalObject, getDouyinCompatibleGlobalO
|
|
|
2
2
|
import { getDetectedMiniProgramRuntimeCapabilities, getMiniProgramGlobalObject, resolveDetectedMiniProgramPlatform } from "./generic.mjs";
|
|
3
3
|
import { ALIPAY_RUNTIME_DESCRIPTOR, DEFAULT_RUNTIME_CAPABILITIES, TT_RUNTIME_DESCRIPTOR } from "@weapp-core/shared/platforms/runtime";
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
// src/runtime/platform/current.ts
|
|
6
6
|
const getCurrentMiniProgramGlobalObject = import.meta.env?.PLATFORM === "weapp" || import.meta.env?.PLATFORM === "web" ? getWechatGlobalObject : import.meta.env?.PLATFORM === "alipay" ? getAlipayGlobalObject : import.meta.env?.PLATFORM === "tt" ? getDouyinCompatibleGlobalObject : import.meta.env?.PLATFORM === "swan" ? getBaiduGlobalObject : import.meta.env?.PLATFORM === "jd" ? getJdGlobalObject : import.meta.env?.PLATFORM === "xhs" ? getXhsGlobalObject : getMiniProgramGlobalObject;
|
|
7
7
|
const resolveCurrentMiniProgramPlatform = import.meta.env?.PLATFORM === "weapp" || import.meta.env?.PLATFORM === "web" ? () => "weapp" : import.meta.env?.PLATFORM === "alipay" ? () => "alipay" : import.meta.env?.PLATFORM === "tt" ? () => "tt" : import.meta.env?.PLATFORM === "swan" ? () => "swan" : import.meta.env?.PLATFORM === "jd" ? () => "jd" : import.meta.env?.PLATFORM === "xhs" ? () => "xhs" : resolveDetectedMiniProgramPlatform;
|
|
8
8
|
const getCurrentMiniProgramRuntimeCapabilities = import.meta.env?.PLATFORM === "alipay" ? () => ALIPAY_RUNTIME_DESCRIPTOR.runtime.capabilities : import.meta.env?.PLATFORM === "tt" ? () => TT_RUNTIME_DESCRIPTOR.runtime.capabilities : import.meta.env?.PLATFORM === "weapp" || import.meta.env?.PLATFORM === "swan" || import.meta.env?.PLATFORM === "jd" || import.meta.env?.PLATFORM === "xhs" || import.meta.env?.PLATFORM === "web" ? () => DEFAULT_RUNTIME_CAPABILITIES : getDetectedMiniProgramRuntimeCapabilities;
|
|
9
9
|
|
|
10
|
-
//#endregion
|
|
11
10
|
export { getCurrentMiniProgramGlobalObject, getCurrentMiniProgramRuntimeCapabilities, resolveCurrentMiniProgramPlatform };
|
|
12
11
|
//# sourceMappingURL=current.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getAlipayGlobalObject, getBaiduGlobalObject, getDouyinGlobalObject, getJdGlobalObject, getWechatGlobalObject, getXhsGlobalObject } from "./globals.mjs";
|
|
2
2
|
import { getMiniProgramPlatformByRuntimeGlobalKey, getMiniProgramRuntimeCapabilities, getMiniProgramRuntimeGlobalKey, getMiniProgramRuntimeGlobalKeys, resolveMiniProgramPlatform } from "@weapp-core/shared/platforms/runtime";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/runtime/platform/generic.ts
|
|
5
5
|
function resolveRuntimeGlobalObject(globalKey) {
|
|
6
6
|
switch (globalKey) {
|
|
7
7
|
case "wx": return getWechatGlobalObject();
|
|
@@ -31,6 +31,5 @@ function getMiniProgramGlobalObject(platformInput) {
|
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
//#endregion
|
|
35
34
|
export { getDetectedMiniProgramRuntimeCapabilities, getMiniProgramGlobalObject, resolveDetectedMiniProgramPlatform };
|
|
36
35
|
//# sourceMappingURL=generic.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/platform/globals.ts
|
|
2
2
|
function getGlobalRuntime() {
|
|
3
3
|
return typeof globalThis === "undefined" ? void 0 : globalThis;
|
|
4
4
|
}
|
|
@@ -24,6 +24,5 @@ function getDouyinCompatibleGlobalObject() {
|
|
|
24
24
|
return getDouyinGlobalObject() ?? getWechatGlobalObject();
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
//#endregion
|
|
28
27
|
export { getAlipayGlobalObject, getBaiduGlobalObject, getDouyinCompatibleGlobalObject, getDouyinGlobalObject, getGlobalRuntime, getJdGlobalObject, getWechatGlobalObject, getXhsGlobalObject };
|
|
29
28
|
//# sourceMappingURL=globals.mjs.map
|
|
@@ -3,7 +3,7 @@ import { getMiniProgramGlobalObject } from "./platform/generic.mjs";
|
|
|
3
3
|
import { getCurrentMiniProgramGlobalObject, getCurrentMiniProgramRuntimeCapabilities, resolveCurrentMiniProgramPlatform } from "./platform/current.mjs";
|
|
4
4
|
import { DEFAULT_RUNTIME_HOST_CONFIG_KEY } from "@weapp-core/shared/platforms/runtime";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/runtime/platform.ts
|
|
7
7
|
const MINI_PROGRAM_GLOBAL_ROUTER_METHODS = [
|
|
8
8
|
"switchTab",
|
|
9
9
|
"reLaunch",
|
|
@@ -69,6 +69,5 @@ function getScopedSlotHostGlobalObject() {
|
|
|
69
69
|
return getCurrentMiniProgramGlobalObject() ?? getGlobalRuntime();
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
-
//#endregion
|
|
73
72
|
export { getCurrentMiniProgramGlobalObject, getCurrentMiniProgramGlobalRouter, getCurrentMiniProgramHostConfig, getCurrentMiniProgramPages, getCurrentMiniProgramRuntimeCapabilities, getCurrentMiniProgramTabBarPagePaths, getMiniProgramRuntimeConsoleWarn, getMiniProgramRuntimeGlobalObject, getScopedSlotHostGlobalObject, resolveCurrentMiniProgramPlatform, supportsCurrentMiniProgramRuntimeCapability };
|
|
74
73
|
//# sourceMappingURL=platform.mjs.map
|
|
@@ -3,7 +3,7 @@ import { getCurrentInstance } from "./hooks/base.mjs";
|
|
|
3
3
|
import { getGlobalProvidedValue, hasGlobalProvidedValue, setGlobalProvidedValue } from "./provideStore.mjs";
|
|
4
4
|
import { getInstanceProvides, isRuntimeAppInstance } from "./provideContext.mjs";
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
// src/runtime/provide.ts
|
|
7
7
|
/**
|
|
8
8
|
* 判断当前是否存在可用的注入上下文。
|
|
9
9
|
*
|
|
@@ -66,6 +66,5 @@ function injectGlobal(key, defaultValue) {
|
|
|
66
66
|
throw new Error(`injectGlobal():未找到对应 key 的 provider:${String(key)}`);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
//#endregion
|
|
70
69
|
export { hasInjectionContext, inject, injectGlobal, provide, provideGlobal, setGlobalProvidedValue };
|
|
71
70
|
//# sourceMappingURL=provide.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { setGlobalProvidedValue } from "./provideStore.mjs";
|
|
2
2
|
import { WEVU_APP_PROVIDES_KEY, WEVU_IS_APP_INSTANCE_KEY, WEVU_PARENT_INSTANCE_KEY, WEVU_PROVIDES_KEY, WEVU_RUNTIME_APP_KEY } from "@weapp-core/constants";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/runtime/provideContext.ts
|
|
5
5
|
function isRuntimeAppInstance(instance) {
|
|
6
6
|
return Boolean(instance && typeof instance === "object" && instance[WEVU_IS_APP_INSTANCE_KEY] === true);
|
|
7
7
|
}
|
|
@@ -94,6 +94,5 @@ function attachRuntimeLayoutProvideContext(layoutInstance, pageInstance) {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
//#endregion
|
|
98
97
|
export { attachInstanceProvides, attachRuntimeLayoutProvideContext, attachRuntimeProvideContext, ensureRuntimeAppProvides, getInstanceProvides, isRuntimeAppInstance, setRuntimeAppProvidedValue };
|
|
99
98
|
//# sourceMappingURL=provideContext.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/provideStore.ts
|
|
2
2
|
const wevuGlobalProvideStore = /* @__PURE__ */ new Map();
|
|
3
3
|
/**
|
|
4
4
|
* 写入全局 provide 存储,供运行时内部与兼容层复用。
|
|
@@ -13,6 +13,5 @@ function getGlobalProvidedValue(key) {
|
|
|
13
13
|
return wevuGlobalProvideStore.get(key);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
//#endregion
|
|
17
16
|
export { getGlobalProvidedValue, hasGlobalProvidedValue, setGlobalProvidedValue };
|
|
18
17
|
//# sourceMappingURL=provideStore.mjs.map
|
|
@@ -13,7 +13,7 @@ import { createWevuScopedSlotComponent as createWevuScopedSlotComponent$1, insta
|
|
|
13
13
|
import { installSetDataHighFrequencyWarning } from "./features/setDataHighFrequencyWarning.mjs";
|
|
14
14
|
import { WEVU_INLINE_MAP_KEY, WEVU_SCOPED_SLOT_OWNER_REQUIRED_KEY, WEVU_SLOT_OWNER_ID_KEY } from "@weapp-core/constants";
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
// src/runtime/publicRuntime.ts
|
|
17
17
|
function installPublicOptionCapabilities() {
|
|
18
18
|
installPatchStrategy();
|
|
19
19
|
installSetDataHighFrequencyWarning();
|
|
@@ -90,6 +90,5 @@ function createWevuScopedSlotComponent(overrides) {
|
|
|
90
90
|
createWevuScopedSlotComponent$1(overrides);
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
//#endregion
|
|
94
93
|
export { createApp, createWevuComponent, createWevuScopedSlotComponent, defineComponent, mountRuntimeInstance, registerApp, registerComponent, setWevuDefaults };
|
|
95
94
|
//# sourceMappingURL=publicRuntime.mjs.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { onPullDownRefresh } from "./hooks/register.mjs";
|
|
2
2
|
import { wpi } from "@wevu/api";
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// src/runtime/pullDownRefresh.ts
|
|
5
5
|
/**
|
|
6
6
|
* 注册下拉刷新回调,并在回调结束后自动停止宿主下拉刷新状态。
|
|
7
7
|
*/
|
|
@@ -17,6 +17,5 @@ function useAsyncPullDownRefresh(refresh, options = {}) {
|
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
//#endregion
|
|
21
20
|
export { useAsyncPullDownRefresh };
|
|
22
21
|
//# sourceMappingURL=pullDownRefresh.mjs.map
|
|
@@ -5,7 +5,7 @@ import { requireRuntimeCapability } from "../capabilities.mjs";
|
|
|
5
5
|
import { mountRuntimeInstance } from "./runtimeInstance.mjs";
|
|
6
6
|
import { WEVU_HOOKS_KEY, WEVU_INLINE_HANDLER, WEVU_INLINE_MAP_KEY, WEVU_IS_APP_INSTANCE_KEY } from "@weapp-core/constants";
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
// src/runtime/register/app.ts
|
|
9
9
|
const APP_GLOBAL_LISTENER_STORE_KEY = "__wevuAppGlobalListeners";
|
|
10
10
|
const MEMORY_WARNING_LISTENER_KEY = "__wevuOnMemoryWarningListener";
|
|
11
11
|
function bindMemoryWarningListener(target) {
|
|
@@ -152,6 +152,5 @@ function registerApp(runtimeApp, methods, watch, setup, mpOptions) {
|
|
|
152
152
|
App(appOptions);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
|
-
//#endregion
|
|
156
155
|
export { registerApp };
|
|
157
156
|
//# sourceMappingURL=app.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/runtime/register/component/alipay.ts
|
|
2
2
|
/** 支付宝通过函数属性派发自定义事件,补齐模板分派器需要的事件与数据集。 */
|
|
3
3
|
function triggerAlipayEvent(eventName, detail) {
|
|
4
4
|
const callbackName = `on${eventName.replace(/(^|-)([a-z0-9])/g, (_match, _separator, character) => character.toUpperCase())}`;
|
|
@@ -58,6 +58,5 @@ function createAlipayComponentDefinition(definition) {
|
|
|
58
58
|
};
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
//#endregion
|
|
62
61
|
export { createAlipayComponentDefinition };
|
|
63
62
|
//# sourceMappingURL=alipay.mjs.map
|