wevu 6.18.4 → 6.18.6
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/dev/index.mjs +2 -2
- package/dist/dev/internal-runtime.mjs +2 -2
- package/dist/dev/{router-BD-ovqV2.mjs → router-DjGhTM7A.mjs} +67 -65
- package/dist/dev/router-DjGhTM7A.mjs.map +1 -0
- package/dist/dev/router.mjs +6 -2
- package/dist/dev/router.mjs.map +1 -1
- package/dist/dev/{templateRef-B_-lGq8J.mjs → templateRef-Dyo45y5v.mjs} +9 -7
- package/dist/dev/templateRef-Dyo45y5v.mjs.map +1 -0
- package/dist/dev/vue-demi.mjs +2 -2
- package/dist/index.mjs +1 -1
- package/dist/internal-runtime.mjs +1 -1
- package/dist/{router-DLOOLAqv.mjs → router-DJOmKqXb.mjs} +1 -1
- package/dist/router.mjs +1 -1
- package/dist/templateRef-L_qeTIeS.mjs +1 -0
- package/dist/vue-demi.mjs +1 -1
- package/package.json +6 -6
- package/dist/dev/router-BD-ovqV2.mjs.map +0 -1
- package/dist/dev/templateRef-B_-lGq8J.mjs.map +0 -1
- package/dist/templateRef-D1Cxr-BL.mjs +0 -1
|
@@ -2,7 +2,7 @@ import { f as shallowReactive, l as shallowRef, m as queueJob, p as nextTick, t
|
|
|
2
2
|
import { A as removeMutationRecorder, B as trigger, M as effect, N as effectScope, R as stop, a as toValue, d as reactive, i as ref, k as addMutationRecorder, l as isReactive, n as isRef, o as unref, r as markAsRef, s as getReactiveVersion, t as customRef, v as toRaw, z as track } from "./ref-DRZC3Kc5.mjs";
|
|
3
3
|
import { i as touchReactive, n as clearPatchIndices, r as prelinkReactiveTree, t as computed } from "./computed-BxRsUJgi.mjs";
|
|
4
4
|
import { _ as getScopedSlotHostGlobalObject, c as getCurrentSetupContext, d as setCurrentSetupContext, g as getMiniProgramGlobalObject, h as getCurrentMiniProgramRuntimeCapabilities, l as pushHook, m as getCurrentMiniProgramPages, n as callHookList, p as getCurrentMiniProgramHostConfig, r as callHookReturn, s as getCurrentInstance, t as assertInSetup, u as setCurrentInstance, v as supportsCurrentMiniProgramRuntimeCapability, x as readonly } from "./base-CYkvI7w8.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { A as attachRuntimeLayoutProvideContext, C as bindCurrentPageInstance, D as releaseCurrentPageInstance, E as getCurrentPageInstance, G as onPageScroll, I as onAttached, K as onPullDownRefresh, L as onDetached, M as ensureRuntimeAppProvides, N as setRuntimeAppProvidedValue, O as resolvePageOptions, T as ensurePageShareMenus, et as onShow, it as onUnload, j as attachRuntimeProvideContext, k as runInPageScrollHook, w as ensureMiniProgramGlobalPatched, x as notifyRouteStateSync } from "./router-DjGhTM7A.mjs";
|
|
6
6
|
import { WEAPP_VITE_STATEFUL_HMR_BRIDGE_KEY, WEVU_ATTRS_KEY, WEVU_EFFECT_SCOPE_KEY, WEVU_EXPOSED_KEY, WEVU_FUNCTION_PROP_PATHS_KEY, WEVU_HOOKS_KEY, WEVU_INLINE_HANDLER, WEVU_INLINE_MAP_KEY, WEVU_IS_APP_INSTANCE_KEY, WEVU_LAYOUT_BRIDGE_PAGE_KEYS, WEVU_LAYOUT_HOST_BRIDGE_KEY, WEVU_MODEL_HANDLER, WEVU_NATIVE_INSTANCE_KEY, WEVU_ON_BEFORE_UPDATE_HOOK, WEVU_ON_LOAD_CALLED_KEY, WEVU_ON_UPDATED_HOOK, WEVU_OWNER_HANDLER, WEVU_PAGE_LAYOUT_NAME_KEY, WEVU_PAGE_LAYOUT_NONE, WEVU_PAGE_LAYOUT_PROPS_KEY, WEVU_PAGE_LAYOUT_SETTER_KEY, WEVU_PAGE_SCROLL_HOOK_DEPTH_KEY, WEVU_PARENT_INSTANCE_KEY, WEVU_PENDING_PROP_VALUES_KEY, WEVU_PROPS_ALIASES_KEY, WEVU_PROPS_DERIVED_KEYS_KEY, WEVU_PROPS_KEY, WEVU_PROP_KEYS_KEY, WEVU_PUBLIC_RUNTIME_KEY, WEVU_READY_CALLED_KEY, WEVU_RESERVED_METHOD_PREFIX, WEVU_ROUTE_DONE_CALLED_KEY, WEVU_ROUTE_DONE_IN_TICK_KEY, WEVU_RUNTIME_APP_KEY, WEVU_RUNTIME_KEY, WEVU_SCOPED_SLOT_CREATOR_KEY, WEVU_SCOPED_SLOT_OWNER_SEED_KEY, WEVU_SCOPED_SLOT_OWNER_STORE_KEY, WEVU_SETUP_CONTEXT_INSTANCE_KEY, WEVU_SETUP_STATE_KEY, WEVU_SLOT_NAMES_PROP, WEVU_SLOT_OWNER_ID_KEY, WEVU_SLOT_OWNER_ID_PROP, WEVU_SLOT_OWNER_KEY, WEVU_SLOT_OWNER_PROXY_KEY, WEVU_SLOT_PROPS_DATA_KEY, WEVU_SLOT_PROPS_KEY, WEVU_SLOT_SCOPE_KEY, WEVU_TEMPLATE_REFS_CALLBACKS_KEY, WEVU_TEMPLATE_REFS_KEY, WEVU_TEMPLATE_REFS_PENDING_KEY, WEVU_TEMPLATE_REF_MAP_KEY, WEVU_WATCH_STOPS_KEY } from "@weapp-core/constants";
|
|
7
7
|
import { wpi } from "@wevu/api";
|
|
8
8
|
|
|
@@ -83,7 +83,7 @@ function callUpdateHooks(target, phase) {
|
|
|
83
83
|
|
|
84
84
|
//#endregion
|
|
85
85
|
//#region package.json
|
|
86
|
-
var version$1 = "6.18.
|
|
86
|
+
var version$1 = "6.18.6";
|
|
87
87
|
|
|
88
88
|
//#endregion
|
|
89
89
|
//#region src/version.ts
|
|
@@ -3494,7 +3494,7 @@ function refreshRuntimeInstance(target, runtimeApp, watchMap, setup, options) {
|
|
|
3494
3494
|
if (!previousRuntime || previousRuntime === nextRuntime) return nextRuntime;
|
|
3495
3495
|
return preserveRuntimeFacadeIdentity(target, previousRuntime, nextRuntime);
|
|
3496
3496
|
}
|
|
3497
|
-
function syncRuntimeStateFromNativeData(target) {
|
|
3497
|
+
function syncRuntimeStateFromNativeData(target, options) {
|
|
3498
3498
|
const runtime = target.__wevu;
|
|
3499
3499
|
const runtimeState = runtime === null || runtime === void 0 ? void 0 : runtime.state;
|
|
3500
3500
|
const setupState = runtime === null || runtime === void 0 ? void 0 : runtime.setupState;
|
|
@@ -3504,6 +3504,7 @@ function syncRuntimeStateFromNativeData(target) {
|
|
|
3504
3504
|
if (!key || key === "undefined") continue;
|
|
3505
3505
|
if (Object.prototype.hasOwnProperty.call(runtimeState, key)) try {
|
|
3506
3506
|
const setupBinding = setupState === null || setupState === void 0 ? void 0 : setupState[key];
|
|
3507
|
+
if (!(options === null || options === void 0 ? void 0 : options.includeSetupState) && setupState && Object.prototype.hasOwnProperty.call(setupState, key)) continue;
|
|
3507
3508
|
if (isRef(setupBinding)) {
|
|
3508
3509
|
setupBinding.value = value;
|
|
3509
3510
|
continue;
|
|
@@ -3512,10 +3513,10 @@ function syncRuntimeStateFromNativeData(target) {
|
|
|
3512
3513
|
} catch (_unused5) {}
|
|
3513
3514
|
}
|
|
3514
3515
|
}
|
|
3515
|
-
function enableDeferredSetData(target) {
|
|
3516
|
+
function enableDeferredSetData(target, options) {
|
|
3516
3517
|
var _wevu, _wevu2, _wevu2$__wevu_flushSe;
|
|
3517
3518
|
const adapter = (_wevu = target.__wevu) === null || _wevu === void 0 ? void 0 : _wevu.adapter;
|
|
3518
|
-
syncRuntimeStateFromNativeData(target);
|
|
3519
|
+
syncRuntimeStateFromNativeData(target, { includeSetupState: options === null || options === void 0 ? void 0 : options.rehydrateSetupState });
|
|
3519
3520
|
if (adapter && typeof adapter.__wevu_enableSetData === "function") adapter.__wevu_enableSetData(true);
|
|
3520
3521
|
(_wevu2 = target.__wevu) === null || _wevu2 === void 0 || (_wevu2$__wevu_flushSe = _wevu2.__wevu_flushSetupSnapshotSync) === null || _wevu2$__wevu_flushSe === void 0 || _wevu2$__wevu_flushSe.call(_wevu2);
|
|
3521
3522
|
}
|
|
@@ -3841,6 +3842,7 @@ function createPageLifecycleHooks(options) {
|
|
|
3841
3842
|
this[WEVU_ROUTE_DONE_CALLED_KEY] = false;
|
|
3842
3843
|
}
|
|
3843
3844
|
setRuntimeSetDataVisibility(this, true);
|
|
3845
|
+
if (isPage) notifyRouteStateSync({ page: this });
|
|
3844
3846
|
callHookList(this, "onShow", args);
|
|
3845
3847
|
if (typeof userOnShow === "function") return userOnShow.apply(this, args);
|
|
3846
3848
|
},
|
|
@@ -4839,7 +4841,7 @@ function registerComponentDefinition(options) {
|
|
|
4839
4841
|
syncWevuPropsFromInstance(instance);
|
|
4840
4842
|
attachPageLayoutSetter(instance);
|
|
4841
4843
|
attachRuntimeLayoutHosts(instance);
|
|
4842
|
-
enableDeferredSetData(instance);
|
|
4844
|
+
enableDeferredSetData(instance, { rehydrateSetupState: true });
|
|
4843
4845
|
});
|
|
4844
4846
|
if (!statefulHmrBridge.isApplying()) Component(definition);
|
|
4845
4847
|
} else Component(componentDefinition);
|
|
@@ -6431,4 +6433,4 @@ function useTemplateRef(name) {
|
|
|
6431
6433
|
|
|
6432
6434
|
//#endregion
|
|
6433
6435
|
export { version as $, registerPageLayoutBridge as A, mountRuntimeInstance as B, useElementIntersectionObserver as C, defineComponent as D, createWevuScopedSlotComponent as E, unregisterRuntimeLayoutHosts as F, setPageLayout as G, teardownRuntimeInstance as H, useLayoutBridge as I, usePageLayout as J, syncRuntimePageLayoutState as K, useLayoutHosts as L, resolveLayoutBridge as M, resolveLayoutHost as N, createApp as O, unregisterPageLayoutBridge as P, markNoSetData as Q, waitForLayoutHost as R, useIntersectionObserver as S, createWevuComponent as T, runSetupFunction as U, setRuntimeSetDataVisibility as V, resolveRuntimePageLayoutName as W, setWevuDefaults as X, resetWevuDefaults as Y, isNoSetData as Z, usePageScrollThrottle as _, useModel as a, onDeactivated as at, useNavigationBarMetrics as b, useSlots as c, onServerPrefetch as ct, useUpdatePerformanceListener as d, callUpdateHooks as et, useBoundingClientRect as f, useAsyncPullDownRefresh as g, useSelectorQuery as h, useChangeModel as i, onBeforeUpdate as it, registerRuntimeLayoutHosts as j, registerComponent as k, defineAppSetup as l, onUnmounted as lt, useSelectorFields as m, mergeModels as n, onBeforeMount as nt, useAttrs as o, onErrorCaptured as ot, useScrollOffset as p, syncRuntimePageLayoutStateFromRuntime as q, useBindModel as r, onBeforeUnmount as rt, useNativeInstance as s, onMounted as st, useTemplateRef as t, onActivated as tt, use as u, onUpdated as ut, getCurrentPageStackSnapshot as v, useDisposables as w, usePageStack as x, getNavigationBarMetrics as y, registerApp as z };
|
|
6434
|
-
//# sourceMappingURL=templateRef-
|
|
6436
|
+
//# sourceMappingURL=templateRef-Dyo45y5v.mjs.map
|