wevu 6.16.21 → 6.16.22

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.
@@ -1,4 +1,4 @@
1
- import { $ as setWevuDefaults, A as defineComponent, B as useLayoutHosts, C as useNavigationBarMetrics, Ct as isShallowRef, D as useDisposables, E as useElementIntersectionObserver, F as resolveLayoutBridge, G as teardownRuntimeInstance, H as registerApp, I as resolveLayoutHost, J as setPageLayout, K as runSetupFunction, L as unregisterPageLayoutBridge, M as registerComponent, N as registerPageLayoutBridge, O as createWevuComponent, P as registerRuntimeLayoutHosts, Q as resetWevuDefaults, R as unregisterRuntimeLayoutHosts, S as getNavigationBarMetrics, St as toRefs, T as useIntersectionObserver, Tt as triggerRef, U as mountRuntimeInstance, V as waitForLayoutHost, W as setRuntimeSetDataVisibility, X as syncRuntimePageLayoutStateFromRuntime, Y as syncRuntimePageLayoutState, Z as usePageLayout, _ as useSelectorFields, _t as onServerPrefetch, a as useModel, at as watchPostEffect, b as usePageScrollThrottle, bt as traverse, c as useSlots, ct as setDeepWatchStrategy, d as useUpdatePerformanceListener, dt as onBeforeMount, et as isNoSetData, f as normalizeClass, ft as onBeforeUnmount, g as useScrollOffset, gt as onMounted, h as useBoundingClientRect, ht as onErrorCaptured, i as useChangeModel, it as watchEffect, j as createApp, k as createWevuScopedSlotComponent, l as defineAppSetup, lt as callUpdateHooks, m as resolvePropValue, mt as onDeactivated, n as mergeModels, nt as version, o as useAttrs, ot as watchSyncEffect, p as normalizeStyle, pt as onBeforeUpdate, q as resolveRuntimePageLayoutName, r as useBindModel, rt as watch, s as useNativeInstance, st as getDeepWatchStrategy, t as useTemplateRef, tt as markNoSetData, u as use, ut as onActivated, v as useSelectorQuery, vt as onUnmounted, w as usePageStack, wt as shallowRef, x as getCurrentPageStackSnapshot, xt as toRef, y as useAsyncPullDownRefresh, yt as onUpdated, z as useLayoutBridge } from "./src-DzpEFK_c.mjs";
1
+ import { $ as setWevuDefaults, A as defineComponent, B as useLayoutHosts, C as useNavigationBarMetrics, Ct as isShallowRef, D as useDisposables, E as useElementIntersectionObserver, F as resolveLayoutBridge, G as teardownRuntimeInstance, H as registerApp, I as resolveLayoutHost, J as setPageLayout, K as runSetupFunction, L as unregisterPageLayoutBridge, M as registerComponent, N as registerPageLayoutBridge, O as createWevuComponent, P as registerRuntimeLayoutHosts, Q as resetWevuDefaults, R as unregisterRuntimeLayoutHosts, S as getNavigationBarMetrics, St as toRefs, T as useIntersectionObserver, Tt as triggerRef, U as mountRuntimeInstance, V as waitForLayoutHost, W as setRuntimeSetDataVisibility, X as syncRuntimePageLayoutStateFromRuntime, Y as syncRuntimePageLayoutState, Z as usePageLayout, _ as useSelectorFields, _t as onServerPrefetch, a as useModel, at as watchPostEffect, b as usePageScrollThrottle, bt as traverse, c as useSlots, ct as setDeepWatchStrategy, d as useUpdatePerformanceListener, dt as onBeforeMount, et as isNoSetData, f as normalizeClass, ft as onBeforeUnmount, g as useScrollOffset, gt as onMounted, h as useBoundingClientRect, ht as onErrorCaptured, i as useChangeModel, it as watchEffect, j as createApp, k as createWevuScopedSlotComponent, l as defineAppSetup, lt as callUpdateHooks, m as resolvePropValue, mt as onDeactivated, n as mergeModels, nt as version, o as useAttrs, ot as watchSyncEffect, p as normalizeStyle, pt as onBeforeUpdate, q as resolveRuntimePageLayoutName, r as useBindModel, rt as watch, s as useNativeInstance, st as getDeepWatchStrategy, t as useTemplateRef, tt as markNoSetData, u as use, ut as onActivated, v as useSelectorQuery, vt as onUnmounted, w as usePageStack, wt as shallowRef, x as getCurrentPageStackSnapshot, xt as toRef, y as useAsyncPullDownRefresh, yt as onUpdated, z as useLayoutBridge } from "./src-fYd456WG.mjs";
2
2
  import { C as effect, D as onScopeDispose, E as getCurrentScope, N as nextTick, O as startBatch, S as batch, T as endBatch, a as toValue, b as addMutationRecorder, c as isRaw, d as reactive, f as isShallowReactive, g as touchReactive, h as prelinkReactiveTree, i as ref, k as stop, l as isReactive, n as isRef, o as unref, p as shallowReactive, s as getReactiveVersion, t as customRef, u as markRaw, w as effectScope, x as removeMutationRecorder, y as toRaw } from "./ref-DAstlXwV.mjs";
3
3
  import { i as computed, n as defineStore, r as createStore, t as storeToRefs } from "./store-Bazm64zK.mjs";
4
4
  import { $ as onUnhandledRejection, A as setGlobalProvidedValue, B as onPageNotFound, F as onHide, G as onResize, H as onPullDownRefresh, I as onLaunch, J as onShareAppMessage, K as onRouteDone, L as onLoad, M as onAttached, N as onDetached, P as onError, Q as onThemeChange, R as onMemoryWarning, U as onReachBottom, V as onPageScroll, W as onReady, X as onShow, Y as onShareTimeline, Z as onTabItemTap, _ as provide, _t as readonly, at as getCurrentSetupContext, ct as setCurrentSetupContext, et as onUnload, g as injectGlobal, gt as isReadonly, h as inject, ht as isProxy, it as getCurrentInstance, j as onAddToFavorites, m as hasInjectionContext, n as useNativeRouter, nt as callHookList, q as onSaveExitState, rt as callHookReturn, st as setCurrentInstance, t as useNativePageRouter, v as provideGlobal, vt as shallowReadonly, z as onMoved } from "./router-D68ovdoh.mjs";
@@ -478,7 +478,7 @@ function watchSyncEffect(effectFn, options = {}) {
478
478
 
479
479
  //#endregion
480
480
  //#region package.json
481
- var version$1 = "6.16.21";
481
+ var version$1 = "6.16.22";
482
482
 
483
483
  //#endregion
484
484
  //#region src/version.ts
@@ -965,7 +965,7 @@ function isPlainObject$1(value) {
965
965
  const proto = Object.getPrototypeOf(value);
966
966
  return proto === null || proto === Object.prototype;
967
967
  }
968
- function toPlainInternal(value, seen, cache, depth, budget, includeFunctions, functionPathSet, currentPath) {
968
+ function toPlainInternal(value, seen, visiting, cache, depth, budget, includeFunctions, functionPathSet, currentPath) {
969
969
  const unwrapped = unref(value);
970
970
  if (typeof unwrapped === "bigint") {
971
971
  const asNumber = Number(unwrapped);
@@ -983,23 +983,28 @@ function toPlainInternal(value, seen, cache, depth, budget, includeFunctions, fu
983
983
  const cached = cacheRef.get(raw);
984
984
  if (cached && cached.version === version) return cached.value;
985
985
  }
986
+ if (visiting.has(raw)) return;
986
987
  if (seen.has(raw)) return seen.get(raw);
987
988
  if (raw instanceof Date) return raw.getTime();
988
989
  if (raw instanceof RegExp) return raw.toString();
989
990
  if (raw instanceof Map) {
990
991
  const entries = [];
991
992
  seen.set(raw, entries);
993
+ visiting.add(raw);
992
994
  raw.forEach((mapValue, mapKey) => {
993
- entries.push([toPlainInternal(mapKey, seen, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""), toPlainInternal(mapValue, seen, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, "")]);
995
+ entries.push([toPlainInternal(mapKey, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""), toPlainInternal(mapValue, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, "")]);
994
996
  });
997
+ visiting.delete(raw);
995
998
  return entries;
996
999
  }
997
1000
  if (raw instanceof Set) {
998
1001
  const values = [];
999
1002
  seen.set(raw, values);
1003
+ visiting.add(raw);
1000
1004
  raw.forEach((setValue) => {
1001
- values.push(toPlainInternal(setValue, seen, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
1005
+ values.push(toPlainInternal(setValue, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
1002
1006
  });
1007
+ visiting.delete(raw);
1003
1008
  return values;
1004
1009
  }
1005
1010
  if (typeof ArrayBuffer !== "undefined") {
@@ -1009,7 +1014,7 @@ function toPlainInternal(value, seen, cache, depth, budget, includeFunctions, fu
1009
1014
  if (typeof view[Symbol.iterator] === "function") {
1010
1015
  const values = [...view];
1011
1016
  seen.set(raw, values);
1012
- return values.map((item) => toPlainInternal(item, seen, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
1017
+ return values.map((item) => toPlainInternal(item, seen, visiting, void 0, Number.POSITIVE_INFINITY, { keys: Number.POSITIVE_INFINITY }, includeFunctions, void 0, ""));
1013
1018
  }
1014
1019
  const bytes = [...new Uint8Array(view.buffer, view.byteOffset, view.byteLength)];
1015
1020
  seen.set(raw, bytes);
@@ -1023,12 +1028,14 @@ function toPlainInternal(value, seen, cache, depth, budget, includeFunctions, fu
1023
1028
  if (Array.isArray(raw)) {
1024
1029
  const arr = [];
1025
1030
  seen.set(raw, arr);
1031
+ visiting.add(raw);
1026
1032
  const nextDepth = depth - 1;
1027
1033
  for (let index = 0; index < raw.length; index += 1) {
1028
1034
  const childPath = currentPath ? `${currentPath}.${index}` : String(index);
1029
- const next = toPlainInternal(raw[index], seen, cache, nextDepth, budget, includeFunctions, functionPathSet, childPath);
1035
+ const next = toPlainInternal(raw[index], seen, visiting, cache, nextDepth, budget, includeFunctions, functionPathSet, childPath);
1030
1036
  arr[index] = next === void 0 ? null : next;
1031
1037
  }
1038
+ visiting.delete(raw);
1032
1039
  if (cacheRef) cacheRef.set(raw, {
1033
1040
  version: getReactiveVersion(raw),
1034
1041
  value: arr
@@ -1037,14 +1044,16 @@ function toPlainInternal(value, seen, cache, depth, budget, includeFunctions, fu
1037
1044
  }
1038
1045
  const output = {};
1039
1046
  seen.set(raw, output);
1047
+ visiting.add(raw);
1040
1048
  const nextDepth = depth - 1;
1041
1049
  for (const key of Object.keys(raw)) {
1042
1050
  budget.keys -= 1;
1043
1051
  if (budget.keys <= 0) break;
1044
1052
  const childPath = currentPath ? `${currentPath}.${key}` : key;
1045
- const next = toPlainInternal(raw[key], seen, cache, nextDepth, budget, includeFunctions, functionPathSet, childPath);
1053
+ const next = toPlainInternal(raw[key], seen, visiting, cache, nextDepth, budget, includeFunctions, functionPathSet, childPath);
1046
1054
  if (next !== void 0) output[key] = next;
1047
1055
  }
1056
+ visiting.delete(raw);
1048
1057
  if (cacheRef) cacheRef.set(raw, {
1049
1058
  version: getReactiveVersion(raw),
1050
1059
  value: output
@@ -1056,7 +1065,7 @@ function toPlain(value, seen = /* @__PURE__ */ new WeakMap(), options) {
1056
1065
  const depth = (_options$_depth = options === null || options === void 0 ? void 0 : options._depth) !== null && _options$_depth !== void 0 ? _options$_depth : typeof (options === null || options === void 0 ? void 0 : options.maxDepth) === "number" ? Math.max(0, Math.floor(options.maxDepth)) : Number.POSITIVE_INFINITY;
1057
1066
  const budget = (_options$_budget = options === null || options === void 0 ? void 0 : options._budget) !== null && _options$_budget !== void 0 ? _options$_budget : typeof (options === null || options === void 0 ? void 0 : options.maxKeys) === "number" ? { keys: Math.max(0, Math.floor(options.maxKeys)) } : { keys: Number.POSITIVE_INFINITY };
1058
1067
  const functionPathSet = Array.isArray(options === null || options === void 0 ? void 0 : options.functionPaths) && options.functionPaths.length ? new Set(options.functionPaths) : void 0;
1059
- return toPlainInternal(value, seen, options === null || options === void 0 ? void 0 : options.cache, depth, budget, Boolean(options === null || options === void 0 ? void 0 : options.includeFunctions), functionPathSet, (_options$_path = options === null || options === void 0 ? void 0 : options._path) !== null && _options$_path !== void 0 ? _options$_path : "");
1068
+ return toPlainInternal(value, seen, /* @__PURE__ */ new WeakSet(), options === null || options === void 0 ? void 0 : options.cache, depth, budget, Boolean(options === null || options === void 0 ? void 0 : options.includeFunctions), functionPathSet, (_options$_path = options === null || options === void 0 ? void 0 : options._path) !== null && _options$_path !== void 0 ? _options$_path : "");
1060
1069
  }
1061
1070
  function isArrayEqual(a, b, compare) {
1062
1071
  if (a.length !== b.length) return false;
@@ -5300,7 +5309,7 @@ function flushScopedSlotComputedBindings(instance, computed) {
5300
5309
  const payload = collectComputedPayload(instance, computed);
5301
5310
  if (payload && Object.keys(payload).length > 0 && typeof (instance === null || instance === void 0 ? void 0 : instance.setData) === "function") instance.setData(payload);
5302
5311
  }
5303
- function mergeSlotProps(instance, computed, override) {
5312
+ function syncSlotPropsData(instance, override) {
5304
5313
  var _instance$properties, _instance$properties2, _instance$__wevu3;
5305
5314
  const scopeSource = hasOwn(override !== null && override !== void 0 ? override : {}, WEVU_SLOT_SCOPE_KEY) ? override[WEVU_SLOT_SCOPE_KEY] : instance === null || instance === void 0 || (_instance$properties = instance.properties) === null || _instance$properties === void 0 ? void 0 : _instance$properties[WEVU_SLOT_SCOPE_KEY];
5306
5315
  const propsSource = hasOwn(override !== null && override !== void 0 ? override : {}, WEVU_SLOT_PROPS_KEY) ? override[WEVU_SLOT_PROPS_KEY] : instance === null || instance === void 0 || (_instance$properties2 = instance.properties) === null || _instance$properties2 === void 0 ? void 0 : _instance$properties2[WEVU_SLOT_PROPS_KEY];
@@ -5310,8 +5319,13 @@ function mergeSlotProps(instance, computed, override) {
5310
5319
  ...scope,
5311
5320
  ...slotProps
5312
5321
  };
5322
+ instance[WEVU_SLOT_PROPS_DATA_KEY] = merged;
5313
5323
  const runtimeState = instance === null || instance === void 0 || (_instance$__wevu3 = instance.__wevu) === null || _instance$__wevu3 === void 0 ? void 0 : _instance$__wevu3.state;
5314
5324
  if (runtimeState && typeof runtimeState === "object") runtimeState[WEVU_SLOT_PROPS_DATA_KEY] = merged;
5325
+ return merged;
5326
+ }
5327
+ function mergeSlotProps(instance, computed, override) {
5328
+ const merged = syncSlotPropsData(instance, override);
5315
5329
  if (typeof (instance === null || instance === void 0 ? void 0 : instance.setData) === "function") instance.setData({ [WEVU_SLOT_PROPS_DATA_KEY]: merged });
5316
5330
  flushScopedSlotComputedBindings(instance, computed);
5317
5331
  }
@@ -5335,6 +5349,8 @@ function setOwnerProxy(instance, proxy) {
5335
5349
  function updateOwnerBindings(instance, snapshot, proxy, computed) {
5336
5350
  var _instance$__wevu5;
5337
5351
  setOwnerProxy(instance, proxy);
5352
+ syncSlotPropsData(instance);
5353
+ instance[WEVU_SLOT_OWNER_KEY] = snapshot || {};
5338
5354
  const runtimeState = instance === null || instance === void 0 || (_instance$__wevu5 = instance.__wevu) === null || _instance$__wevu5 === void 0 ? void 0 : _instance$__wevu5.state;
5339
5355
  if (runtimeState && typeof runtimeState === "object") runtimeState[WEVU_SLOT_OWNER_KEY] = snapshot || {};
5340
5356
  if (typeof (instance === null || instance === void 0 ? void 0 : instance.setData) === "function") instance.setData({ [WEVU_SLOT_OWNER_KEY]: snapshot || {} });
@@ -6369,4 +6385,4 @@ function useTemplateRef(name) {
6369
6385
 
6370
6386
  //#endregion
6371
6387
  export { setWevuDefaults as $, defineComponent as A, useLayoutHosts as B, useNavigationBarMetrics as C, isShallowRef as Ct, useDisposables as D, __reExport as Dt, useElementIntersectionObserver as E, __exportAll as Et, resolveLayoutBridge as F, teardownRuntimeInstance as G, registerApp as H, resolveLayoutHost as I, setPageLayout as J, runSetupFunction as K, unregisterPageLayoutBridge as L, registerComponent as M, registerPageLayoutBridge as N, createWevuComponent as O, registerRuntimeLayoutHosts as P, resetWevuDefaults as Q, unregisterRuntimeLayoutHosts as R, getNavigationBarMetrics as S, toRefs as St, useIntersectionObserver as T, triggerRef as Tt, mountRuntimeInstance as U, waitForLayoutHost as V, setRuntimeSetDataVisibility as W, syncRuntimePageLayoutStateFromRuntime as X, syncRuntimePageLayoutState as Y, usePageLayout as Z, useSelectorFields as _, onServerPrefetch as _t, useModel as a, watchPostEffect as at, usePageScrollThrottle as b, traverse as bt, useSlots as c, setDeepWatchStrategy as ct, useUpdatePerformanceListener as d, onBeforeMount as dt, isNoSetData as et, normalizeClass as f, onBeforeUnmount as ft, useScrollOffset as g, onMounted as gt, useBoundingClientRect as h, onErrorCaptured as ht, useChangeModel as i, watchEffect as it, createApp as j, createWevuScopedSlotComponent as k, defineAppSetup as l, callUpdateHooks as lt, resolvePropValue as m, onDeactivated as mt, mergeModels as n, version as nt, useAttrs as o, watchSyncEffect as ot, normalizeStyle as p, onBeforeUpdate as pt, resolveRuntimePageLayoutName as q, useBindModel as r, watch as rt, useNativeInstance as s, getDeepWatchStrategy as st, useTemplateRef as t, markNoSetData as tt, use as u, onActivated as ut, useSelectorQuery as v, onUnmounted as vt, usePageStack as w, shallowRef as wt, getCurrentPageStackSnapshot as x, toRef as xt, useAsyncPullDownRefresh as y, onUpdated as yt, useLayoutBridge as z };
6372
- //# sourceMappingURL=src-DzpEFK_c.mjs.map
6388
+ //# sourceMappingURL=src-fYd456WG.mjs.map