4/5/1404
This commit is contained in:
+23
-39
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/compiler-core v3.5.18
|
||||
* @vue/compiler-core v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -1063,7 +1063,7 @@ class Tokenizer {
|
||||
this.buffer = input;
|
||||
while (this.index < this.buffer.length) {
|
||||
const c = this.buffer.charCodeAt(this.index);
|
||||
if (c === 10 && this.state !== 33) {
|
||||
if (c === 10) {
|
||||
this.newlines.push(this.index);
|
||||
}
|
||||
switch (this.state) {
|
||||
@@ -1602,15 +1602,14 @@ function isReferencedIdentifier(id, parent, parentStack) {
|
||||
if (id.name === "arguments") {
|
||||
return false;
|
||||
}
|
||||
if (isReferenced(id, parent, parentStack[parentStack.length - 2])) {
|
||||
if (isReferenced(id, parent)) {
|
||||
return true;
|
||||
}
|
||||
switch (parent.type) {
|
||||
case "AssignmentExpression":
|
||||
case "AssignmentPattern":
|
||||
return true;
|
||||
case "ObjectProperty":
|
||||
return parent.key !== id && isInDestructureAssignment(parent, parentStack);
|
||||
case "ObjectPattern":
|
||||
case "ArrayPattern":
|
||||
return isInDestructureAssignment(parent, parentStack);
|
||||
}
|
||||
@@ -1779,7 +1778,7 @@ function isReferenced(node, parent, grandparent) {
|
||||
if (parent.key === node) {
|
||||
return !!parent.computed;
|
||||
}
|
||||
return !grandparent || grandparent.type !== "ObjectPattern";
|
||||
return true;
|
||||
// no: class { NODE = value; }
|
||||
// yes: class { [NODE] = value; }
|
||||
// yes: class { key = NODE; }
|
||||
@@ -1829,9 +1828,6 @@ function isReferenced(node, parent, grandparent) {
|
||||
// yes: export { NODE as foo };
|
||||
// no: export { NODE as foo } from "foo";
|
||||
case "ExportSpecifier":
|
||||
if (grandparent == null ? void 0 : grandparent.source) {
|
||||
return false;
|
||||
}
|
||||
return parent.local === node;
|
||||
// no: import NODE from "foo";
|
||||
// no: import * as NODE from "foo";
|
||||
@@ -1912,7 +1908,7 @@ function isCoreComponent(tag) {
|
||||
return BASE_TRANSITION;
|
||||
}
|
||||
}
|
||||
const nonIdentifierRE = /^$|^\d|[^\$\w\xA0-\uFFFF]/;
|
||||
const nonIdentifierRE = /^\d|[^\$\w\xA0-\uFFFF]/;
|
||||
const isSimpleIdentifier = (name) => !nonIdentifierRE.test(name);
|
||||
const validFirstIdentCharRE = /[A-Za-z_$\xA0-\uFFFF]/;
|
||||
const validIdentCharRE = /[\.\?\w$\xA0-\uFFFF]/;
|
||||
@@ -2077,9 +2073,6 @@ function hasDynamicKeyVBind(node) {
|
||||
function isText$1(node) {
|
||||
return node.type === 5 || node.type === 2;
|
||||
}
|
||||
function isVPre(p) {
|
||||
return p.type === 7 && p.name === "pre";
|
||||
}
|
||||
function isVSlot(p) {
|
||||
return p.type === 7 && p.name === "slot";
|
||||
}
|
||||
@@ -2378,7 +2371,7 @@ const tokenizer = new Tokenizer(stack, {
|
||||
ondirarg(start, end) {
|
||||
if (start === end) return;
|
||||
const arg = getSlice(start, end);
|
||||
if (inVPre && !isVPre(currentProp)) {
|
||||
if (inVPre) {
|
||||
currentProp.name += arg;
|
||||
setLocEnd(currentProp.nameLoc, end);
|
||||
} else {
|
||||
@@ -2393,7 +2386,7 @@ const tokenizer = new Tokenizer(stack, {
|
||||
},
|
||||
ondirmodifier(start, end) {
|
||||
const mod = getSlice(start, end);
|
||||
if (inVPre && !isVPre(currentProp)) {
|
||||
if (inVPre) {
|
||||
currentProp.name += "." + mod;
|
||||
setLocEnd(currentProp.nameLoc, end);
|
||||
} else if (currentProp.name === "slot") {
|
||||
@@ -2786,7 +2779,7 @@ function isUpperCase(c) {
|
||||
return c > 64 && c < 91;
|
||||
}
|
||||
const windowsNewlineRE = /\r\n/g;
|
||||
function condenseWhitespace(nodes) {
|
||||
function condenseWhitespace(nodes, tag) {
|
||||
const shouldCondense = currentOptions.whitespace !== "preserve";
|
||||
let removedWhitespace = false;
|
||||
for (let i = 0; i < nodes.length; i++) {
|
||||
@@ -2965,12 +2958,12 @@ function cacheStatic(root, context) {
|
||||
context,
|
||||
// Root node is unfortunately non-hoistable due to potential parent
|
||||
// fallthrough attributes.
|
||||
!!getSingleElementRoot(root)
|
||||
isSingleElementRoot(root, root.children[0])
|
||||
);
|
||||
}
|
||||
function getSingleElementRoot(root) {
|
||||
const children = root.children.filter((x) => x.type !== 3);
|
||||
return children.length === 1 && children[0].type === 1 && !isSlotOutlet(children[0]) ? children[0] : null;
|
||||
function isSingleElementRoot(root, child) {
|
||||
const { children } = root;
|
||||
return children.length === 1 && child.type === 1 && !isSlotOutlet(child);
|
||||
}
|
||||
function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
||||
const { children } = node;
|
||||
@@ -3003,11 +2996,6 @@ function walk(node, parent, context, doNotHoistNode = false, inFor = false) {
|
||||
} else if (child.type === 12) {
|
||||
const constantType = doNotHoistNode ? 0 : getConstantType(child, context);
|
||||
if (constantType >= 2) {
|
||||
if (child.codegenNode.type === 14 && child.codegenNode.arguments.length > 0) {
|
||||
child.codegenNode.arguments.push(
|
||||
-1 + (``)
|
||||
);
|
||||
}
|
||||
toCache.push(child);
|
||||
continue;
|
||||
}
|
||||
@@ -3455,15 +3443,15 @@ function createRootCodegen(root, context) {
|
||||
const { helper } = context;
|
||||
const { children } = root;
|
||||
if (children.length === 1) {
|
||||
const singleElementRootChild = getSingleElementRoot(root);
|
||||
if (singleElementRootChild && singleElementRootChild.codegenNode) {
|
||||
const codegenNode = singleElementRootChild.codegenNode;
|
||||
const child = children[0];
|
||||
if (isSingleElementRoot(root, child) && child.codegenNode) {
|
||||
const codegenNode = child.codegenNode;
|
||||
if (codegenNode.type === 13) {
|
||||
convertToBlock(codegenNode, context);
|
||||
}
|
||||
root.codegenNode = codegenNode;
|
||||
} else {
|
||||
root.codegenNode = children[0];
|
||||
root.codegenNode = child;
|
||||
}
|
||||
} else if (children.length > 1) {
|
||||
let patchFlag = 64;
|
||||
@@ -3619,9 +3607,7 @@ function createCodegenContext(ast, {
|
||||
name = content;
|
||||
}
|
||||
}
|
||||
if (node.loc.source) {
|
||||
addMapping(node.loc.start, name);
|
||||
}
|
||||
addMapping(node.loc.start, name);
|
||||
}
|
||||
if (newlineIndex === -3 /* Unknown */) {
|
||||
advancePositionWithMutation(context, code);
|
||||
@@ -3637,7 +3623,7 @@ function createCodegenContext(ast, {
|
||||
context.column = code.length - newlineIndex;
|
||||
}
|
||||
}
|
||||
if (node && node.loc !== locStub && node.loc.source) {
|
||||
if (node && node.loc !== locStub) {
|
||||
addMapping(node.loc.end);
|
||||
}
|
||||
}
|
||||
@@ -4804,7 +4790,7 @@ const transformBind = (dir, _node, context) => {
|
||||
arg.children.unshift(`(`);
|
||||
arg.children.push(`) || ""`);
|
||||
} else if (!arg.isStatic) {
|
||||
arg.content = arg.content ? `${arg.content} || ""` : `""`;
|
||||
arg.content = `${arg.content} || ""`;
|
||||
}
|
||||
if (modifiers.some((mod) => mod.content === "camel")) {
|
||||
if (arg.type === 4) {
|
||||
@@ -5217,7 +5203,7 @@ function buildSlots(node, context, buildSlotFn = buildClientSlotFn) {
|
||||
let prev;
|
||||
while (j--) {
|
||||
prev = children[j];
|
||||
if (prev.type !== 3 && isNonWhitespaceContent(prev)) {
|
||||
if (prev.type !== 3) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -5712,8 +5698,9 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
||||
hasDynamicKeys = true;
|
||||
if (exp) {
|
||||
if (isVBind) {
|
||||
pushRefVForMarker();
|
||||
pushMergeArg();
|
||||
{
|
||||
pushMergeArg();
|
||||
if (isCompatEnabled(
|
||||
"COMPILER_V_BIND_OBJECT_ORDER",
|
||||
context
|
||||
@@ -5722,8 +5709,6 @@ function buildProps(node, context, props = node.props, isComponent, isDynamicCom
|
||||
continue;
|
||||
}
|
||||
}
|
||||
pushRefVForMarker();
|
||||
pushMergeArg();
|
||||
mergeArgs.push(exp);
|
||||
} else {
|
||||
pushMergeArg({
|
||||
@@ -6690,7 +6675,6 @@ exports.isStaticProperty = isStaticProperty;
|
||||
exports.isStaticPropertyKey = isStaticPropertyKey;
|
||||
exports.isTemplateNode = isTemplateNode;
|
||||
exports.isText = isText$1;
|
||||
exports.isVPre = isVPre;
|
||||
exports.isVSlot = isVSlot;
|
||||
exports.locStub = locStub;
|
||||
exports.noopDirectiveTransform = noopDirectiveTransform;
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue/compiler-core",
|
||||
"version": "3.5.18",
|
||||
"version": "3.5.14",
|
||||
"description": "@vue/compiler-core",
|
||||
"main": "index.js",
|
||||
"module": "dist/compiler-core.esm-bundler.js",
|
||||
@@ -46,13 +46,13 @@
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-core#readme",
|
||||
"dependencies": {
|
||||
"@babel/parser": "^7.28.0",
|
||||
"@babel/parser": "^7.27.2",
|
||||
"entities": "^4.5.0",
|
||||
"estree-walker": "^2.0.2",
|
||||
"source-map-js": "^1.2.1",
|
||||
"@vue/shared": "3.5.18"
|
||||
"@vue/shared": "3.5.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/types": "^7.28.1"
|
||||
"@babel/types": "^7.27.1"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/compiler-dom v3.5.18
|
||||
* @vue/compiler-dom v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue/compiler-dom",
|
||||
"version": "3.5.18",
|
||||
"version": "3.5.14",
|
||||
"description": "@vue/compiler-dom",
|
||||
"main": "index.js",
|
||||
"module": "dist/compiler-dom.esm-bundler.js",
|
||||
@@ -51,7 +51,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-dom#readme",
|
||||
"dependencies": {
|
||||
"@vue/compiler-core": "3.5.18",
|
||||
"@vue/shared": "3.5.18"
|
||||
"@vue/shared": "3.5.14",
|
||||
"@vue/compiler-core": "3.5.14"
|
||||
}
|
||||
}
|
||||
+16
-14
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/compiler-ssr v3.5.18
|
||||
* @vue/compiler-ssr v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -1086,17 +1086,6 @@ const ssrTransformModel = (dir, node, context) => {
|
||||
);
|
||||
}
|
||||
}
|
||||
const processSelectChildren = (children) => {
|
||||
children.forEach((child) => {
|
||||
if (child.type === 1) {
|
||||
processOption(child);
|
||||
} else if (child.type === 11) {
|
||||
processSelectChildren(child.children);
|
||||
} else if (child.type === 9) {
|
||||
child.branches.forEach((b) => processSelectChildren(b.children));
|
||||
}
|
||||
});
|
||||
};
|
||||
function processOption(plainNode) {
|
||||
if (plainNode.tag === "option") {
|
||||
if (plainNode.props.findIndex((p) => p.name === "selected") === -1) {
|
||||
@@ -1123,7 +1112,9 @@ const ssrTransformModel = (dir, node, context) => {
|
||||
);
|
||||
}
|
||||
} else if (plainNode.tag === "optgroup") {
|
||||
processSelectChildren(plainNode.children);
|
||||
plainNode.children.forEach(
|
||||
(option) => processOption(option)
|
||||
);
|
||||
}
|
||||
}
|
||||
if (node.tagType === 0) {
|
||||
@@ -1208,7 +1199,18 @@ const ssrTransformModel = (dir, node, context) => {
|
||||
checkDuplicatedValue();
|
||||
node.children = [compilerDom.createInterpolation(model, model.loc)];
|
||||
} else if (node.tag === "select") {
|
||||
processSelectChildren(node.children);
|
||||
const processChildren = (children) => {
|
||||
children.forEach((child) => {
|
||||
if (child.type === 1) {
|
||||
processOption(child);
|
||||
} else if (child.type === 11) {
|
||||
processChildren(child.children);
|
||||
} else if (child.type === 9) {
|
||||
child.branches.forEach((b) => processChildren(b.children));
|
||||
}
|
||||
});
|
||||
};
|
||||
processChildren(node.children);
|
||||
} else {
|
||||
context.onError(
|
||||
compilerDom.createDOMCompilerError(
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue/compiler-ssr",
|
||||
"version": "3.5.18",
|
||||
"version": "3.5.14",
|
||||
"description": "@vue/compiler-ssr",
|
||||
"main": "dist/compiler-ssr.cjs.js",
|
||||
"types": "dist/compiler-ssr.d.ts",
|
||||
@@ -28,7 +28,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/core/tree/main/packages/compiler-ssr#readme",
|
||||
"dependencies": {
|
||||
"@vue/compiler-dom": "3.5.18",
|
||||
"@vue/shared": "3.5.18"
|
||||
"@vue/shared": "3.5.14",
|
||||
"@vue/compiler-dom": "3.5.14"
|
||||
}
|
||||
}
|
||||
+4
-97
@@ -4552,21 +4552,18 @@ function getAppRecordId(app, defaultId) {
|
||||
return id;
|
||||
}
|
||||
function createAppRecord(app, types) {
|
||||
var _a25, _b25;
|
||||
const rootInstance = getAppRootInstance(app);
|
||||
if (rootInstance) {
|
||||
appRecordInfo.id++;
|
||||
const name = getAppRecordName(app, appRecordInfo.id.toString());
|
||||
const id = getAppRecordId(app, (0, import_speakingurl.default)(name));
|
||||
const [el] = getRootElementsFromComponentInstance(rootInstance);
|
||||
const record = {
|
||||
id,
|
||||
name,
|
||||
types,
|
||||
instanceMap: /* @__PURE__ */ new Map(),
|
||||
perfGroupIds: /* @__PURE__ */ new Map(),
|
||||
rootInstance,
|
||||
iframe: import_devtools_shared20.isBrowser && document !== (el == null ? void 0 : el.ownerDocument) ? (_b25 = (_a25 = el == null ? void 0 : el.ownerDocument) == null ? void 0 : _a25.location) == null ? void 0 : _b25.pathname : void 0
|
||||
rootInstance
|
||||
};
|
||||
app.__VUE_DEVTOOLS_NEXT_APP_RECORD__ = record;
|
||||
const rootId = `${record.id}:root`;
|
||||
@@ -4578,96 +4575,9 @@ function createAppRecord(app, types) {
|
||||
}
|
||||
}
|
||||
|
||||
// src/core/iframe/index.ts
|
||||
init_cjs_shims();
|
||||
function detectIframeApp(target22, inIframe = false) {
|
||||
if (inIframe) {
|
||||
let sendEventToParent2 = function(cb) {
|
||||
try {
|
||||
const hook3 = window.parent.__VUE_DEVTOOLS_GLOBAL_HOOK__;
|
||||
if (hook3) {
|
||||
cb(hook3);
|
||||
}
|
||||
} catch (e) {
|
||||
}
|
||||
};
|
||||
var sendEventToParent = sendEventToParent2;
|
||||
const hook2 = {
|
||||
id: "vue-devtools-next",
|
||||
devtoolsVersion: "7.0",
|
||||
on: (event, cb) => {
|
||||
sendEventToParent2((hook3) => {
|
||||
hook3.on(event, cb);
|
||||
});
|
||||
},
|
||||
once: (event, cb) => {
|
||||
sendEventToParent2((hook3) => {
|
||||
hook3.once(event, cb);
|
||||
});
|
||||
},
|
||||
off: (event, cb) => {
|
||||
sendEventToParent2((hook3) => {
|
||||
hook3.off(event, cb);
|
||||
});
|
||||
},
|
||||
emit: (event, ...payload) => {
|
||||
sendEventToParent2((hook3) => {
|
||||
hook3.emit(event, ...payload);
|
||||
});
|
||||
}
|
||||
};
|
||||
Object.defineProperty(target22, "__VUE_DEVTOOLS_GLOBAL_HOOK__", {
|
||||
get() {
|
||||
return hook2;
|
||||
},
|
||||
configurable: true
|
||||
});
|
||||
}
|
||||
function injectVueHookToIframe(iframe) {
|
||||
if (iframe.__vdevtools__injected) {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
iframe.__vdevtools__injected = true;
|
||||
const inject = () => {
|
||||
try {
|
||||
iframe.contentWindow.__VUE_DEVTOOLS_IFRAME__ = iframe;
|
||||
const script = iframe.contentDocument.createElement("script");
|
||||
script.textContent = `;(${detectIframeApp.toString()})(window, true)`;
|
||||
iframe.contentDocument.documentElement.appendChild(script);
|
||||
script.parentNode.removeChild(script);
|
||||
} catch (e) {
|
||||
}
|
||||
};
|
||||
inject();
|
||||
iframe.addEventListener("load", () => inject());
|
||||
} catch (e) {
|
||||
}
|
||||
}
|
||||
function injectVueHookToIframes() {
|
||||
if (typeof window === "undefined") {
|
||||
return;
|
||||
}
|
||||
const iframes = Array.from(document.querySelectorAll("iframe:not([data-vue-devtools-ignore])"));
|
||||
for (const iframe of iframes) {
|
||||
injectVueHookToIframe(iframe);
|
||||
}
|
||||
}
|
||||
injectVueHookToIframes();
|
||||
let iframeAppChecks = 0;
|
||||
const iframeAppCheckTimer = setInterval(() => {
|
||||
injectVueHookToIframes();
|
||||
iframeAppChecks++;
|
||||
if (iframeAppChecks >= 5) {
|
||||
clearInterval(iframeAppCheckTimer);
|
||||
}
|
||||
}, 1e3);
|
||||
}
|
||||
|
||||
// src/core/index.ts
|
||||
function initDevTools() {
|
||||
var _a25;
|
||||
detectIframeApp(import_devtools_shared21.target);
|
||||
updateDevToolsState({
|
||||
vitePluginDetected: getDevToolsEnv().vitePluginDetected
|
||||
});
|
||||
@@ -4687,10 +4597,8 @@ function initDevTools() {
|
||||
import_devtools_shared21.target.__VUE_DEVTOOLS_VUE2_APP_DETECTED__ = true;
|
||||
console.log("%c[_____Vue DevTools v7 log_____]", "color: red; font-bold: 600; font-size: 16px;");
|
||||
console.log("%cVue DevTools v7 detected in your Vue2 project. v7 only supports Vue3 and will not work.", "font-bold: 500; font-size: 14px;");
|
||||
const legacyChromeUrl = "https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp";
|
||||
const legacyFirefoxUrl = "https://addons.mozilla.org/firefox/addon/vue-js-devtools-v6-legacy";
|
||||
console.log(`%cThe legacy version of chrome extension that supports both Vue 2 and Vue 3 has been moved to %c ${legacyChromeUrl}`, "font-size: 14px;", "text-decoration: underline; cursor: pointer;font-size: 14px;");
|
||||
console.log(`%cThe legacy version of firefox extension that supports both Vue 2 and Vue 3 has been moved to %c ${legacyFirefoxUrl}`, "font-size: 14px;", "text-decoration: underline; cursor: pointer;font-size: 14px;");
|
||||
const url = "https://chromewebstore.google.com/detail/vuejs-devtools/iaajmlceplecbljialhhkmedjlpdblhp";
|
||||
console.log(`%cThe legacy version that supports both Vue 2 and Vue 3 has been moved to %c ${url}`, "font-size: 14px;", "text-decoration: underline; cursor: pointer;font-size: 14px;");
|
||||
console.log("%cPlease install and enable only the legacy version for your Vue2 app.", "font-bold: 500; font-size: 14px;");
|
||||
console.log("%c[_____Vue DevTools v7 log_____]", "color: red; font-bold: 600; font-size: 16px;");
|
||||
});
|
||||
@@ -4752,8 +4660,7 @@ function initDevTools() {
|
||||
Object.defineProperty(import_devtools_shared21.target, "__VUE_DEVTOOLS_GLOBAL_HOOK__", {
|
||||
get() {
|
||||
return _devtoolsHook;
|
||||
},
|
||||
configurable: true
|
||||
}
|
||||
});
|
||||
} else {
|
||||
if (!import_devtools_shared21.isNuxtApp) {
|
||||
|
||||
+2
-2
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@vue/devtools-kit",
|
||||
"type": "module",
|
||||
"version": "7.7.7",
|
||||
"version": "7.7.6",
|
||||
"author": "webfansplz",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
@@ -29,7 +29,7 @@
|
||||
"perfect-debounce": "^1.0.0",
|
||||
"speakingurl": "^14.0.1",
|
||||
"superjson": "^2.2.2",
|
||||
"@vue/devtools-shared": "^7.7.7"
|
||||
"@vue/devtools-shared": "^7.7.6"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/speakingurl": "^13.0.6",
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "@vue/devtools-shared",
|
||||
"type": "module",
|
||||
"version": "7.7.7",
|
||||
"version": "7.7.6",
|
||||
"author": "webfansplz",
|
||||
"license": "MIT",
|
||||
"repository": {
|
||||
|
||||
+2
-7
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/reactivity v3.5.18
|
||||
* @vue/reactivity v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -491,7 +491,6 @@ class Link {
|
||||
}
|
||||
}
|
||||
class Dep {
|
||||
// TODO isolatedDeclarations "__v_skip"
|
||||
constructor(computed) {
|
||||
this.computed = computed;
|
||||
this.version = 0;
|
||||
@@ -512,10 +511,6 @@ class Dep {
|
||||
* Subscriber counter
|
||||
*/
|
||||
this.sc = 0;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
this.__v_skip = true;
|
||||
}
|
||||
track(debugInfo) {
|
||||
if (!activeSub || !shouldTrack || activeSub === this.computed) {
|
||||
@@ -1675,11 +1670,11 @@ function watch(source, cb, options = shared.EMPTY_OBJ) {
|
||||
oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
|
||||
boundCleanup
|
||||
];
|
||||
oldValue = newValue;
|
||||
call ? call(cb, 3, args) : (
|
||||
// @ts-expect-error
|
||||
cb(...args)
|
||||
);
|
||||
oldValue = newValue;
|
||||
} finally {
|
||||
activeWatcher = currentWatcher;
|
||||
}
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue/reactivity",
|
||||
"version": "3.5.18",
|
||||
"version": "3.5.14",
|
||||
"description": "@vue/reactivity",
|
||||
"main": "index.js",
|
||||
"module": "dist/reactivity.esm-bundler.js",
|
||||
@@ -50,6 +50,6 @@
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/core/tree/main/packages/reactivity#readme",
|
||||
"dependencies": {
|
||||
"@vue/shared": "3.5.18"
|
||||
"@vue/shared": "3.5.14"
|
||||
}
|
||||
}
|
||||
+17
-39
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/runtime-core v3.5.18
|
||||
* @vue/runtime-core v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -449,16 +449,15 @@ const TeleportImpl = {
|
||||
updateCssVars(n2, true);
|
||||
}
|
||||
if (isTeleportDeferred(n2.props)) {
|
||||
n2.el.__isMounted = false;
|
||||
queuePostRenderEffect(() => {
|
||||
mountToTarget();
|
||||
delete n2.el.__isMounted;
|
||||
n2.el.__isMounted = true;
|
||||
}, parentSuspense);
|
||||
} else {
|
||||
mountToTarget();
|
||||
}
|
||||
} else {
|
||||
if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
|
||||
if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) {
|
||||
queuePostRenderEffect(() => {
|
||||
TeleportImpl.process(
|
||||
n1,
|
||||
@@ -472,6 +471,7 @@ const TeleportImpl = {
|
||||
optimized,
|
||||
internals
|
||||
);
|
||||
delete n1.el.__isMounted;
|
||||
}, parentSuspense);
|
||||
return;
|
||||
}
|
||||
@@ -1390,8 +1390,6 @@ function createHydrationFunctions(rendererInternals) {
|
||||
) && parentComponent && parentComponent.vnode.props && parentComponent.vnode.props.appear;
|
||||
const content = el.content.firstChild;
|
||||
if (needCallTransitionHooks) {
|
||||
const cls = content.getAttribute("class");
|
||||
if (cls) content.$cls = cls;
|
||||
transition.beforeEnter(content);
|
||||
}
|
||||
replaceNode(content, el, parentComponent);
|
||||
@@ -1632,7 +1630,7 @@ function isMismatchAllowed(el, allowedType) {
|
||||
if (allowedType === 0 /* TEXT */ && list.includes("children")) {
|
||||
return true;
|
||||
}
|
||||
return list.includes(MismatchTypeString[allowedType]);
|
||||
return allowedAttr.split(",").includes(MismatchTypeString[allowedType]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1781,23 +1779,15 @@ function defineAsyncComponent(source) {
|
||||
name: "AsyncComponentWrapper",
|
||||
__asyncLoader: load,
|
||||
__asyncHydrate(el, instance, hydrate) {
|
||||
let patched = false;
|
||||
(instance.bu || (instance.bu = [])).push(() => patched = true);
|
||||
const performHydrate = () => {
|
||||
if (patched) {
|
||||
return;
|
||||
}
|
||||
hydrate();
|
||||
};
|
||||
const doHydrate = hydrateStrategy ? () => {
|
||||
const teardown = hydrateStrategy(
|
||||
performHydrate,
|
||||
hydrate,
|
||||
(cb) => forEachElement(el, cb)
|
||||
);
|
||||
if (teardown) {
|
||||
(instance.bum || (instance.bum = [])).push(teardown);
|
||||
}
|
||||
} : performHydrate;
|
||||
} : hydrate;
|
||||
if (resolvedComp) {
|
||||
doHydrate();
|
||||
} else {
|
||||
@@ -2510,7 +2500,7 @@ function useSlots() {
|
||||
function useAttrs() {
|
||||
return getContext().attrs;
|
||||
}
|
||||
function getContext(calledFunctionName) {
|
||||
function getContext() {
|
||||
const i = getCurrentInstance();
|
||||
return i.setupContext || (i.setupContext = createSetupContext(i));
|
||||
}
|
||||
@@ -2689,8 +2679,7 @@ function applyOptions(instance) {
|
||||
expose.forEach((key) => {
|
||||
Object.defineProperty(exposed, key, {
|
||||
get: () => publicThis[key],
|
||||
set: (val) => publicThis[key] = val,
|
||||
enumerable: true
|
||||
set: (val) => publicThis[key] = val
|
||||
});
|
||||
});
|
||||
} else if (!instance.exposed) {
|
||||
@@ -3051,9 +3040,9 @@ function provide(key, value) {
|
||||
}
|
||||
}
|
||||
function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
||||
const instance = getCurrentInstance();
|
||||
const instance = currentInstance || currentRenderingInstance;
|
||||
if (instance || currentApp) {
|
||||
let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
||||
const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
|
||||
if (provides && key in provides) {
|
||||
return provides[key];
|
||||
} else if (arguments.length > 1) {
|
||||
@@ -3062,7 +3051,7 @@ function inject(key, defaultValue, treatDefaultAsFactory = false) {
|
||||
}
|
||||
}
|
||||
function hasInjectionContext() {
|
||||
return !!(getCurrentInstance() || currentApp);
|
||||
return !!(currentInstance || currentRenderingInstance || currentApp);
|
||||
}
|
||||
|
||||
const internalObjectProto = {};
|
||||
@@ -3341,7 +3330,7 @@ function validatePropName(key) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const isInternalKey = (key) => key === "_" || key === "__" || key === "_ctx" || key === "$stable";
|
||||
const isInternalKey = (key) => key[0] === "_" || key === "$stable";
|
||||
const normalizeSlotValue = (value) => shared.isArray(value) ? value.map(normalizeVNode) : [normalizeVNode(value)];
|
||||
const normalizeSlot = (key, rawSlot, ctx) => {
|
||||
if (rawSlot._n) {
|
||||
@@ -3381,8 +3370,6 @@ const assignSlots = (slots, children, optimized) => {
|
||||
const initSlots = (instance, children, optimized) => {
|
||||
const slots = instance.slots = createInternalObject();
|
||||
if (instance.vnode.shapeFlag & 32) {
|
||||
const cacheIndexes = children.__;
|
||||
if (cacheIndexes) shared.def(slots, "__", cacheIndexes, true);
|
||||
const type = children._;
|
||||
if (type) {
|
||||
assignSlots(slots, children, optimized);
|
||||
@@ -3544,8 +3531,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
||||
}
|
||||
if (ref != null && parentComponent) {
|
||||
setRef(ref, n1 && n1.ref, parentSuspense, n2 || n1, !n2);
|
||||
} else if (ref == null && n1 && n1.ref != null) {
|
||||
setRef(n1.ref, null, parentSuspense, n1, true);
|
||||
}
|
||||
};
|
||||
const processText = (n1, n2, container, anchor) => {
|
||||
@@ -3818,7 +3803,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
||||
(oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement
|
||||
// which also requires the correct parent container
|
||||
!isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything.
|
||||
oldVNode.shapeFlag & (6 | 64 | 128)) ? hostParentNode(oldVNode.el) : (
|
||||
oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : (
|
||||
// In other cases, the parent container is not actually used so we
|
||||
// just pass the block element here to avoid a DOM parentNode call.
|
||||
fallbackContainer
|
||||
@@ -3975,7 +3960,6 @@ function baseCreateRenderer(options, createHydrationFns) {
|
||||
if (!initialVNode.el) {
|
||||
const placeholder = instance.subTree = createVNode(Comment);
|
||||
processCommentNode(null, placeholder, container, anchor);
|
||||
initialVNode.placeholder = placeholder.el;
|
||||
}
|
||||
} else {
|
||||
setupRenderEffect(
|
||||
@@ -4040,8 +4024,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
||||
hydrateSubTree();
|
||||
}
|
||||
} else {
|
||||
if (root.ce && // @ts-expect-error _def is private
|
||||
root.ce._def.shadowRoot !== false) {
|
||||
if (root.ce) {
|
||||
root.ce._injectChildStyle(type);
|
||||
}
|
||||
const subTree = instance.subTree = renderComponentRoot(instance);
|
||||
@@ -4408,11 +4391,7 @@ function baseCreateRenderer(options, createHydrationFns) {
|
||||
for (i = toBePatched - 1; i >= 0; i--) {
|
||||
const nextIndex = s2 + i;
|
||||
const nextChild = c2[nextIndex];
|
||||
const anchorVNode = c2[nextIndex + 1];
|
||||
const anchor = nextIndex + 1 < l2 ? (
|
||||
// #13559, fallback to el placeholder for unresolved async component
|
||||
anchorVNode.el || anchorVNode.placeholder
|
||||
) : parentAnchor;
|
||||
const anchor = nextIndex + 1 < l2 ? c2[nextIndex + 1].el : parentAnchor;
|
||||
if (newIndexToOldIndexMap[i] === 0) {
|
||||
patch(
|
||||
null,
|
||||
@@ -6071,7 +6050,6 @@ function cloneVNode(vnode, extraProps, mergeRef = false, cloneTransition = false
|
||||
suspense: vnode.suspense,
|
||||
ssContent: vnode.ssContent && cloneVNode(vnode.ssContent),
|
||||
ssFallback: vnode.ssFallback && cloneVNode(vnode.ssFallback),
|
||||
placeholder: vnode.placeholder,
|
||||
el: vnode.el,
|
||||
anchor: vnode.anchor,
|
||||
ctx: vnode.ctx,
|
||||
@@ -6537,7 +6515,7 @@ function isMemoSame(cached, memo) {
|
||||
return true;
|
||||
}
|
||||
|
||||
const version = "3.5.18";
|
||||
const version = "3.5.14";
|
||||
const warn$1 = shared.NOOP;
|
||||
const ErrorTypeStrings = ErrorTypeStrings$1 ;
|
||||
const devtools = void 0;
|
||||
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue/runtime-core",
|
||||
"version": "3.5.18",
|
||||
"version": "3.5.14",
|
||||
"description": "@vue/runtime-core",
|
||||
"main": "index.js",
|
||||
"module": "dist/runtime-core.esm-bundler.js",
|
||||
@@ -46,7 +46,7 @@
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-core#readme",
|
||||
"dependencies": {
|
||||
"@vue/shared": "3.5.18",
|
||||
"@vue/reactivity": "3.5.18"
|
||||
"@vue/shared": "3.5.14",
|
||||
"@vue/reactivity": "3.5.14"
|
||||
}
|
||||
}
|
||||
+15
-21
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/runtime-dom v3.5.18
|
||||
* @vue/runtime-dom v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -786,10 +786,13 @@ class VueElement extends BaseClass {
|
||||
this._root = this;
|
||||
}
|
||||
}
|
||||
if (!this._def.__asyncLoader) {
|
||||
this._resolveProps(this._def);
|
||||
}
|
||||
}
|
||||
connectedCallback() {
|
||||
if (!this.isConnected) return;
|
||||
if (!this.shadowRoot && !this._resolved) {
|
||||
if (!this.shadowRoot) {
|
||||
this._parseSlots();
|
||||
}
|
||||
this._connected = true;
|
||||
@@ -802,7 +805,8 @@ class VueElement extends BaseClass {
|
||||
}
|
||||
if (!this._instance) {
|
||||
if (this._resolved) {
|
||||
this._mount(this._def);
|
||||
this._setParent();
|
||||
this._update();
|
||||
} else {
|
||||
if (parent && parent._pendingResolve) {
|
||||
this._pendingResolve = parent._pendingResolve.then(() => {
|
||||
@@ -818,15 +822,7 @@ class VueElement extends BaseClass {
|
||||
_setParent(parent = this._parent) {
|
||||
if (parent) {
|
||||
this._instance.parent = parent._instance;
|
||||
this._inheritParentContext(parent);
|
||||
}
|
||||
}
|
||||
_inheritParentContext(parent = this._parent) {
|
||||
if (parent && this._app) {
|
||||
Object.setPrototypeOf(
|
||||
this._app._context.provides,
|
||||
parent._instance.provides
|
||||
);
|
||||
this._instance.provides = parent._instance.provides;
|
||||
}
|
||||
}
|
||||
disconnectedCallback() {
|
||||
@@ -876,7 +872,9 @@ class VueElement extends BaseClass {
|
||||
}
|
||||
}
|
||||
this._numberProps = numberProps;
|
||||
this._resolveProps(def);
|
||||
if (isAsync) {
|
||||
this._resolveProps(def);
|
||||
}
|
||||
if (this.shadowRoot) {
|
||||
this._applyStyles(styles);
|
||||
}
|
||||
@@ -884,17 +882,15 @@ class VueElement extends BaseClass {
|
||||
};
|
||||
const asyncDef = this._def.__asyncLoader;
|
||||
if (asyncDef) {
|
||||
this._pendingResolve = asyncDef().then((def) => {
|
||||
def.configureApp = this._def.configureApp;
|
||||
resolve(this._def = def, true);
|
||||
});
|
||||
this._pendingResolve = asyncDef().then(
|
||||
(def) => resolve(this._def = def, true)
|
||||
);
|
||||
} else {
|
||||
resolve(this._def);
|
||||
}
|
||||
}
|
||||
_mount(def) {
|
||||
this._app = this._createApp(def);
|
||||
this._inheritParentContext();
|
||||
if (def.configureApp) {
|
||||
def.configureApp(this._app);
|
||||
}
|
||||
@@ -977,9 +973,7 @@ class VueElement extends BaseClass {
|
||||
}
|
||||
}
|
||||
_update() {
|
||||
const vnode = this._createVNode();
|
||||
if (this._app) vnode.appContext = this._app._context;
|
||||
render(vnode, this._root);
|
||||
render(this._createVNode(), this._root);
|
||||
}
|
||||
_createVNode() {
|
||||
const baseProps = {};
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue/runtime-dom",
|
||||
"version": "3.5.18",
|
||||
"version": "3.5.14",
|
||||
"description": "@vue/runtime-dom",
|
||||
"main": "index.js",
|
||||
"module": "dist/runtime-dom.esm-bundler.js",
|
||||
@@ -50,9 +50,9 @@
|
||||
"homepage": "https://github.com/vuejs/core/tree/main/packages/runtime-dom#readme",
|
||||
"dependencies": {
|
||||
"csstype": "^3.1.3",
|
||||
"@vue/shared": "3.5.18",
|
||||
"@vue/runtime-core": "3.5.18",
|
||||
"@vue/reactivity": "3.5.18"
|
||||
"@vue/runtime-core": "3.5.14",
|
||||
"@vue/shared": "3.5.14",
|
||||
"@vue/reactivity": "3.5.14"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/trusted-types": "^2.0.7"
|
||||
|
||||
Generated
Vendored
+4
-26
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/server-renderer v3.5.18
|
||||
* @vue/server-renderer v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -78,23 +78,9 @@ function ssrRenderStyle(raw) {
|
||||
if (shared.isString(raw)) {
|
||||
return shared.escapeHtml(raw);
|
||||
}
|
||||
const styles = shared.normalizeStyle(ssrResetCssVars(raw));
|
||||
const styles = shared.normalizeStyle(raw);
|
||||
return shared.escapeHtml(shared.stringifyStyle(styles));
|
||||
}
|
||||
function ssrResetCssVars(raw) {
|
||||
if (!shared.isArray(raw) && shared.isObject(raw)) {
|
||||
const res = {};
|
||||
for (const key in raw) {
|
||||
if (key.startsWith(":--")) {
|
||||
res[key.slice(1)] = shared.normalizeCssVarValue(raw[key]);
|
||||
} else {
|
||||
res[key] = raw[key];
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
return raw;
|
||||
}
|
||||
|
||||
function ssrRenderComponent(comp, props = null, children = null, parentComponent = null, slotScopeId) {
|
||||
return renderComponentVNode(
|
||||
@@ -142,8 +128,6 @@ function ssrRenderSlotInner(slots, slotName, slotProps, fallbackRenderFn, push,
|
||||
);
|
||||
} else if (fallbackRenderFn) {
|
||||
fallbackRenderFn();
|
||||
} else if (transition) {
|
||||
push(`<!---->`);
|
||||
}
|
||||
} else {
|
||||
let isEmptySlot = true;
|
||||
@@ -168,19 +152,13 @@ function ssrRenderSlotInner(slots, slotName, slotProps, fallbackRenderFn, push,
|
||||
start++;
|
||||
end--;
|
||||
}
|
||||
if (start < end) {
|
||||
for (let i = start; i < end; i++) {
|
||||
push(slotBuffer[i]);
|
||||
}
|
||||
} else if (transition) {
|
||||
push(`<!---->`);
|
||||
for (let i = start; i < end; i++) {
|
||||
push(slotBuffer[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (fallbackRenderFn) {
|
||||
fallbackRenderFn();
|
||||
} else if (transition) {
|
||||
push(`<!---->`);
|
||||
}
|
||||
}
|
||||
const commentTestRE = /^<!--[\s\S]*-->$/;
|
||||
|
||||
+4
-4
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue/server-renderer",
|
||||
"version": "3.5.18",
|
||||
"version": "3.5.14",
|
||||
"description": "@vue/server-renderer",
|
||||
"main": "index.js",
|
||||
"module": "dist/server-renderer.esm-bundler.js",
|
||||
@@ -46,10 +46,10 @@
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/core/tree/main/packages/server-renderer#readme",
|
||||
"peerDependencies": {
|
||||
"vue": "3.5.18"
|
||||
"vue": "3.5.14"
|
||||
},
|
||||
"dependencies": {
|
||||
"@vue/shared": "3.5.18",
|
||||
"@vue/compiler-ssr": "3.5.18"
|
||||
"@vue/shared": "3.5.14",
|
||||
"@vue/compiler-ssr": "3.5.14"
|
||||
}
|
||||
}
|
||||
+2
-13
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @vue/shared v3.5.18
|
||||
* @vue/shared v3.5.14
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
@@ -164,7 +164,7 @@ const PatchFlagNames = {
|
||||
[512]: `NEED_PATCH`,
|
||||
[1024]: `DYNAMIC_SLOTS`,
|
||||
[2048]: `DEV_ROOT_FRAGMENT`,
|
||||
[-1]: `CACHED`,
|
||||
[-1]: `HOISTED`,
|
||||
[-2]: `BAIL`
|
||||
};
|
||||
|
||||
@@ -520,16 +520,6 @@ const stringifySymbol = (v, i = "") => {
|
||||
);
|
||||
};
|
||||
|
||||
function normalizeCssVarValue(value) {
|
||||
if (value == null) {
|
||||
return "initial";
|
||||
}
|
||||
if (typeof value === "string") {
|
||||
return value === "" ? " " : value;
|
||||
}
|
||||
return String(value);
|
||||
}
|
||||
|
||||
exports.EMPTY_ARR = EMPTY_ARR;
|
||||
exports.EMPTY_OBJ = EMPTY_OBJ;
|
||||
exports.NO = NO;
|
||||
@@ -589,7 +579,6 @@ exports.looseIndexOf = looseIndexOf;
|
||||
exports.looseToNumber = looseToNumber;
|
||||
exports.makeMap = makeMap;
|
||||
exports.normalizeClass = normalizeClass;
|
||||
exports.normalizeCssVarValue = normalizeCssVarValue;
|
||||
exports.normalizeProps = normalizeProps;
|
||||
exports.normalizeStyle = normalizeStyle;
|
||||
exports.objectToString = objectToString;
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@vue/shared",
|
||||
"version": "3.5.18",
|
||||
"version": "3.5.14",
|
||||
"description": "internal utils shared across @vue packages",
|
||||
"main": "index.js",
|
||||
"module": "dist/shared.esm-bundler.js",
|
||||
|
||||
Reference in New Issue
Block a user