@vue/runtime-core 3.6.0-beta.7 → 3.6.0-beta.9
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/runtime-core.cjs.js +106 -110
- package/dist/runtime-core.cjs.prod.js +80 -103
- package/dist/runtime-core.d.ts +33 -3
- package/dist/runtime-core.esm-bundler.js +102 -101
- package/package.json +3 -3
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @vue/runtime-core v3.6.0-beta.
|
|
2
|
+
* @vue/runtime-core v3.6.0-beta.9
|
|
3
3
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
4
|
* @license MIT
|
|
5
5
|
**/
|
|
6
6
|
import { EffectScope, EffectScope as EffectScope$1, ReactiveEffect, ReactiveEffect as ReactiveEffect$1, TrackOpTypes, TriggerOpTypes, WatcherEffect, computed as computed$1, customRef, customRef as customRef$1, effect, effectScope, getCurrentScope, getCurrentWatcher, isProxy, isProxy as isProxy$1, isReactive, isReactive as isReactive$1, isReadonly, isReadonly as isReadonly$1, isRef, isRef as isRef$1, isShallow, isShallow as isShallow$1, markRaw, markRaw as markRaw$1, onScopeDispose, onWatcherCleanup, proxyRefs, proxyRefs as proxyRefs$1, reactive, reactive as reactive$1, readonly, readonly as readonly$1, ref, ref as ref$1, setActiveSub, setCurrentScope, shallowReactive, shallowReactive as shallowReactive$1, shallowReadArray, shallowReadonly, shallowReadonly as shallowReadonly$1, shallowRef, shallowRef as shallowRef$1, stop, toRaw, toRaw as toRaw$1, toReactive, toReadonly, toRef, toRefs, toValue, track, traverse, trigger, triggerRef, unref } from "@vue/reactivity";
|
|
7
7
|
import { EMPTY_ARR, EMPTY_OBJ, NO, NOOP, camelize, camelize as camelize$1, capitalize, capitalize as capitalize$1, def, extend, getEscapedCssVarName, getGlobalThis, getModifierPropName, getSequence, hasChanged, hasOwn, hyphenate, includeBooleanAttr, invokeArrayFns, isArray, isBooleanAttr, isBuiltInDirective, isBuiltInTag, isFunction, isGloballyAllowed, isKnownHtmlAttr, isKnownSvgAttr, isModelListener, isObject, isOn, isPromise, isRegExp, isRenderableAttrValue, isReservedProp, isString, isSymbol, looseEqual, looseToNumber, makeMap, normalizeClass, normalizeClass as normalizeClass$1, normalizeCssVarValue, normalizeProps, normalizeStyle, normalizeStyle as normalizeStyle$1, remove, stringifyStyle, toDisplayString, toHandlerKey, toHandlerKey as toHandlerKey$1, toNumber, toRawType } from "@vue/shared";
|
|
8
|
-
|
|
9
8
|
//#region packages/runtime-core/src/warning.ts
|
|
10
9
|
const stack = [];
|
|
11
10
|
/**
|
|
@@ -31,8 +30,8 @@ function warn$1(msg, ...args) {
|
|
|
31
30
|
const trace = getComponentTrace();
|
|
32
31
|
if (appWarnHandler) callWithErrorHandling(appWarnHandler, instance, 11, [
|
|
33
32
|
msg + args.map((a) => {
|
|
34
|
-
|
|
35
|
-
return
|
|
33
|
+
const toString = a.toString;
|
|
34
|
+
return toString == null ? JSON.stringify(a) : toString.call(a);
|
|
36
35
|
}).join(""),
|
|
37
36
|
instance && instance.proxy || instance,
|
|
38
37
|
trace.map(({ ctx }) => `at <${formatComponentName(instance, ctx.type)}>`).join("\n"),
|
|
@@ -123,7 +122,6 @@ function assertNumber(val, type) {
|
|
|
123
122
|
else if (isNaN(val)) warn$1(`${type} is NaN - the duration expression might be incorrect.`);
|
|
124
123
|
}
|
|
125
124
|
/* v8 ignore stop */
|
|
126
|
-
|
|
127
125
|
//#endregion
|
|
128
126
|
//#region packages/runtime-core/src/errorHandling.ts
|
|
129
127
|
const ErrorCodes = {
|
|
@@ -247,7 +245,6 @@ function logError(err, type, instance, throwInDev = true, throwInProd = false) {
|
|
|
247
245
|
} else if (throwInProd) throw err;
|
|
248
246
|
else console.error(err);
|
|
249
247
|
}
|
|
250
|
-
|
|
251
248
|
//#endregion
|
|
252
249
|
//#region packages/runtime-core/src/scheduler.ts
|
|
253
250
|
const SchedulerJobFlags = {
|
|
@@ -408,10 +405,16 @@ function checkRecursiveUpdates(seen, fn) {
|
|
|
408
405
|
seen.set(fn, count + 1);
|
|
409
406
|
return false;
|
|
410
407
|
}
|
|
411
|
-
|
|
412
408
|
//#endregion
|
|
413
409
|
//#region packages/runtime-core/src/hmr.ts
|
|
414
410
|
let isHmrUpdating = false;
|
|
411
|
+
const setHmrUpdating = (v) => {
|
|
412
|
+
try {
|
|
413
|
+
return isHmrUpdating;
|
|
414
|
+
} finally {
|
|
415
|
+
isHmrUpdating = v;
|
|
416
|
+
}
|
|
417
|
+
};
|
|
415
418
|
const hmrDirtyComponents = /* @__PURE__ */ new Map();
|
|
416
419
|
const hmrDirtyComponentsMode = /* @__PURE__ */ new Map();
|
|
417
420
|
if (!!(process.env.NODE_ENV !== "production")) getGlobalThis().__VUE_HMR_RUNTIME__ = {
|
|
@@ -530,7 +533,6 @@ function tryWrap(fn) {
|
|
|
530
533
|
}
|
|
531
534
|
};
|
|
532
535
|
}
|
|
533
|
-
|
|
534
536
|
//#endregion
|
|
535
537
|
//#region packages/runtime-core/src/devtools.ts
|
|
536
538
|
let devtools$1;
|
|
@@ -599,7 +601,6 @@ function createDevtoolsPerformanceHook(hook) {
|
|
|
599
601
|
function devtoolsComponentEmit(component, event, params) {
|
|
600
602
|
emit$1("component:emit", component.appContext.app, component, event, params);
|
|
601
603
|
}
|
|
602
|
-
|
|
603
604
|
//#endregion
|
|
604
605
|
//#region packages/runtime-core/src/componentRenderContext.ts
|
|
605
606
|
/**
|
|
@@ -669,7 +670,6 @@ function withCtx(fn, ctx = currentRenderingInstance, isNonScopedSlot) {
|
|
|
669
670
|
renderFnWithContext._d = true;
|
|
670
671
|
return renderFnWithContext;
|
|
671
672
|
}
|
|
672
|
-
|
|
673
673
|
//#endregion
|
|
674
674
|
//#region packages/runtime-core/src/directives.ts
|
|
675
675
|
function validateDirectiveName(name) {
|
|
@@ -724,7 +724,6 @@ function invokeDirectiveHook(vnode, prevVNode, instance, name) {
|
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
726
|
}
|
|
727
|
-
|
|
728
727
|
//#endregion
|
|
729
728
|
//#region packages/runtime-core/src/apiInject.ts
|
|
730
729
|
function provide(key, value) {
|
|
@@ -755,7 +754,6 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
|
|
755
754
|
function hasInjectionContext() {
|
|
756
755
|
return !!(getCurrentGenericInstance() || currentApp);
|
|
757
756
|
}
|
|
758
|
-
|
|
759
757
|
//#endregion
|
|
760
758
|
//#region packages/runtime-core/src/helpers/useSsrContext.ts
|
|
761
759
|
const ssrContextKey = Symbol.for("v-scx");
|
|
@@ -766,7 +764,6 @@ const useSSRContext = () => {
|
|
|
766
764
|
return ctx;
|
|
767
765
|
}
|
|
768
766
|
};
|
|
769
|
-
|
|
770
767
|
//#endregion
|
|
771
768
|
//#region packages/runtime-core/src/apiWatch.ts
|
|
772
769
|
function watchEffect(effect, options) {
|
|
@@ -867,7 +864,6 @@ function createPathGetter(ctx, path) {
|
|
|
867
864
|
return cur;
|
|
868
865
|
};
|
|
869
866
|
}
|
|
870
|
-
|
|
871
867
|
//#endregion
|
|
872
868
|
//#region packages/runtime-core/src/components/Teleport.ts
|
|
873
869
|
const TeleportEndKey = Symbol("_vte");
|
|
@@ -927,25 +923,26 @@ const TeleportImpl = {
|
|
|
927
923
|
mount(container, mainAnchor);
|
|
928
924
|
updateCssVars(n2, true);
|
|
929
925
|
}
|
|
930
|
-
if (isTeleportDeferred(n2.props)) {
|
|
926
|
+
if (isTeleportDeferred(n2.props) || parentSuspense && parentSuspense.pendingBranch) {
|
|
931
927
|
n2.el.__isMounted = false;
|
|
932
928
|
queuePostRenderEffect(() => {
|
|
929
|
+
if (n2.el.__isMounted !== false) return;
|
|
933
930
|
mountToTarget();
|
|
934
931
|
delete n2.el.__isMounted;
|
|
935
932
|
}, void 0, parentSuspense);
|
|
936
933
|
} else mountToTarget();
|
|
937
934
|
} else {
|
|
938
|
-
if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
|
|
939
|
-
queuePostRenderEffect(() => {
|
|
940
|
-
TeleportImpl.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals);
|
|
941
|
-
}, void 0, parentSuspense);
|
|
942
|
-
return;
|
|
943
|
-
}
|
|
944
935
|
n2.el = n1.el;
|
|
945
936
|
n2.targetStart = n1.targetStart;
|
|
946
937
|
const mainAnchor = n2.anchor = n1.anchor;
|
|
947
938
|
const target = n2.target = n1.target;
|
|
948
939
|
const targetAnchor = n2.targetAnchor = n1.targetAnchor;
|
|
940
|
+
if (n1.el.__isMounted === false) {
|
|
941
|
+
queuePostRenderEffect(() => {
|
|
942
|
+
TeleportImpl.process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, internals);
|
|
943
|
+
}, void 0, parentSuspense);
|
|
944
|
+
return;
|
|
945
|
+
}
|
|
949
946
|
const wasDisabled = isTeleportDisabled(n1.props);
|
|
950
947
|
const currentContainer = wasDisabled ? container : target;
|
|
951
948
|
const currentAnchor = wasDisabled ? mainAnchor : targetAnchor;
|
|
@@ -967,11 +964,9 @@ const TeleportImpl = {
|
|
|
967
964
|
}
|
|
968
965
|
},
|
|
969
966
|
remove(vnode, parentComponent, parentSuspense, { um: unmount, o: { remove: hostRemove } }, doRemove) {
|
|
970
|
-
const { shapeFlag, children, anchor, targetStart, targetAnchor,
|
|
971
|
-
if (
|
|
972
|
-
|
|
973
|
-
hostRemove(targetAnchor);
|
|
974
|
-
}
|
|
967
|
+
const { shapeFlag, children, anchor, targetStart, targetAnchor, props } = vnode;
|
|
968
|
+
if (targetStart) hostRemove(targetStart);
|
|
969
|
+
if (targetAnchor) hostRemove(targetAnchor);
|
|
975
970
|
doRemove && hostRemove(anchor);
|
|
976
971
|
if (shapeFlag & 16) {
|
|
977
972
|
const shouldRemove = doRemove || !isTeleportDisabled(props);
|
|
@@ -1065,7 +1060,6 @@ function prepareAnchor(target, vnode, createText, insert, anchor = null) {
|
|
|
1065
1060
|
}
|
|
1066
1061
|
return targetAnchor;
|
|
1067
1062
|
}
|
|
1068
|
-
|
|
1069
1063
|
//#endregion
|
|
1070
1064
|
//#region packages/runtime-core/src/components/BaseTransition.ts
|
|
1071
1065
|
const leaveCbKey = Symbol("_leaveCb");
|
|
@@ -1232,7 +1226,7 @@ function baseResolveTransitionHooks(context, props, state, instance) {
|
|
|
1232
1226
|
callHook(hook, [el]);
|
|
1233
1227
|
},
|
|
1234
1228
|
enter(el) {
|
|
1235
|
-
if (isLeaving()) return;
|
|
1229
|
+
if (!isHmrUpdating && isLeaving()) return;
|
|
1236
1230
|
let hook = onEnter;
|
|
1237
1231
|
let afterHook = onAfterEnter;
|
|
1238
1232
|
let cancelHook = onEnterCancelled;
|
|
@@ -1329,14 +1323,12 @@ function getTransitionRawChildren(children, keepComment = false, parentKey) {
|
|
|
1329
1323
|
function checkTransitionMode(mode) {
|
|
1330
1324
|
if (!!(process.env.NODE_ENV !== "production") && mode && mode !== "in-out" && mode !== "out-in" && mode !== "default") warn$1(`invalid <transition> mode: ${mode}`);
|
|
1331
1325
|
}
|
|
1332
|
-
|
|
1333
1326
|
//#endregion
|
|
1334
1327
|
//#region packages/runtime-core/src/apiDefineComponent.ts
|
|
1335
1328
|
/* @__NO_SIDE_EFFECTS__ */
|
|
1336
1329
|
function defineComponent(options, extraOptions) {
|
|
1337
1330
|
return isFunction(options) ? extend({ name: options.name }, extraOptions, { setup: options }) : options;
|
|
1338
1331
|
}
|
|
1339
|
-
|
|
1340
1332
|
//#endregion
|
|
1341
1333
|
//#region packages/runtime-core/src/helpers/useId.ts
|
|
1342
1334
|
function useId() {
|
|
@@ -1358,7 +1350,6 @@ function markAsyncBoundary(instance) {
|
|
|
1358
1350
|
0
|
|
1359
1351
|
];
|
|
1360
1352
|
}
|
|
1361
|
-
|
|
1362
1353
|
//#endregion
|
|
1363
1354
|
//#region packages/runtime-core/src/helpers/useTemplateRef.ts
|
|
1364
1355
|
const knownTemplateRefs = /* @__PURE__ */ new WeakSet();
|
|
@@ -1382,7 +1373,6 @@ function isTemplateRefKey(refs, key) {
|
|
|
1382
1373
|
let desc;
|
|
1383
1374
|
return !!((desc = Object.getOwnPropertyDescriptor(refs, key)) && !desc.configurable);
|
|
1384
1375
|
}
|
|
1385
|
-
|
|
1386
1376
|
//#endregion
|
|
1387
1377
|
//#region packages/runtime-core/src/rendererTemplateRef.ts
|
|
1388
1378
|
const pendingSetRefMap = /* @__PURE__ */ new WeakMap();
|
|
@@ -1483,7 +1473,6 @@ function invalidatePendingSetRef(rawRef) {
|
|
|
1483
1473
|
pendingSetRefMap.delete(rawRef);
|
|
1484
1474
|
}
|
|
1485
1475
|
}
|
|
1486
|
-
|
|
1487
1476
|
//#endregion
|
|
1488
1477
|
//#region packages/runtime-core/src/hydration.ts
|
|
1489
1478
|
let isHydratingEnabled = false;
|
|
@@ -1910,7 +1899,6 @@ function isMismatchAllowed(el, allowedType) {
|
|
|
1910
1899
|
return list.includes(MismatchTypeString[allowedType]);
|
|
1911
1900
|
}
|
|
1912
1901
|
}
|
|
1913
|
-
|
|
1914
1902
|
//#endregion
|
|
1915
1903
|
//#region packages/runtime-core/src/hydrationStrategies.ts
|
|
1916
1904
|
let requestIdleCallback;
|
|
@@ -1999,7 +1987,6 @@ function forEachElement(node, cb) {
|
|
|
1999
1987
|
}
|
|
2000
1988
|
} else cb(node);
|
|
2001
1989
|
}
|
|
2002
|
-
|
|
2003
1990
|
//#endregion
|
|
2004
1991
|
//#region packages/runtime-core/src/apiAsyncComponent.ts
|
|
2005
1992
|
const isAsyncWrapper = (i) => !!i.type.__asyncLoader;
|
|
@@ -2136,11 +2123,10 @@ function performAsyncHydrate(el, instance, hydrate, getResolvedComp, load, hydra
|
|
|
2136
2123
|
if (getResolvedComp()) doHydrate();
|
|
2137
2124
|
else load().then(() => !instance.isUnmounted && doHydrate());
|
|
2138
2125
|
}
|
|
2139
|
-
|
|
2140
2126
|
//#endregion
|
|
2141
2127
|
//#region packages/runtime-core/src/components/KeepAlive.ts
|
|
2142
2128
|
const isKeepAlive = (vnode) => vnode.type.__isKeepAlive;
|
|
2143
|
-
const
|
|
2129
|
+
const KeepAlive = {
|
|
2144
2130
|
name: `KeepAlive`,
|
|
2145
2131
|
__isKeepAlive: true,
|
|
2146
2132
|
props: {
|
|
@@ -2278,7 +2264,6 @@ const KeepAliveImpl = {
|
|
|
2278
2264
|
};
|
|
2279
2265
|
}
|
|
2280
2266
|
};
|
|
2281
|
-
const KeepAlive = KeepAliveImpl;
|
|
2282
2267
|
function matches(pattern, name) {
|
|
2283
2268
|
if (isArray(pattern)) return pattern.some((p) => matches(p, name));
|
|
2284
2269
|
else if (isString(pattern)) return pattern.split(",").includes(name);
|
|
@@ -2358,7 +2343,6 @@ function deactivate(vnode, container, { m: move }, parentComponent, parentSuspen
|
|
|
2358
2343
|
}, void 0, parentSuspense);
|
|
2359
2344
|
if (!!(process.env.NODE_ENV !== "production") || __VUE_PROD_DEVTOOLS__) devtoolsComponentAdded(instance);
|
|
2360
2345
|
}
|
|
2361
|
-
|
|
2362
2346
|
//#endregion
|
|
2363
2347
|
//#region packages/runtime-core/src/apiLifecycle.ts
|
|
2364
2348
|
function injectHook(type, hook, target = currentInstance, prepend = false) {
|
|
@@ -2394,23 +2378,19 @@ const onRenderTracked = /* @__PURE__ */ createHook("rtc");
|
|
|
2394
2378
|
function onErrorCaptured(hook, target = currentInstance) {
|
|
2395
2379
|
injectHook("ec", hook, target);
|
|
2396
2380
|
}
|
|
2397
|
-
|
|
2398
|
-
//#endregion
|
|
2399
|
-
//#region packages/runtime-core/src/helpers/resolveAssets.ts
|
|
2400
|
-
const COMPONENTS = "components";
|
|
2401
2381
|
const DIRECTIVES = "directives";
|
|
2402
2382
|
/**
|
|
2403
2383
|
* @private
|
|
2404
2384
|
*/
|
|
2405
2385
|
function resolveComponent(name, maybeSelfReference) {
|
|
2406
|
-
return resolveAsset(
|
|
2386
|
+
return resolveAsset("components", name, true, maybeSelfReference) || name;
|
|
2407
2387
|
}
|
|
2408
2388
|
const NULL_DYNAMIC_COMPONENT = Symbol.for("v-ndc");
|
|
2409
2389
|
/**
|
|
2410
2390
|
* @private
|
|
2411
2391
|
*/
|
|
2412
2392
|
function resolveDynamicComponent(component) {
|
|
2413
|
-
if (isString(component)) return resolveAsset(
|
|
2393
|
+
if (isString(component)) return resolveAsset("components", component, false) || component;
|
|
2414
2394
|
else return component || NULL_DYNAMIC_COMPONENT;
|
|
2415
2395
|
}
|
|
2416
2396
|
/**
|
|
@@ -2423,14 +2403,14 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
2423
2403
|
const instance = currentRenderingInstance || currentInstance;
|
|
2424
2404
|
if (instance) {
|
|
2425
2405
|
const Component = instance.type;
|
|
2426
|
-
if (type ===
|
|
2406
|
+
if (type === "components") {
|
|
2427
2407
|
const selfName = getComponentName(Component, false);
|
|
2428
2408
|
if (selfName && (selfName === name || selfName === camelize$1(name) || selfName === capitalize$1(camelize$1(name)))) return Component;
|
|
2429
2409
|
}
|
|
2430
2410
|
const res = resolve(instance[type] || Component[type], name) || resolve(instance.appContext[type], name);
|
|
2431
2411
|
if (!res && maybeSelfReference) return Component;
|
|
2432
2412
|
if (!!(process.env.NODE_ENV !== "production") && warnMissing && !res) {
|
|
2433
|
-
const extra = type ===
|
|
2413
|
+
const extra = type === "components" ? "\nIf this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement." : ``;
|
|
2434
2414
|
warn$1(`Failed to resolve ${type.slice(0, -1)}: ${name}${extra}`);
|
|
2435
2415
|
}
|
|
2436
2416
|
return res;
|
|
@@ -2439,7 +2419,6 @@ function resolveAsset(type, name, warnMissing = true, maybeSelfReference = false
|
|
|
2439
2419
|
function resolve(registry, name) {
|
|
2440
2420
|
return registry && (registry[name] || registry[camelize$1(name)] || registry[capitalize$1(camelize$1(name))]);
|
|
2441
2421
|
}
|
|
2442
|
-
|
|
2443
2422
|
//#endregion
|
|
2444
2423
|
//#region packages/runtime-core/src/helpers/renderList.ts
|
|
2445
2424
|
/**
|
|
@@ -2460,11 +2439,14 @@ function renderList(source, renderItem, cache, index) {
|
|
|
2460
2439
|
}
|
|
2461
2440
|
ret = new Array(source.length);
|
|
2462
2441
|
for (let i = 0, l = source.length; i < l; i++) ret[i] = renderItem(needsWrap ? isReadonlySource ? toReadonly(toReactive(source[i])) : toReactive(source[i]) : source[i], i, void 0, cached && cached[i]);
|
|
2463
|
-
} else if (typeof source === "number") {
|
|
2464
|
-
|
|
2442
|
+
} else if (typeof source === "number") if (!!(process.env.NODE_ENV !== "production") && (!Number.isInteger(source) || source < 0)) {
|
|
2443
|
+
warn$1(`The v-for range expects a positive integer value but got ${source}.`);
|
|
2444
|
+
ret = [];
|
|
2445
|
+
} else {
|
|
2465
2446
|
ret = new Array(source);
|
|
2466
2447
|
for (let i = 0; i < source; i++) ret[i] = renderItem(i + 1, i, void 0, cached && cached[i]);
|
|
2467
|
-
}
|
|
2448
|
+
}
|
|
2449
|
+
else if (isObject(source)) if (source[Symbol.iterator]) ret = Array.from(source, (item, i) => renderItem(item, i, void 0, cached && cached[i]));
|
|
2468
2450
|
else {
|
|
2469
2451
|
const keys = Object.keys(source);
|
|
2470
2452
|
ret = new Array(keys.length);
|
|
@@ -2477,7 +2459,6 @@ function renderList(source, renderItem, cache, index) {
|
|
|
2477
2459
|
if (cache) cache[index] = ret;
|
|
2478
2460
|
return ret;
|
|
2479
2461
|
}
|
|
2480
|
-
|
|
2481
2462
|
//#endregion
|
|
2482
2463
|
//#region packages/runtime-core/src/helpers/createSlots.ts
|
|
2483
2464
|
/**
|
|
@@ -2496,7 +2477,6 @@ function createSlots(slots, dynamicSlots) {
|
|
|
2496
2477
|
}
|
|
2497
2478
|
return slots;
|
|
2498
2479
|
}
|
|
2499
|
-
|
|
2500
2480
|
//#endregion
|
|
2501
2481
|
//#region packages/runtime-core/src/helpers/renderSlot.ts
|
|
2502
2482
|
/**
|
|
@@ -2547,7 +2527,6 @@ function ensureVaporSlotFallback(vnodes, fallback) {
|
|
|
2547
2527
|
if (!vaporSlot.fallback && fallback) vaporSlot.fallback = fallback;
|
|
2548
2528
|
}
|
|
2549
2529
|
}
|
|
2550
|
-
|
|
2551
2530
|
//#endregion
|
|
2552
2531
|
//#region packages/runtime-core/src/helpers/toHandlers.ts
|
|
2553
2532
|
/**
|
|
@@ -2563,7 +2542,6 @@ function toHandlers(obj, preserveCaseIfNecessary) {
|
|
|
2563
2542
|
for (const key in obj) ret[preserveCaseIfNecessary && /[A-Z]/.test(key) ? `on:${key}` : toHandlerKey$1(key)] = obj[key];
|
|
2564
2543
|
return ret;
|
|
2565
2544
|
}
|
|
2566
|
-
|
|
2567
2545
|
//#endregion
|
|
2568
2546
|
//#region packages/runtime-core/src/componentPublicInstance.ts
|
|
2569
2547
|
/**
|
|
@@ -2742,7 +2720,6 @@ function exposeSetupStateOnRenderContext(instance) {
|
|
|
2742
2720
|
}
|
|
2743
2721
|
});
|
|
2744
2722
|
}
|
|
2745
|
-
|
|
2746
2723
|
//#endregion
|
|
2747
2724
|
//#region packages/runtime-core/src/apiSetupHelpers.ts
|
|
2748
2725
|
const warnRuntimeUsage = (method) => warn$1(`${method}() is a compiler-hint helper that is only usable inside <script setup> of a single file component. Its arguments should be compiled away and passing it at runtime has no effect.`);
|
|
@@ -2781,6 +2758,22 @@ function defineExpose(exposed) {
|
|
|
2781
2758
|
function defineOptions(options) {
|
|
2782
2759
|
if (!!(process.env.NODE_ENV !== "production")) warnRuntimeUsage(`defineOptions`);
|
|
2783
2760
|
}
|
|
2761
|
+
/**
|
|
2762
|
+
* Vue `<script setup>` compiler macro for providing type hints to IDEs for
|
|
2763
|
+
* slot name and slot props type checking.
|
|
2764
|
+
*
|
|
2765
|
+
* Example usage:
|
|
2766
|
+
* ```ts
|
|
2767
|
+
* const slots = defineSlots<{
|
|
2768
|
+
* default(props: { msg: string }): any
|
|
2769
|
+
* }>()
|
|
2770
|
+
* ```
|
|
2771
|
+
*
|
|
2772
|
+
* This is only usable inside `<script setup>`, is compiled away in the
|
|
2773
|
+
* output and should **not** be actually called at runtime.
|
|
2774
|
+
*
|
|
2775
|
+
* @see {@link https://vuejs.org/api/sfc-script-setup.html#defineslots}
|
|
2776
|
+
*/
|
|
2784
2777
|
function defineSlots() {
|
|
2785
2778
|
if (!!(process.env.NODE_ENV !== "production")) warnRuntimeUsage(`defineSlots`);
|
|
2786
2779
|
return null;
|
|
@@ -2897,21 +2890,29 @@ function createPropsRestProxy(props, excludedKeys) {
|
|
|
2897
2890
|
*/
|
|
2898
2891
|
function withAsyncContext(getAwaitable) {
|
|
2899
2892
|
const ctx = getCurrentGenericInstance();
|
|
2893
|
+
const inSSRSetup = isInSSRComponentSetup;
|
|
2900
2894
|
if (!!(process.env.NODE_ENV !== "production") && !ctx) warn$1("withAsyncContext called without active current instance. This is likely a bug.");
|
|
2901
2895
|
let awaitable = getAwaitable();
|
|
2902
2896
|
setCurrentInstance(null, void 0);
|
|
2903
|
-
|
|
2904
|
-
|
|
2897
|
+
if (inSSRSetup) setInSSRSetupState(false);
|
|
2898
|
+
const restore = () => {
|
|
2905
2899
|
setCurrentInstance(ctx);
|
|
2900
|
+
if (inSSRSetup) setInSSRSetupState(true);
|
|
2901
|
+
};
|
|
2902
|
+
const cleanup = () => {
|
|
2903
|
+
setCurrentInstance(null, void 0);
|
|
2904
|
+
if (inSSRSetup) setInSSRSetupState(false);
|
|
2905
|
+
};
|
|
2906
|
+
if (isPromise(awaitable)) awaitable = awaitable.catch((e) => {
|
|
2907
|
+
restore();
|
|
2906
2908
|
Promise.resolve().then(() => Promise.resolve().then(cleanup));
|
|
2907
2909
|
throw e;
|
|
2908
2910
|
});
|
|
2909
2911
|
return [awaitable, () => {
|
|
2910
|
-
|
|
2912
|
+
restore();
|
|
2911
2913
|
Promise.resolve().then(cleanup);
|
|
2912
2914
|
}];
|
|
2913
2915
|
}
|
|
2914
|
-
|
|
2915
2916
|
//#endregion
|
|
2916
2917
|
//#region packages/runtime-core/src/componentOptions.ts
|
|
2917
2918
|
function createDuplicateChecker() {
|
|
@@ -3158,7 +3159,6 @@ function mergeWatchOptions(to, from) {
|
|
|
3158
3159
|
for (const key in from) merged[key] = mergeAsArray(to[key], from[key]);
|
|
3159
3160
|
return merged;
|
|
3160
3161
|
}
|
|
3161
|
-
|
|
3162
3162
|
//#endregion
|
|
3163
3163
|
//#region packages/runtime-core/src/apiCreateApp.ts
|
|
3164
3164
|
function createAppContext() {
|
|
@@ -3296,7 +3296,6 @@ function createAppAPI(mount, unmount, getPublicInstance, render) {
|
|
|
3296
3296
|
* `app.runWithContext()`.
|
|
3297
3297
|
*/
|
|
3298
3298
|
let currentApp = null;
|
|
3299
|
-
|
|
3300
3299
|
//#endregion
|
|
3301
3300
|
//#region packages/runtime-core/src/helpers/useModel.ts
|
|
3302
3301
|
function useModel(props, name, options = EMPTY_OBJ) {
|
|
@@ -3369,7 +3368,6 @@ function useModel(props, name, options = EMPTY_OBJ) {
|
|
|
3369
3368
|
const getModelModifiers = (props, modelName, getter) => {
|
|
3370
3369
|
return getter(props, getModifierPropName(modelName)) || getter(props, `${camelize$1(modelName)}Modifiers`) || getter(props, `${hyphenate(modelName)}Modifiers`);
|
|
3371
3370
|
};
|
|
3372
|
-
|
|
3373
3371
|
//#endregion
|
|
3374
3372
|
//#region packages/runtime-core/src/componentEmits.ts
|
|
3375
3373
|
function emit(instance, event, ...rawArgs) {
|
|
@@ -3459,7 +3457,6 @@ function isEmitListener(options, key) {
|
|
|
3459
3457
|
key = key.slice(2).replace(/Once$/, "");
|
|
3460
3458
|
return hasOwn(options, key[0].toLowerCase() + key.slice(1)) || hasOwn(options, hyphenate(key)) || hasOwn(options, key);
|
|
3461
3459
|
}
|
|
3462
|
-
|
|
3463
3460
|
//#endregion
|
|
3464
3461
|
//#region packages/runtime-core/src/componentRenderUtils.ts
|
|
3465
3462
|
/**
|
|
@@ -3645,17 +3642,20 @@ function hasPropValueChanged(nextProps, prevProps, key) {
|
|
|
3645
3642
|
if (key === "style" && isObject(nextProp) && isObject(prevProp)) return !looseEqual(nextProp, prevProp);
|
|
3646
3643
|
return nextProp !== prevProp;
|
|
3647
3644
|
}
|
|
3648
|
-
function updateHOCHostEl({ vnode, parent }, el) {
|
|
3645
|
+
function updateHOCHostEl({ vnode, parent, suspense }, el) {
|
|
3649
3646
|
while (parent && !parent.vapor) {
|
|
3650
3647
|
const root = parent.subTree;
|
|
3651
|
-
if (root.suspense && root.suspense.activeBranch === vnode)
|
|
3648
|
+
if (root.suspense && root.suspense.activeBranch === vnode) {
|
|
3649
|
+
root.suspense.vnode.el = root.el = el;
|
|
3650
|
+
vnode = root;
|
|
3651
|
+
}
|
|
3652
3652
|
if (root === vnode) {
|
|
3653
3653
|
(vnode = parent.vnode).el = el;
|
|
3654
3654
|
parent = parent.parent;
|
|
3655
3655
|
} else break;
|
|
3656
3656
|
}
|
|
3657
|
+
if (suspense && suspense.activeBranch === vnode) suspense.vnode.el = el;
|
|
3657
3658
|
}
|
|
3658
|
-
|
|
3659
3659
|
//#endregion
|
|
3660
3660
|
//#region packages/runtime-core/src/internalObject.ts
|
|
3661
3661
|
/**
|
|
@@ -3667,7 +3667,6 @@ function updateHOCHostEl({ vnode, parent }, el) {
|
|
|
3667
3667
|
const internalObjectProto = {};
|
|
3668
3668
|
const createInternalObject = () => Object.create(internalObjectProto);
|
|
3669
3669
|
const isInternalObject = (obj) => Object.getPrototypeOf(obj) === internalObjectProto;
|
|
3670
|
-
|
|
3671
3670
|
//#endregion
|
|
3672
3671
|
//#region packages/runtime-core/src/componentProps.ts
|
|
3673
3672
|
function initProps(instance, rawProps, isStateful, isSSR = false) {
|
|
@@ -3963,7 +3962,6 @@ function isExplicable(type) {
|
|
|
3963
3962
|
function isBoolean(...args) {
|
|
3964
3963
|
return args.some((elem) => elem.toLowerCase() === "boolean");
|
|
3965
3964
|
}
|
|
3966
|
-
|
|
3967
3965
|
//#endregion
|
|
3968
3966
|
//#region packages/runtime-core/src/componentSlots.ts
|
|
3969
3967
|
const isInternalKey = (key) => key === "_" || key === "_ctx" || key === "$stable";
|
|
@@ -4032,7 +4030,6 @@ const updateSlots = (instance, children, optimized) => {
|
|
|
4032
4030
|
for (const key in slots) if (!isInternalKey(key) && deletionComparisonTarget[key] == null) delete slots[key];
|
|
4033
4031
|
}
|
|
4034
4032
|
};
|
|
4035
|
-
|
|
4036
4033
|
//#endregion
|
|
4037
4034
|
//#region packages/runtime-core/src/profiling.ts
|
|
4038
4035
|
let supported;
|
|
@@ -4071,7 +4068,6 @@ function isSupported() {
|
|
|
4071
4068
|
} else supported = false;
|
|
4072
4069
|
return supported;
|
|
4073
4070
|
}
|
|
4074
|
-
|
|
4075
4071
|
//#endregion
|
|
4076
4072
|
//#region packages/runtime-core/src/featureFlags.ts
|
|
4077
4073
|
let initialized = false;
|
|
@@ -4101,7 +4097,6 @@ function initFeatureFlags() {
|
|
|
4101
4097
|
}
|
|
4102
4098
|
initialized = true;
|
|
4103
4099
|
}
|
|
4104
|
-
|
|
4105
4100
|
//#endregion
|
|
4106
4101
|
//#region packages/runtime-core/src/renderer.ts
|
|
4107
4102
|
const MoveType = {
|
|
@@ -4267,10 +4262,19 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4267
4262
|
if (dirs) invokeDirectiveHook(vnode, null, parentComponent, "beforeMount");
|
|
4268
4263
|
if (transition) performTransitionEnter(el, transition, () => hostInsert(el, container, anchor), parentSuspense);
|
|
4269
4264
|
else hostInsert(el, container, anchor);
|
|
4270
|
-
if ((vnodeHook = props && props.onVnodeMounted) || dirs)
|
|
4271
|
-
|
|
4272
|
-
|
|
4273
|
-
|
|
4265
|
+
if ((vnodeHook = props && props.onVnodeMounted) || dirs) {
|
|
4266
|
+
const isHmr = !!(process.env.NODE_ENV !== "production") && isHmrUpdating;
|
|
4267
|
+
queuePostRenderEffect(() => {
|
|
4268
|
+
let prev;
|
|
4269
|
+
if (!!(process.env.NODE_ENV !== "production")) prev = setHmrUpdating(isHmr);
|
|
4270
|
+
try {
|
|
4271
|
+
vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
4272
|
+
dirs && invokeDirectiveHook(vnode, null, parentComponent, "mounted");
|
|
4273
|
+
} finally {
|
|
4274
|
+
if (!!(process.env.NODE_ENV !== "production")) setHmrUpdating(prev);
|
|
4275
|
+
}
|
|
4276
|
+
}, void 0, parentSuspense);
|
|
4277
|
+
}
|
|
4274
4278
|
};
|
|
4275
4279
|
const setScopeId = (el, vnode, scopeId, slotScopeIds, parentComponent) => {
|
|
4276
4280
|
if (scopeId) hostSetScopeId(el, scopeId);
|
|
@@ -4499,7 +4503,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4499
4503
|
if (isAsyncWrapperVNode && type.__asyncHydrate) type.__asyncHydrate(el, instance, hydrateSubTree);
|
|
4500
4504
|
else hydrateSubTree();
|
|
4501
4505
|
} else {
|
|
4502
|
-
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type);
|
|
4506
|
+
if (root.ce && root.ce._hasShadowRoot()) root.ce._injectChildStyle(type, instance.parent ? instance.parent.type : void 0);
|
|
4503
4507
|
if (!!(process.env.NODE_ENV !== "production")) startMeasure(instance, `render`);
|
|
4504
4508
|
const subTree = instance.subTree = renderComponentRoot(instance);
|
|
4505
4509
|
if (!!(process.env.NODE_ENV !== "production")) endMeasure(instance, `render`);
|
|
@@ -4750,7 +4754,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4750
4754
|
else hostInsert(el, container, anchor);
|
|
4751
4755
|
};
|
|
4752
4756
|
const unmount = (vnode, parentComponent, parentSuspense, doRemove = false, optimized = false) => {
|
|
4753
|
-
const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex } = vnode;
|
|
4757
|
+
const { type, props, ref, children, dynamicChildren, shapeFlag, patchFlag, dirs, cacheIndex, memo } = vnode;
|
|
4754
4758
|
if (patchFlag === -2) optimized = false;
|
|
4755
4759
|
if (ref != null) {
|
|
4756
4760
|
const prevSub = setActiveSub();
|
|
@@ -4788,9 +4792,11 @@ function baseCreateRenderer(options, createHydrationFns) {
|
|
|
4788
4792
|
}
|
|
4789
4793
|
if (doRemove) remove(vnode);
|
|
4790
4794
|
}
|
|
4791
|
-
|
|
4795
|
+
const shouldInvalidateMemo = memo != null && cacheIndex == null;
|
|
4796
|
+
if (shouldInvokeVnodeHook && (vnodeHook = props && props.onVnodeUnmounted) || shouldInvokeDirs || shouldInvalidateMemo) queuePostRenderEffect(() => {
|
|
4792
4797
|
vnodeHook && invokeVNodeHook(vnodeHook, parentComponent, vnode);
|
|
4793
4798
|
shouldInvokeDirs && invokeDirectiveHook(vnode, null, parentComponent, "unmounted");
|
|
4799
|
+
if (shouldInvalidateMemo) vnode.el = null;
|
|
4794
4800
|
}, void 0, parentSuspense);
|
|
4795
4801
|
};
|
|
4796
4802
|
const remove = (vnode) => {
|
|
@@ -5013,12 +5019,11 @@ function resolveAsyncComponentPlaceholder(anchorVnode) {
|
|
|
5013
5019
|
if (instance) return resolveAsyncComponentPlaceholder(instance.subTree);
|
|
5014
5020
|
return null;
|
|
5015
5021
|
}
|
|
5016
|
-
|
|
5017
5022
|
//#endregion
|
|
5018
5023
|
//#region packages/runtime-core/src/components/Suspense.ts
|
|
5019
5024
|
const isSuspense = (type) => type.__isSuspense;
|
|
5020
5025
|
let suspenseId = 0;
|
|
5021
|
-
const
|
|
5026
|
+
const Suspense = {
|
|
5022
5027
|
name: "Suspense",
|
|
5023
5028
|
__isSuspense: true,
|
|
5024
5029
|
process(n1, n2, container, anchor, parentComponent, parentSuspense, namespace, slotScopeIds, optimized, rendererInternals) {
|
|
@@ -5036,7 +5041,6 @@ const SuspenseImpl = {
|
|
|
5036
5041
|
hydrate: hydrateSuspense,
|
|
5037
5042
|
normalize: normalizeSuspenseChildren
|
|
5038
5043
|
};
|
|
5039
|
-
const Suspense = SuspenseImpl;
|
|
5040
5044
|
function triggerEvent(vnode, name) {
|
|
5041
5045
|
const eventListener = vnode.props && vnode.props[name];
|
|
5042
5046
|
if (isFunction(eventListener)) eventListener();
|
|
@@ -5145,6 +5149,7 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
5145
5149
|
pendingId: suspenseId++,
|
|
5146
5150
|
timeout: typeof timeout === "number" ? timeout : -1,
|
|
5147
5151
|
activeBranch: null,
|
|
5152
|
+
isFallbackMountPending: false,
|
|
5148
5153
|
pendingBranch: null,
|
|
5149
5154
|
isInFallback: !isHydrating,
|
|
5150
5155
|
isHydrating,
|
|
@@ -5167,13 +5172,14 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
5167
5172
|
if (isInFallback && vnode.ssFallback) vnode.ssFallback.el = null;
|
|
5168
5173
|
}
|
|
5169
5174
|
};
|
|
5170
|
-
if (activeBranch) {
|
|
5175
|
+
if (activeBranch && !suspense.isFallbackMountPending) {
|
|
5171
5176
|
if (parentNode(activeBranch.el) === container) anchor = next(activeBranch);
|
|
5172
5177
|
unmount(activeBranch, parentComponent, suspense, true);
|
|
5173
5178
|
if (!delayEnter && isInFallback && vnode.ssFallback) queuePostRenderEffect(() => vnode.ssFallback.el = null, void 0, suspense);
|
|
5174
5179
|
}
|
|
5175
5180
|
if (!delayEnter) move(pendingBranch, container, anchor, 0, parentComponent);
|
|
5176
5181
|
}
|
|
5182
|
+
suspense.isFallbackMountPending = false;
|
|
5177
5183
|
setActiveBranch(suspense, pendingBranch);
|
|
5178
5184
|
suspense.pendingBranch = null;
|
|
5179
5185
|
suspense.isInFallback = false;
|
|
@@ -5203,12 +5209,16 @@ function createSuspenseBoundary(vnode, parentSuspense, parentComponent, containe
|
|
|
5203
5209
|
triggerEvent(vnode, "onFallback");
|
|
5204
5210
|
const anchor = next(activeBranch);
|
|
5205
5211
|
const mountFallback = () => {
|
|
5212
|
+
suspense.isFallbackMountPending = false;
|
|
5206
5213
|
if (!suspense.isInFallback) return;
|
|
5207
5214
|
patch(null, fallbackVNode, container, anchor, parentComponent, null, namespace, slotScopeIds, optimized);
|
|
5208
5215
|
setActiveBranch(suspense, fallbackVNode);
|
|
5209
5216
|
};
|
|
5210
5217
|
const delayEnter = fallbackVNode.transition && fallbackVNode.transition.mode === "out-in";
|
|
5211
|
-
if (delayEnter)
|
|
5218
|
+
if (delayEnter) {
|
|
5219
|
+
suspense.isFallbackMountPending = true;
|
|
5220
|
+
activeBranch.transition.afterLeave = mountFallback;
|
|
5221
|
+
}
|
|
5212
5222
|
suspense.isInFallback = true;
|
|
5213
5223
|
unmount(activeBranch, parentComponent, null, true);
|
|
5214
5224
|
if (!delayEnter) mountFallback();
|
|
@@ -5299,7 +5309,6 @@ function isVNodeSuspensible(vnode) {
|
|
|
5299
5309
|
const suspensible = vnode.props && vnode.props.suspensible;
|
|
5300
5310
|
return suspensible != null && suspensible !== false;
|
|
5301
5311
|
}
|
|
5302
|
-
|
|
5303
5312
|
//#endregion
|
|
5304
5313
|
//#region packages/runtime-core/src/vnode.ts
|
|
5305
5314
|
const Fragment = Symbol.for("v-fgt");
|
|
@@ -5610,6 +5619,7 @@ function mergeProps(...args) {
|
|
|
5610
5619
|
const existing = ret[key];
|
|
5611
5620
|
const incoming = toMerge[key];
|
|
5612
5621
|
if (incoming && existing !== incoming && !(isArray(existing) && existing.includes(incoming))) ret[key] = existing ? [].concat(existing, incoming) : incoming;
|
|
5622
|
+
else if (incoming == null && existing == null && !isModelListener(key)) ret[key] = incoming;
|
|
5613
5623
|
} else if (key !== "") ret[key] = toMerge[key];
|
|
5614
5624
|
}
|
|
5615
5625
|
return ret;
|
|
@@ -5617,7 +5627,6 @@ function mergeProps(...args) {
|
|
|
5617
5627
|
function invokeVNodeHook(hook, instance, vnode, prevVNode = null) {
|
|
5618
5628
|
callWithAsyncErrorHandling(hook, instance, 7, [vnode, prevVNode]);
|
|
5619
5629
|
}
|
|
5620
|
-
|
|
5621
5630
|
//#endregion
|
|
5622
5631
|
//#region packages/runtime-core/src/componentCurrentInstance.ts
|
|
5623
5632
|
/**
|
|
@@ -5685,7 +5694,6 @@ const useInstanceOption = (key, silent = false) => {
|
|
|
5685
5694
|
value: instance[key]
|
|
5686
5695
|
};
|
|
5687
5696
|
};
|
|
5688
|
-
|
|
5689
5697
|
//#endregion
|
|
5690
5698
|
//#region packages/runtime-core/src/component.ts
|
|
5691
5699
|
const emptyAppContext = /* @__PURE__ */ createAppContext();
|
|
@@ -6000,13 +6008,11 @@ function formatComponentName(instance, Component, isRoot = false) {
|
|
|
6000
6008
|
function isClassComponent(value) {
|
|
6001
6009
|
return isFunction(value) && "__vccOpts" in value;
|
|
6002
6010
|
}
|
|
6003
|
-
|
|
6004
6011
|
//#endregion
|
|
6005
6012
|
//#region packages/runtime-core/src/apiComputed.ts
|
|
6006
6013
|
const computed = (getterOrOptions, debugOptions) => {
|
|
6007
6014
|
return computed$1(getterOrOptions, debugOptions, isInSSRComponentSetup);
|
|
6008
6015
|
};
|
|
6009
|
-
|
|
6010
6016
|
//#endregion
|
|
6011
6017
|
//#region packages/runtime-core/src/h.ts
|
|
6012
6018
|
function h(type, propsOrChildren, children) {
|
|
@@ -6026,7 +6032,6 @@ function h(type, propsOrChildren, children) {
|
|
|
6026
6032
|
setBlockTracking(1);
|
|
6027
6033
|
}
|
|
6028
6034
|
}
|
|
6029
|
-
|
|
6030
6035
|
//#endregion
|
|
6031
6036
|
//#region packages/runtime-core/src/customFormatter.ts
|
|
6032
6037
|
function initCustomFormatter() {
|
|
@@ -6191,7 +6196,6 @@ function initCustomFormatter() {
|
|
|
6191
6196
|
if (window.devtoolsFormatters) window.devtoolsFormatters.push(formatter);
|
|
6192
6197
|
else window.devtoolsFormatters = [formatter];
|
|
6193
6198
|
}
|
|
6194
|
-
|
|
6195
6199
|
//#endregion
|
|
6196
6200
|
//#region packages/runtime-core/src/helpers/withMemo.ts
|
|
6197
6201
|
function withMemo(memo, render, cache, index) {
|
|
@@ -6209,10 +6213,9 @@ function isMemoSame(cached, memo) {
|
|
|
6209
6213
|
if (isBlockTreeEnabled > 0 && currentBlock) currentBlock.push(cached);
|
|
6210
6214
|
return true;
|
|
6211
6215
|
}
|
|
6212
|
-
|
|
6213
6216
|
//#endregion
|
|
6214
6217
|
//#region packages/runtime-core/src/index.ts
|
|
6215
|
-
const version = "3.6.0-beta.
|
|
6218
|
+
const version = "3.6.0-beta.9";
|
|
6216
6219
|
const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
6217
6220
|
/**
|
|
6218
6221
|
* Runtime error messages. Only exposed in dev or esm builds.
|
|
@@ -6221,7 +6224,11 @@ const warn = !!(process.env.NODE_ENV !== "production") ? warn$1 : NOOP;
|
|
|
6221
6224
|
const ErrorTypeStrings = ErrorTypeStrings$1;
|
|
6222
6225
|
const devtools = (process.env.NODE_ENV, devtools$1);
|
|
6223
6226
|
const setDevtoolsHook = (process.env.NODE_ENV, setDevtoolsHook$1);
|
|
6224
|
-
|
|
6227
|
+
/**
|
|
6228
|
+
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
6229
|
+
* @internal
|
|
6230
|
+
*/
|
|
6231
|
+
const ssrUtils = {
|
|
6225
6232
|
createComponentInstance,
|
|
6226
6233
|
setupComponent,
|
|
6227
6234
|
renderComponentRoot,
|
|
@@ -6234,11 +6241,6 @@ const _ssrUtils = {
|
|
|
6234
6241
|
popWarningContext
|
|
6235
6242
|
};
|
|
6236
6243
|
/**
|
|
6237
|
-
* SSR utils for \@vue/server-renderer. Only exposed in ssr-possible builds.
|
|
6238
|
-
* @internal
|
|
6239
|
-
*/
|
|
6240
|
-
const ssrUtils = _ssrUtils;
|
|
6241
|
-
/**
|
|
6242
6244
|
* @internal only exposed in compat builds
|
|
6243
6245
|
*/
|
|
6244
6246
|
const resolveFilter = null;
|
|
@@ -6247,6 +6249,5 @@ const resolveFilter = null;
|
|
|
6247
6249
|
*/
|
|
6248
6250
|
const compatUtils = null;
|
|
6249
6251
|
const DeprecationTypes = null;
|
|
6250
|
-
|
|
6251
6252
|
//#endregion
|
|
6252
|
-
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MismatchTypes, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, SchedulerJobFlags, Static, Suspense, Teleport, Text, TrackOpTypes, TriggerOpTypes, activate, assertNumber, baseEmit, baseNormalizePropsOptions, baseResolveTransitionHooks, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, checkTransitionMode, cloneVNode, compatUtils, computed, createAppAPI, createAsyncComponentContext, createBlock, createCanSetSetupRefChecker, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createInternalObject, createPropsRestProxy, createRenderer, createSlots, createStaticVNode, createTextVNode, createVNode, currentInstance, customRef, deactivate, defineAsyncComponent, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSlots, devtools, devtoolsComponentAdded, effect, effectScope, endMeasure, ensureVaporSlotFallback, expose, flushOnAppMount, getAttributeMismatch, getComponentName, getCurrentInstance, getCurrentScope, getCurrentWatcher, getFunctionalFallthrough, getInheritedScopeIds, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initFeatureFlags, inject, isAsyncWrapper, isEmitListener, isHydrating, isKeepAlive, isMapEqual, isMemoSame, isMismatchAllowed, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isSetEqual, isShallow, isTeleportDeferred, isTeleportDisabled, isTemplateNode, isTemplateRefKey, isVNode, isValidHtmlOrSvgAttribute, knownTemplateRefs, leaveCbKey, markAsyncBoundary, markRaw, matches, mergeDefaults, mergeModels, mergeProps, nextTick, nextUid, normalizeClass, normalizeProps, normalizeRef, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, performAsyncHydrate, performTransitionEnter, performTransitionLeave, popScopeId, popWarningContext, provide, proxyRefs, pushScopeId, pushWarningContext, queueJob, queuePostFlushCb, reactive, readonly, ref, registerHMR, registerRuntimeCompiler, renderList, renderSlot, resetShapeFlag, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolvePropValue, resolveTarget as resolveTeleportTarget, resolveTransitionHooks, setBlockTracking, setCurrentInstance, setCurrentRenderingInstance, setDevtoolsHook, setIsHydratingEnabled, setRef, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, simpleSetCurrentInstance, ssrContextKey, ssrUtils, startMeasure, stop, toClassSet, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toStyleMap, toValue, transformVNodeArgs, triggerRef, unref, unregisterHMR, useAsyncComponentState, useAttrs, useId, useInstanceOption, useModel, useSSRContext, useSlots, useTemplateRef, useTransitionState, validateComponentName, validateProps, version, warn, warnExtraneousAttributes, warnPropMismatch, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withMemo, withScopeId };
|
|
6253
|
+
export { BaseTransition, BaseTransitionPropsValidators, Comment, DeprecationTypes, EffectScope, ErrorCodes, ErrorTypeStrings, Fragment, KeepAlive, MismatchTypes, MoveType, NULL_DYNAMIC_COMPONENT, ReactiveEffect, SchedulerJobFlags, Static, Suspense, Teleport, Text, TrackOpTypes, TriggerOpTypes, activate, assertNumber, baseEmit, baseNormalizePropsOptions, baseResolveTransitionHooks, callWithAsyncErrorHandling, callWithErrorHandling, camelize, capitalize, checkTransitionMode, cloneVNode, compatUtils, computed, createAppAPI, createAsyncComponentContext, createBlock, createCanSetSetupRefChecker, createCommentVNode, createElementBlock, createBaseVNode as createElementVNode, createHydrationRenderer, createInternalObject, createPropsRestProxy, createRenderer, createSlots, createStaticVNode, createTextVNode, createVNode, currentInstance, customRef, deactivate, defineAsyncComponent, defineComponent, defineEmits, defineExpose, defineModel, defineOptions, defineProps, defineSlots, devtools, devtoolsComponentAdded, effect, effectScope, endMeasure, ensureVaporSlotFallback, expose, flushOnAppMount, getAttributeMismatch, getComponentName, getCurrentInstance, getCurrentScope, getCurrentWatcher, getFunctionalFallthrough, getInheritedScopeIds, getTransitionRawChildren, guardReactiveProps, h, handleError, hasInjectionContext, hydrateOnIdle, hydrateOnInteraction, hydrateOnMediaQuery, hydrateOnVisible, initCustomFormatter, initFeatureFlags, inject, invalidateMount, invokeDirectiveHook, isAsyncWrapper, isEmitListener, isHydrating, isKeepAlive, isMapEqual, isMemoSame, isMismatchAllowed, isProxy, isReactive, isReadonly, isRef, isRuntimeOnly, isSetEqual, isShallow, isTeleportDeferred, isTeleportDisabled, isTemplateNode, isTemplateRefKey, isVNode, isValidHtmlOrSvgAttribute, knownTemplateRefs, leaveCbKey, markAsyncBoundary, markRaw, matches, mergeDefaults, mergeModels, mergeProps, nextTick, nextUid, normalizeClass, normalizeProps, normalizeRef, normalizeStyle, onActivated, onBeforeMount, onBeforeUnmount, onBeforeUpdate, onDeactivated, onErrorCaptured, onMounted, onRenderTracked, onRenderTriggered, onScopeDispose, onServerPrefetch, onUnmounted, onUpdated, onWatcherCleanup, openBlock, performAsyncHydrate, performTransitionEnter, performTransitionLeave, popScopeId, popWarningContext, provide, proxyRefs, pushScopeId, pushWarningContext, queueJob, queuePostFlushCb, reactive, readonly, ref, registerHMR, registerRuntimeCompiler, renderList, renderSlot, resetShapeFlag, resolveComponent, resolveDirective, resolveDynamicComponent, resolveFilter, resolvePropValue, resolveTarget as resolveTeleportTarget, resolveTransitionHooks, setBlockTracking, setCurrentInstance, setCurrentRenderingInstance, setDevtoolsHook, setIsHydratingEnabled, setRef, setTransitionHooks, shallowReactive, shallowReadonly, shallowRef, shouldUpdateComponent, simpleSetCurrentInstance, ssrContextKey, ssrUtils, startMeasure, stop, toClassSet, toDisplayString, toHandlerKey, toHandlers, toRaw, toRef, toRefs, toStyleMap, toValue, transformVNodeArgs, triggerRef, unref, unregisterHMR, useAsyncComponentState, useAttrs, useId, useInstanceOption, useModel, useSSRContext, useSlots, useTemplateRef, useTransitionState, validateComponentName, validateProps, version, warn, warnExtraneousAttributes, warnPropMismatch, watch, watchEffect, watchPostEffect, watchSyncEffect, withAsyncContext, withCtx, withDefaults, withDirectives, withMemo, withScopeId };
|