🔧
This commit is contained in:
21
node_modules/vue/README.md
generated
vendored
21
node_modules/vue/README.md
generated
vendored
@@ -33,18 +33,23 @@
|
||||
|
||||
#### Bundler Build Feature Flags
|
||||
|
||||
Starting with 3.0.0-rc.3, `esm-bundler` builds now exposes global feature flags that can be overwritten at compile time:
|
||||
[Detailed Reference on vuejs.org](https://vuejs.org/api/compile-time-flags.html)
|
||||
|
||||
- `__VUE_OPTIONS_API__` (enable/disable Options API support, default: `true`)
|
||||
- `__VUE_PROD_DEVTOOLS__` (enable/disable devtools support in production, default: `false`)
|
||||
`esm-bundler` builds of Vue expose global feature flags that can be overwritten at compile time:
|
||||
|
||||
The build will work without configuring these flags, however it is **strongly recommended** to properly configure them in order to get proper tree-shaking in the final bundle. To configure these flags:
|
||||
- `__VUE_OPTIONS_API__`
|
||||
- Default: `true`
|
||||
- Enable / disable Options API support
|
||||
|
||||
- webpack: use [DefinePlugin](https://webpack.js.org/plugins/define-plugin/)
|
||||
- Rollup: use [@rollup/plugin-replace](https://github.com/rollup/plugins/tree/master/packages/replace)
|
||||
- Vite: configured by default, but can be overwritten using the [`define` option](https://github.com/vitejs/vite/blob/a4133c073e640b17276b2de6e91a6857bdf382e1/src/node/config.ts#L72-L76)
|
||||
- `__VUE_PROD_DEVTOOLS__`
|
||||
- Default: `false`
|
||||
- Enable / disable devtools support in production
|
||||
|
||||
Note: the replacement value **must be boolean literals** and cannot be strings, otherwise the bundler/minifier will not be able to properly evaluate the conditions.
|
||||
- `__VUE_PROD_HYDRATION_MISMATCH_DETAILS__`
|
||||
- Default: `false`
|
||||
- Enable / disable detailed warnings for hydration mismatches in production
|
||||
|
||||
The build will work without configuring these flags, however it is **strongly recommended** to properly configure them in order to get proper tree-shaking in the final bundle.
|
||||
|
||||
### For Server-Side Rendering
|
||||
|
||||
|
||||
1
node_modules/vue/compiler-sfc/index.browser.js
generated
vendored
Normal file
1
node_modules/vue/compiler-sfc/index.browser.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
module.exports = require('@vue/compiler-sfc')
|
||||
1
node_modules/vue/compiler-sfc/index.browser.mjs
generated
vendored
Normal file
1
node_modules/vue/compiler-sfc/index.browser.mjs
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
1
node_modules/vue/compiler-sfc/index.d.mts
generated
vendored
Normal file
1
node_modules/vue/compiler-sfc/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
2
node_modules/vue/compiler-sfc/index.js
generated
vendored
2
node_modules/vue/compiler-sfc/index.js
generated
vendored
@@ -1 +1,3 @@
|
||||
module.exports = require('@vue/compiler-sfc')
|
||||
|
||||
require('./register-ts.js')
|
||||
|
||||
4
node_modules/vue/compiler-sfc/index.mjs
generated
vendored
4
node_modules/vue/compiler-sfc/index.mjs
generated
vendored
@@ -1 +1,3 @@
|
||||
export * from '@vue/compiler-sfc'
|
||||
export * from '@vue/compiler-sfc'
|
||||
|
||||
import './register-ts.js'
|
||||
|
||||
5
node_modules/vue/compiler-sfc/package.json
generated
vendored
5
node_modules/vue/compiler-sfc/package.json
generated
vendored
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
"types": "index.d.ts"
|
||||
}
|
||||
"module": "index.mjs"
|
||||
}
|
||||
|
||||
3
node_modules/vue/compiler-sfc/register-ts.js
generated
vendored
Normal file
3
node_modules/vue/compiler-sfc/register-ts.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
if (typeof require !== 'undefined') {
|
||||
require('@vue/compiler-sfc').registerTS(() => require('typescript'))
|
||||
}
|
||||
120
node_modules/vue/dist/vue.cjs.js
generated
vendored
120
node_modules/vue/dist/vue.cjs.js
generated
vendored
@@ -1,3 +1,8 @@
|
||||
/**
|
||||
* vue v3.4.15
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
@@ -6,72 +11,79 @@ var compilerDom = require('@vue/compiler-dom');
|
||||
var runtimeDom = require('@vue/runtime-dom');
|
||||
var shared = require('@vue/shared');
|
||||
|
||||
function _interopNamespace(e) {
|
||||
if (e && e.__esModule) return e;
|
||||
function _interopNamespaceDefault(e) {
|
||||
var n = Object.create(null);
|
||||
if (e) {
|
||||
Object.keys(e).forEach(function (k) {
|
||||
for (var k in e) {
|
||||
n[k] = e[k];
|
||||
});
|
||||
}
|
||||
}
|
||||
n['default'] = e;
|
||||
n.default = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
|
||||
var runtimeDom__namespace = /*#__PURE__*/_interopNamespace(runtimeDom);
|
||||
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
|
||||
|
||||
// This entry is the "full-build" that includes both the runtime
|
||||
const compileCache = Object.create(null);
|
||||
const compileCache = /* @__PURE__ */ new WeakMap();
|
||||
function getCache(options) {
|
||||
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ);
|
||||
if (!c) {
|
||||
c = /* @__PURE__ */ Object.create(null);
|
||||
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c);
|
||||
}
|
||||
return c;
|
||||
}
|
||||
function compileToFunction(template, options) {
|
||||
if (!shared.isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
}
|
||||
else {
|
||||
runtimeDom.warn(`invalid template option: `, template);
|
||||
return shared.NOOP;
|
||||
}
|
||||
if (!shared.isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
} else {
|
||||
runtimeDom.warn(`invalid template option: `, template);
|
||||
return shared.NOOP;
|
||||
}
|
||||
const key = template;
|
||||
const cached = compileCache[key];
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
const key = template;
|
||||
const cache = getCache(options);
|
||||
const cached = cache[key];
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
if (template[0] === "#") {
|
||||
const el = document.querySelector(template);
|
||||
if (!el) {
|
||||
runtimeDom.warn(`Template element not found or is empty: ${template}`);
|
||||
}
|
||||
if (template[0] === '#') {
|
||||
const el = document.querySelector(template);
|
||||
if (!el) {
|
||||
runtimeDom.warn(`Template element not found or is empty: ${template}`);
|
||||
}
|
||||
// __UNSAFE__
|
||||
// Reason: potential execution of JS expressions in in-DOM template.
|
||||
// The user must make sure the in-DOM template is trusted. If it's rendered
|
||||
// by the server, the template should not contain any user data.
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const { code } = compilerDom.compile(template, shared.extend({
|
||||
hoistStatic: true,
|
||||
onError: onError ,
|
||||
onWarn: e => onError(e, true)
|
||||
}, options));
|
||||
function onError(err, asWarning = false) {
|
||||
const message = asWarning
|
||||
? err.message
|
||||
: `Template compilation error: ${err.message}`;
|
||||
const codeFrame = err.loc &&
|
||||
shared.generateCodeFrame(template, err.loc.start.offset, err.loc.end.offset);
|
||||
runtimeDom.warn(codeFrame ? `${message}\n${codeFrame}` : message);
|
||||
}
|
||||
// The wildcard import results in a huge object with every export
|
||||
// with keys that cannot be mangled, and can be quite heavy size-wise.
|
||||
// In the global build we know `Vue` is available globally so we can avoid
|
||||
// the wildcard object.
|
||||
const render = (new Function('Vue', code)(runtimeDom__namespace));
|
||||
render._rc = true;
|
||||
return (compileCache[key] = render);
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const opts = shared.extend(
|
||||
{
|
||||
hoistStatic: true,
|
||||
onError: onError ,
|
||||
onWarn: (e) => onError(e, true)
|
||||
},
|
||||
options
|
||||
);
|
||||
if (!opts.isCustomElement && typeof customElements !== "undefined") {
|
||||
opts.isCustomElement = (tag) => !!customElements.get(tag);
|
||||
}
|
||||
const { code } = compilerDom.compile(template, opts);
|
||||
function onError(err, asWarning = false) {
|
||||
const message = asWarning ? err.message : `Template compilation error: ${err.message}`;
|
||||
const codeFrame = err.loc && shared.generateCodeFrame(
|
||||
template,
|
||||
err.loc.start.offset,
|
||||
err.loc.end.offset
|
||||
);
|
||||
runtimeDom.warn(codeFrame ? `${message}
|
||||
${codeFrame}` : message);
|
||||
}
|
||||
const render = new Function("Vue", code)(runtimeDom__namespace);
|
||||
render._rc = true;
|
||||
return cache[key] = render;
|
||||
}
|
||||
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
||||
|
||||
Object.keys(runtimeDom).forEach(function (k) {
|
||||
if (k !== 'default') exports[k] = runtimeDom[k];
|
||||
});
|
||||
exports.compile = compileToFunction;
|
||||
Object.keys(runtimeDom).forEach(function (k) {
|
||||
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
|
||||
});
|
||||
|
||||
96
node_modules/vue/dist/vue.cjs.prod.js
generated
vendored
96
node_modules/vue/dist/vue.cjs.prod.js
generated
vendored
@@ -1,3 +1,8 @@
|
||||
/**
|
||||
* vue v3.4.15
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
@@ -6,60 +11,65 @@ var compilerDom = require('@vue/compiler-dom');
|
||||
var runtimeDom = require('@vue/runtime-dom');
|
||||
var shared = require('@vue/shared');
|
||||
|
||||
function _interopNamespace(e) {
|
||||
if (e && e.__esModule) return e;
|
||||
function _interopNamespaceDefault(e) {
|
||||
var n = Object.create(null);
|
||||
if (e) {
|
||||
Object.keys(e).forEach(function (k) {
|
||||
for (var k in e) {
|
||||
n[k] = e[k];
|
||||
});
|
||||
}
|
||||
}
|
||||
n['default'] = e;
|
||||
n.default = e;
|
||||
return Object.freeze(n);
|
||||
}
|
||||
|
||||
var runtimeDom__namespace = /*#__PURE__*/_interopNamespace(runtimeDom);
|
||||
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
|
||||
|
||||
// This entry is the "full-build" that includes both the runtime
|
||||
const compileCache = Object.create(null);
|
||||
const compileCache = /* @__PURE__ */ new WeakMap();
|
||||
function getCache(options) {
|
||||
let c = compileCache.get(options != null ? options : shared.EMPTY_OBJ);
|
||||
if (!c) {
|
||||
c = /* @__PURE__ */ Object.create(null);
|
||||
compileCache.set(options != null ? options : shared.EMPTY_OBJ, c);
|
||||
}
|
||||
return c;
|
||||
}
|
||||
function compileToFunction(template, options) {
|
||||
if (!shared.isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
}
|
||||
else {
|
||||
return shared.NOOP;
|
||||
}
|
||||
if (!shared.isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
} else {
|
||||
return shared.NOOP;
|
||||
}
|
||||
const key = template;
|
||||
const cached = compileCache[key];
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
if (template[0] === '#') {
|
||||
const el = document.querySelector(template);
|
||||
// __UNSAFE__
|
||||
// Reason: potential execution of JS expressions in in-DOM template.
|
||||
// The user must make sure the in-DOM template is trusted. If it's rendered
|
||||
// by the server, the template should not contain any user data.
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const { code } = compilerDom.compile(template, shared.extend({
|
||||
hoistStatic: true,
|
||||
onError: undefined,
|
||||
onWarn: shared.NOOP
|
||||
}, options));
|
||||
// The wildcard import results in a huge object with every export
|
||||
// with keys that cannot be mangled, and can be quite heavy size-wise.
|
||||
// In the global build we know `Vue` is available globally so we can avoid
|
||||
// the wildcard object.
|
||||
const render = (new Function('Vue', code)(runtimeDom__namespace));
|
||||
render._rc = true;
|
||||
return (compileCache[key] = render);
|
||||
}
|
||||
const key = template;
|
||||
const cache = getCache(options);
|
||||
const cached = cache[key];
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
if (template[0] === "#") {
|
||||
const el = document.querySelector(template);
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const opts = shared.extend(
|
||||
{
|
||||
hoistStatic: true,
|
||||
onError: void 0,
|
||||
onWarn: shared.NOOP
|
||||
},
|
||||
options
|
||||
);
|
||||
if (!opts.isCustomElement && typeof customElements !== "undefined") {
|
||||
opts.isCustomElement = (tag) => !!customElements.get(tag);
|
||||
}
|
||||
const { code } = compilerDom.compile(template, opts);
|
||||
const render = new Function("Vue", code)(runtimeDom__namespace);
|
||||
render._rc = true;
|
||||
return cache[key] = render;
|
||||
}
|
||||
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
||||
|
||||
Object.keys(runtimeDom).forEach(function (k) {
|
||||
if (k !== 'default') exports[k] = runtimeDom[k];
|
||||
});
|
||||
exports.compile = compileToFunction;
|
||||
Object.keys(runtimeDom).forEach(function (k) {
|
||||
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
|
||||
});
|
||||
|
||||
7
node_modules/vue/dist/vue.d.mts
generated
vendored
Normal file
7
node_modules/vue/dist/vue.d.mts
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import { CompilerOptions } from '@vue/compiler-dom';
|
||||
import { RenderFunction } from '@vue/runtime-dom';
|
||||
export * from '@vue/runtime-dom';
|
||||
|
||||
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
||||
|
||||
export { compileToFunction as compile };
|
||||
8
node_modules/vue/dist/vue.d.ts
generated
vendored
8
node_modules/vue/dist/vue.d.ts
generated
vendored
@@ -1,9 +1,7 @@
|
||||
import { CompilerOptions } from '@vue/compiler-dom';
|
||||
import { RenderFunction } from '@vue/runtime-dom';
|
||||
export * from '@vue/runtime-dom';
|
||||
|
||||
export declare function compile(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
||||
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
||||
|
||||
|
||||
export * from "@vue/runtime-dom";
|
||||
|
||||
export { }
|
||||
export { compileToFunction as compile };
|
||||
|
||||
29582
node_modules/vue/dist/vue.esm-browser.js
generated
vendored
29582
node_modules/vue/dist/vue.esm-browser.js
generated
vendored
File diff suppressed because it is too large
Load Diff
12
node_modules/vue/dist/vue.esm-browser.prod.js
generated
vendored
12
node_modules/vue/dist/vue.esm-browser.prod.js
generated
vendored
File diff suppressed because one or more lines are too long
117
node_modules/vue/dist/vue.esm-bundler.js
generated
vendored
117
node_modules/vue/dist/vue.esm-bundler.js
generated
vendored
@@ -1,66 +1,79 @@
|
||||
/**
|
||||
* vue v3.4.15
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
import * as runtimeDom from '@vue/runtime-dom';
|
||||
import { initCustomFormatter, warn, registerRuntimeCompiler } from '@vue/runtime-dom';
|
||||
import { initCustomFormatter, registerRuntimeCompiler, warn } from '@vue/runtime-dom';
|
||||
export * from '@vue/runtime-dom';
|
||||
import { compile } from '@vue/compiler-dom';
|
||||
import { isString, NOOP, extend, generateCodeFrame } from '@vue/shared';
|
||||
import { isString, NOOP, extend, generateCodeFrame, EMPTY_OBJ } from '@vue/shared';
|
||||
|
||||
function initDev() {
|
||||
{
|
||||
initCustomFormatter();
|
||||
}
|
||||
{
|
||||
initCustomFormatter();
|
||||
}
|
||||
}
|
||||
|
||||
// This entry is the "full-build" that includes both the runtime
|
||||
if ((process.env.NODE_ENV !== 'production')) {
|
||||
initDev();
|
||||
if (!!(process.env.NODE_ENV !== "production")) {
|
||||
initDev();
|
||||
}
|
||||
const compileCache = /* @__PURE__ */ new WeakMap();
|
||||
function getCache(options) {
|
||||
let c = compileCache.get(options != null ? options : EMPTY_OBJ);
|
||||
if (!c) {
|
||||
c = /* @__PURE__ */ Object.create(null);
|
||||
compileCache.set(options != null ? options : EMPTY_OBJ, c);
|
||||
}
|
||||
return c;
|
||||
}
|
||||
const compileCache = Object.create(null);
|
||||
function compileToFunction(template, options) {
|
||||
if (!isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
}
|
||||
else {
|
||||
(process.env.NODE_ENV !== 'production') && warn(`invalid template option: `, template);
|
||||
return NOOP;
|
||||
}
|
||||
if (!isString(template)) {
|
||||
if (template.nodeType) {
|
||||
template = template.innerHTML;
|
||||
} else {
|
||||
!!(process.env.NODE_ENV !== "production") && warn(`invalid template option: `, template);
|
||||
return NOOP;
|
||||
}
|
||||
const key = template;
|
||||
const cached = compileCache[key];
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
const key = template;
|
||||
const cache = getCache(options);
|
||||
const cached = cache[key];
|
||||
if (cached) {
|
||||
return cached;
|
||||
}
|
||||
if (template[0] === "#") {
|
||||
const el = document.querySelector(template);
|
||||
if (!!(process.env.NODE_ENV !== "production") && !el) {
|
||||
warn(`Template element not found or is empty: ${template}`);
|
||||
}
|
||||
if (template[0] === '#') {
|
||||
const el = document.querySelector(template);
|
||||
if ((process.env.NODE_ENV !== 'production') && !el) {
|
||||
warn(`Template element not found or is empty: ${template}`);
|
||||
}
|
||||
// __UNSAFE__
|
||||
// Reason: potential execution of JS expressions in in-DOM template.
|
||||
// The user must make sure the in-DOM template is trusted. If it's rendered
|
||||
// by the server, the template should not contain any user data.
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const { code } = compile(template, extend({
|
||||
hoistStatic: true,
|
||||
onError: (process.env.NODE_ENV !== 'production') ? onError : undefined,
|
||||
onWarn: (process.env.NODE_ENV !== 'production') ? e => onError(e, true) : NOOP
|
||||
}, options));
|
||||
function onError(err, asWarning = false) {
|
||||
const message = asWarning
|
||||
? err.message
|
||||
: `Template compilation error: ${err.message}`;
|
||||
const codeFrame = err.loc &&
|
||||
generateCodeFrame(template, err.loc.start.offset, err.loc.end.offset);
|
||||
warn(codeFrame ? `${message}\n${codeFrame}` : message);
|
||||
}
|
||||
// The wildcard import results in a huge object with every export
|
||||
// with keys that cannot be mangled, and can be quite heavy size-wise.
|
||||
// In the global build we know `Vue` is available globally so we can avoid
|
||||
// the wildcard object.
|
||||
const render = (new Function('Vue', code)(runtimeDom));
|
||||
render._rc = true;
|
||||
return (compileCache[key] = render);
|
||||
template = el ? el.innerHTML : ``;
|
||||
}
|
||||
const opts = extend(
|
||||
{
|
||||
hoistStatic: true,
|
||||
onError: !!(process.env.NODE_ENV !== "production") ? onError : void 0,
|
||||
onWarn: !!(process.env.NODE_ENV !== "production") ? (e) => onError(e, true) : NOOP
|
||||
},
|
||||
options
|
||||
);
|
||||
if (!opts.isCustomElement && typeof customElements !== "undefined") {
|
||||
opts.isCustomElement = (tag) => !!customElements.get(tag);
|
||||
}
|
||||
const { code } = compile(template, opts);
|
||||
function onError(err, asWarning = false) {
|
||||
const message = asWarning ? err.message : `Template compilation error: ${err.message}`;
|
||||
const codeFrame = err.loc && generateCodeFrame(
|
||||
template,
|
||||
err.loc.start.offset,
|
||||
err.loc.end.offset
|
||||
);
|
||||
warn(codeFrame ? `${message}
|
||||
${codeFrame}` : message);
|
||||
}
|
||||
const render = new Function("Vue", code)(runtimeDom);
|
||||
render._rc = true;
|
||||
return cache[key] = render;
|
||||
}
|
||||
registerRuntimeCompiler(compileToFunction);
|
||||
|
||||
|
||||
29301
node_modules/vue/dist/vue.global.js
generated
vendored
29301
node_modules/vue/dist/vue.global.js
generated
vendored
File diff suppressed because it is too large
Load Diff
12
node_modules/vue/dist/vue.global.prod.js
generated
vendored
12
node_modules/vue/dist/vue.global.prod.js
generated
vendored
File diff suppressed because one or more lines are too long
19984
node_modules/vue/dist/vue.runtime.esm-browser.js
generated
vendored
19984
node_modules/vue/dist/vue.runtime.esm-browser.js
generated
vendored
File diff suppressed because it is too large
Load Diff
12
node_modules/vue/dist/vue.runtime.esm-browser.prod.js
generated
vendored
12
node_modules/vue/dist/vue.runtime.esm-browser.prod.js
generated
vendored
File diff suppressed because one or more lines are too long
26
node_modules/vue/dist/vue.runtime.esm-bundler.js
generated
vendored
26
node_modules/vue/dist/vue.runtime.esm-bundler.js
generated
vendored
@@ -1,22 +1,26 @@
|
||||
/**
|
||||
* vue v3.4.15
|
||||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||||
* @license MIT
|
||||
**/
|
||||
import { initCustomFormatter, warn } from '@vue/runtime-dom';
|
||||
export * from '@vue/runtime-dom';
|
||||
|
||||
function initDev() {
|
||||
{
|
||||
initCustomFormatter();
|
||||
}
|
||||
{
|
||||
initCustomFormatter();
|
||||
}
|
||||
}
|
||||
|
||||
// This entry exports the runtime only, and is built as
|
||||
if ((process.env.NODE_ENV !== 'production')) {
|
||||
initDev();
|
||||
if (!!(process.env.NODE_ENV !== "production")) {
|
||||
initDev();
|
||||
}
|
||||
const compile = () => {
|
||||
if ((process.env.NODE_ENV !== 'production')) {
|
||||
warn(`Runtime compilation is not supported in this build of Vue.` +
|
||||
(` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".`
|
||||
) /* should not happen */);
|
||||
}
|
||||
if (!!(process.env.NODE_ENV !== "production")) {
|
||||
warn(
|
||||
`Runtime compilation is not supported in this build of Vue.` + (` Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".` )
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
export { compile };
|
||||
|
||||
19975
node_modules/vue/dist/vue.runtime.global.js
generated
vendored
19975
node_modules/vue/dist/vue.runtime.global.js
generated
vendored
File diff suppressed because it is too large
Load Diff
12
node_modules/vue/dist/vue.runtime.global.prod.js
generated
vendored
12
node_modules/vue/dist/vue.runtime.global.prod.js
generated
vendored
File diff suppressed because one or more lines are too long
2
node_modules/vue/index.mjs
generated
vendored
2
node_modules/vue/index.mjs
generated
vendored
@@ -1 +1 @@
|
||||
export * from './index.js'
|
||||
export * from './index.js'
|
||||
|
||||
25
node_modules/vue/jsx-runtime/index.d.ts
generated
vendored
Normal file
25
node_modules/vue/jsx-runtime/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
/* eslint-disable @typescript-eslint/prefer-ts-expect-error */
|
||||
import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
|
||||
|
||||
/**
|
||||
* JSX namespace for usage with @jsxImportsSource directive
|
||||
* when ts compilerOptions.jsx is 'react-jsx' or 'react-jsxdev'
|
||||
* https://www.typescriptlang.org/tsconfig#jsxImportSource
|
||||
*/
|
||||
export { h as jsx, h as jsxDEV, Fragment } from '@vue/runtime-dom'
|
||||
|
||||
export namespace JSX {
|
||||
export interface Element extends VNode {}
|
||||
export interface ElementClass {
|
||||
$props: {}
|
||||
}
|
||||
export interface ElementAttributesProperty {
|
||||
$props: {}
|
||||
}
|
||||
export interface IntrinsicElements extends NativeElements {
|
||||
// allow arbitrary elements
|
||||
// @ts-ignore suppress ts:2374 = Duplicate string index signature.
|
||||
[name: string]: any
|
||||
}
|
||||
export interface IntrinsicAttributes extends ReservedProps {}
|
||||
}
|
||||
15
node_modules/vue/jsx-runtime/index.js
generated
vendored
Normal file
15
node_modules/vue/jsx-runtime/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
const { h, Fragment } = require('vue')
|
||||
|
||||
function jsx(type, props, key) {
|
||||
const { children } = props
|
||||
delete props.children
|
||||
if (arguments.length > 2) {
|
||||
props.key = key
|
||||
}
|
||||
return h(type, props, children)
|
||||
}
|
||||
|
||||
exports.jsx = jsx
|
||||
exports.jsxs = jsx
|
||||
exports.jsxDEV = jsx
|
||||
exports.Fragment = Fragment
|
||||
12
node_modules/vue/jsx-runtime/index.mjs
generated
vendored
Normal file
12
node_modules/vue/jsx-runtime/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import { h, Fragment } from 'vue'
|
||||
|
||||
function jsx(type, props, key) {
|
||||
const { children } = props
|
||||
delete props.children
|
||||
if (arguments.length > 2) {
|
||||
props.key = key
|
||||
}
|
||||
return h(type, props, children)
|
||||
}
|
||||
|
||||
export { Fragment, jsx, jsx as jsxs, jsx as jsxDEV }
|
||||
5
node_modules/vue/jsx-runtime/package.json
generated
vendored
Normal file
5
node_modules/vue/jsx-runtime/package.json
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
"types": "index.d.ts"
|
||||
}
|
||||
22
node_modules/vue/jsx.d.ts
generated
vendored
Normal file
22
node_modules/vue/jsx.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
/* eslint-disable @typescript-eslint/prefer-ts-expect-error */
|
||||
// global JSX namespace registration
|
||||
// somehow we have to copy=pase the jsx-runtime types here to make TypeScript happy
|
||||
import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
|
||||
|
||||
declare global {
|
||||
namespace JSX {
|
||||
export interface Element extends VNode {}
|
||||
export interface ElementClass {
|
||||
$props: {}
|
||||
}
|
||||
export interface ElementAttributesProperty {
|
||||
$props: {}
|
||||
}
|
||||
export interface IntrinsicElements extends NativeElements {
|
||||
// allow arbitrary elements
|
||||
// @ts-ignore suppress ts:2374 = Duplicate string index signature.
|
||||
[name: string]: any
|
||||
}
|
||||
export interface IntrinsicAttributes extends ReservedProps {}
|
||||
}
|
||||
}
|
||||
19
node_modules/vue/macros-global.d.ts
generated
vendored
19
node_modules/vue/macros-global.d.ts
generated
vendored
@@ -1,19 +0,0 @@
|
||||
import {
|
||||
$ as _$,
|
||||
$$ as _$$,
|
||||
$ref as _$ref,
|
||||
$shallowRef as _$shallowRef,
|
||||
$computed as _$computed,
|
||||
$customRef as _$customRef,
|
||||
$toRef as _$toRef
|
||||
} from './macros'
|
||||
|
||||
declare global {
|
||||
const $: typeof _$
|
||||
const $$: typeof _$$
|
||||
const $ref: typeof _$ref
|
||||
const $shallowRef: typeof _$shallowRef
|
||||
const $computed: typeof _$computed
|
||||
const $customRef: typeof _$customRef
|
||||
const $toRef: typeof _$toRef
|
||||
}
|
||||
110
node_modules/vue/macros.d.ts
generated
vendored
110
node_modules/vue/macros.d.ts
generated
vendored
@@ -1,110 +0,0 @@
|
||||
import {
|
||||
Ref,
|
||||
UnwrapRef,
|
||||
ComputedRef,
|
||||
WritableComputedOptions,
|
||||
DebuggerOptions,
|
||||
WritableComputedRef,
|
||||
CustomRefFactory
|
||||
} from '@vue/runtime-dom'
|
||||
|
||||
export declare const RefType: unique symbol
|
||||
|
||||
export declare const enum RefTypes {
|
||||
Ref = 1,
|
||||
ComputedRef = 2,
|
||||
WritableComputedRef = 3
|
||||
}
|
||||
|
||||
type RefValue<T> = T extends null | undefined ? T : ReactiveVariable<T>
|
||||
|
||||
type ReactiveVariable<T> = T & { [RefType]?: RefTypes.Ref }
|
||||
|
||||
type ComputedRefValue<T> = T extends null | undefined ? T : ComputedVariable<T>
|
||||
|
||||
type ComputedVariable<T> = T & { [RefType]?: RefTypes.ComputedRef }
|
||||
|
||||
type WritableComputedRefValue<T> = T extends null | undefined
|
||||
? T
|
||||
: WritableComputedVariable<T>
|
||||
|
||||
type WritableComputedVariable<T> = T & {
|
||||
[RefType]?: RefTypes.WritableComputedRef
|
||||
}
|
||||
|
||||
type NormalObject<T extends object> = T & { [RefType]?: never }
|
||||
|
||||
/**
|
||||
* Vue ref transform macro for binding refs as reactive variables.
|
||||
*/
|
||||
export declare function $<T>(arg: ComputedRef<T>): ComputedRefValue<T>
|
||||
export declare function $<T>(
|
||||
arg: WritableComputedRef<T>
|
||||
): WritableComputedRefValue<T>
|
||||
export declare function $<T>(arg: Ref<T>): RefValue<T>
|
||||
export declare function $<T extends object>(arg?: T): DestructureRefs<T>
|
||||
|
||||
type DestructureRefs<T extends object> = {
|
||||
[K in keyof T]: T[K] extends ComputedRef<infer V>
|
||||
? ComputedRefValue<V>
|
||||
: T[K] extends WritableComputedRef<infer V>
|
||||
? WritableComputedRefValue<V>
|
||||
: T[K] extends Ref<infer V>
|
||||
? RefValue<V>
|
||||
: T[K]
|
||||
}
|
||||
|
||||
/**
|
||||
* Vue ref transform macro for accessing underlying refs of reactive variables.
|
||||
*/
|
||||
export declare function $$<T extends object>(arg: NormalObject<T>): ToRawRefs<T>
|
||||
export declare function $$<T>(value: RefValue<T>): Ref<T>
|
||||
export declare function $$<T>(value: ComputedRefValue<T>): ComputedRef<T>
|
||||
export declare function $$<T>(
|
||||
value: WritableComputedRefValue<T>
|
||||
): WritableComputedRef<T>
|
||||
|
||||
type ToRawRefs<T extends object> = {
|
||||
[K in keyof T]: T[K] extends RefValue<infer V>
|
||||
? Ref<V>
|
||||
: T[K] extends ComputedRefValue<infer V>
|
||||
? ComputedRef<V>
|
||||
: T[K] extends WritableComputedRefValue<infer V>
|
||||
? WritableComputedRef<V>
|
||||
: T[K] extends object
|
||||
? T[K] extends
|
||||
| Function
|
||||
| Map<any, any>
|
||||
| Set<any>
|
||||
| WeakMap<any, any>
|
||||
| WeakSet<any>
|
||||
? T[K]
|
||||
: ToRawRefs<T[K]>
|
||||
: T[K]
|
||||
}
|
||||
|
||||
export declare function $ref<T>(arg?: T | Ref<T>): RefValue<UnwrapRef<T>>
|
||||
|
||||
export declare function $shallowRef<T>(arg?: T): RefValue<T>
|
||||
|
||||
export declare function $toRef<T extends object, K extends keyof T>(
|
||||
object: T,
|
||||
key: K
|
||||
): RefValue<T[K]>
|
||||
|
||||
export declare function $toRef<T extends object, K extends keyof T>(
|
||||
object: T,
|
||||
key: K,
|
||||
defaultValue: T[K]
|
||||
): RefValue<Exclude<T[K], undefined>>
|
||||
|
||||
export declare function $customRef<T>(factory: CustomRefFactory<T>): RefValue<T>
|
||||
|
||||
export declare function $computed<T>(
|
||||
getter: () => T,
|
||||
debuggerOptions?: DebuggerOptions
|
||||
): ComputedRefValue<T>
|
||||
export declare function $computed<T>(
|
||||
options: WritableComputedOptions<T>,
|
||||
debuggerOptions?: DebuggerOptions
|
||||
): WritableComputedRefValue<T>
|
||||
77
node_modules/vue/package.json
generated
vendored
77
node_modules/vue/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vue",
|
||||
"version": "3.2.36",
|
||||
"version": "3.4.15",
|
||||
"description": "The progressive JavaScript framework for building modern web UI.",
|
||||
"main": "index.js",
|
||||
"module": "dist/vue.runtime.esm-bundler.js",
|
||||
@@ -13,32 +13,61 @@
|
||||
"dist",
|
||||
"compiler-sfc",
|
||||
"server-renderer",
|
||||
"macros.d.ts",
|
||||
"macros-global.d.ts",
|
||||
"ref-macros.d.ts"
|
||||
"jsx-runtime",
|
||||
"jsx.d.ts"
|
||||
],
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/vue.d.mts",
|
||||
"node": "./index.mjs",
|
||||
"default": "./dist/vue.runtime.esm-bundler.js"
|
||||
},
|
||||
"require": "./index.js",
|
||||
"types": "./dist/vue.d.ts"
|
||||
"require": {
|
||||
"types": "./dist/vue.d.ts",
|
||||
"node": {
|
||||
"production": "./dist/vue.cjs.prod.js",
|
||||
"development": "./dist/vue.cjs.js",
|
||||
"default": "./index.js"
|
||||
},
|
||||
"default": "./index.js"
|
||||
}
|
||||
},
|
||||
"./server-renderer": {
|
||||
"import": "./server-renderer/index.mjs",
|
||||
"require": "./server-renderer/index.js"
|
||||
"import": {
|
||||
"types": "./server-renderer/index.d.mts",
|
||||
"default": "./server-renderer/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./server-renderer/index.d.ts",
|
||||
"default": "./server-renderer/index.js"
|
||||
}
|
||||
},
|
||||
"./compiler-sfc": {
|
||||
"import": "./compiler-sfc/index.mjs",
|
||||
"require": "./compiler-sfc/index.js"
|
||||
"import": {
|
||||
"types": "./compiler-sfc/index.d.mts",
|
||||
"browser": "./compiler-sfc/index.browser.mjs",
|
||||
"default": "./compiler-sfc/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./compiler-sfc/index.d.ts",
|
||||
"browser": "./compiler-sfc/index.browser.js",
|
||||
"default": "./compiler-sfc/index.js"
|
||||
}
|
||||
},
|
||||
"./jsx-runtime": {
|
||||
"types": "./jsx-runtime/index.d.ts",
|
||||
"import": "./jsx-runtime/index.mjs",
|
||||
"require": "./jsx-runtime/index.js"
|
||||
},
|
||||
"./jsx-dev-runtime": {
|
||||
"types": "./jsx-runtime/index.d.ts",
|
||||
"import": "./jsx-runtime/index.mjs",
|
||||
"require": "./jsx-runtime/index.js"
|
||||
},
|
||||
"./jsx": "./jsx.d.ts",
|
||||
"./dist/*": "./dist/*",
|
||||
"./package.json": "./package.json",
|
||||
"./macros": "./macros.d.ts",
|
||||
"./macros-global": "./macros-global.d.ts",
|
||||
"./ref-macros": "./ref-macros.d.ts"
|
||||
"./package.json": "./package.json"
|
||||
},
|
||||
"buildOptions": {
|
||||
"name": "Vue",
|
||||
@@ -66,10 +95,18 @@
|
||||
},
|
||||
"homepage": "https://github.com/vuejs/core/tree/main/packages/vue#readme",
|
||||
"dependencies": {
|
||||
"@vue/shared": "3.2.36",
|
||||
"@vue/compiler-dom": "3.2.36",
|
||||
"@vue/runtime-dom": "3.2.36",
|
||||
"@vue/compiler-sfc": "3.2.36",
|
||||
"@vue/server-renderer": "3.2.36"
|
||||
"@vue/compiler-dom": "3.4.15",
|
||||
"@vue/server-renderer": "3.4.15",
|
||||
"@vue/runtime-dom": "3.4.15",
|
||||
"@vue/compiler-sfc": "3.4.15",
|
||||
"@vue/shared": "3.4.15"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"typescript": "*"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"typescript": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
2
node_modules/vue/ref-macros.d.ts
generated
vendored
2
node_modules/vue/ref-macros.d.ts
generated
vendored
@@ -1,2 +0,0 @@
|
||||
// TODO deprecated file - to be removed when out of experimental
|
||||
import './macros-global'
|
||||
1
node_modules/vue/server-renderer/index.d.mts
generated
vendored
Normal file
1
node_modules/vue/server-renderer/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
export * from '@vue/server-renderer'
|
||||
2
node_modules/vue/server-renderer/index.mjs
generated
vendored
2
node_modules/vue/server-renderer/index.mjs
generated
vendored
@@ -1 +1 @@
|
||||
export * from '@vue/server-renderer'
|
||||
export * from '@vue/server-renderer'
|
||||
|
||||
5
node_modules/vue/server-renderer/package.json
generated
vendored
5
node_modules/vue/server-renderer/package.json
generated
vendored
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"main": "index.js",
|
||||
"module": "index.mjs",
|
||||
"types": "index.d.ts"
|
||||
}
|
||||
"module": "index.mjs"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user