@cfp-studio/plugin-vue3 16.0.1
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/LICENSE +21 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.mjs +656 -0
- package/package.json +51 -0
- package/preview/index.ts +141 -0
- package/preview/modules/@vue/compiler-core/LICENSE +21 -0
- package/preview/modules/@vue/compiler-core/README.md +1 -0
- package/preview/modules/@vue/compiler-core/dist/compiler-core.cjs.js +6813 -0
- package/preview/modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6690 -0
- package/preview/modules/@vue/compiler-core/dist/compiler-core.d.ts +1091 -0
- package/preview/modules/@vue/compiler-core/dist/compiler-core.esm-bundler.js +5790 -0
- package/preview/modules/@vue/compiler-core/index.js +7 -0
- package/preview/modules/@vue/compiler-core/node_modules/.bin/parser +17 -0
- package/preview/modules/@vue/compiler-core/package.json +58 -0
- package/preview/modules/@vue/compiler-sfc/LICENSE +21 -0
- package/preview/modules/@vue/compiler-sfc/README.md +80 -0
- package/preview/modules/@vue/compiler-sfc/dist/compiler-sfc.cjs.js +24970 -0
- package/preview/modules/@vue/compiler-sfc/dist/compiler-sfc.d.ts +484 -0
- package/preview/modules/@vue/compiler-sfc/dist/compiler-sfc.esm-browser.js +53043 -0
- package/preview/modules/@vue/compiler-sfc/node_modules/.bin/parser +17 -0
- package/preview/modules/@vue/compiler-sfc/package.json +67 -0
- package/preview/modules/@vue/reactivity/LICENSE +21 -0
- package/preview/modules/@vue/reactivity/README.md +19 -0
- package/preview/modules/@vue/reactivity/dist/reactivity.cjs.js +1939 -0
- package/preview/modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1789 -0
- package/preview/modules/@vue/reactivity/dist/reactivity.d.ts +754 -0
- package/preview/modules/@vue/reactivity/dist/reactivity.esm-browser.js +1938 -0
- package/preview/modules/@vue/reactivity/dist/reactivity.esm-browser.prod.js +5 -0
- package/preview/modules/@vue/reactivity/dist/reactivity.esm-bundler.js +1896 -0
- package/preview/modules/@vue/reactivity/dist/reactivity.global.js +1994 -0
- package/preview/modules/@vue/reactivity/dist/reactivity.global.prod.js +5 -0
- package/preview/modules/@vue/reactivity/index.js +7 -0
- package/preview/modules/@vue/reactivity/package.json +55 -0
- package/preview/modules/@vue/runtime-core/LICENSE +21 -0
- package/preview/modules/@vue/runtime-core/README.md +28 -0
- package/preview/modules/@vue/runtime-core/dist/runtime-core.cjs.js +8493 -0
- package/preview/modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6654 -0
- package/preview/modules/@vue/runtime-core/dist/runtime-core.d.ts +1832 -0
- package/preview/modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +8419 -0
- package/preview/modules/@vue/runtime-core/index.js +7 -0
- package/preview/modules/@vue/runtime-core/package.json +52 -0
- package/preview/modules/@vue/runtime-dom/LICENSE +21 -0
- package/preview/modules/@vue/runtime-dom/README.md +13 -0
- package/preview/modules/@vue/runtime-dom/dist/runtime-dom.cjs.js +1820 -0
- package/preview/modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1669 -0
- package/preview/modules/@vue/runtime-dom/dist/runtime-dom.d.ts +1395 -0
- package/preview/modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.js +12332 -0
- package/preview/modules/@vue/runtime-dom/dist/runtime-dom.esm-browser.prod.js +5 -0
- package/preview/modules/@vue/runtime-dom/dist/runtime-dom.esm-bundler.js +1860 -0
- package/preview/modules/@vue/runtime-dom/dist/runtime-dom.global.js +12383 -0
- package/preview/modules/@vue/runtime-dom/dist/runtime-dom.global.prod.js +5 -0
- package/preview/modules/@vue/runtime-dom/index.js +7 -0
- package/preview/modules/@vue/runtime-dom/package.json +60 -0
- package/preview/modules/@vue/shared/LICENSE +21 -0
- package/preview/modules/@vue/shared/README.md +3 -0
- package/preview/modules/@vue/shared/dist/shared.cjs.js +594 -0
- package/preview/modules/@vue/shared/dist/shared.cjs.prod.js +594 -0
- package/preview/modules/@vue/shared/dist/shared.d.ts +328 -0
- package/preview/modules/@vue/shared/dist/shared.esm-bundler.js +519 -0
- package/preview/modules/@vue/shared/index.js +7 -0
- package/preview/modules/@vue/shared/package.json +47 -0
- package/preview/modules/vue/LICENSE +21 -0
- package/preview/modules/vue/README.md +62 -0
- package/preview/modules/vue/compiler-sfc/index.browser.js +1 -0
- package/preview/modules/vue/compiler-sfc/index.browser.mjs +1 -0
- package/preview/modules/vue/compiler-sfc/index.d.mts +1 -0
- package/preview/modules/vue/compiler-sfc/index.d.ts +1 -0
- package/preview/modules/vue/compiler-sfc/index.js +3 -0
- package/preview/modules/vue/compiler-sfc/index.mjs +3 -0
- package/preview/modules/vue/compiler-sfc/package.json +4 -0
- package/preview/modules/vue/compiler-sfc/register-ts.js +3 -0
- package/preview/modules/vue/dist/vue.cjs.js +80 -0
- package/preview/modules/vue/dist/vue.cjs.prod.js +66 -0
- package/preview/modules/vue/dist/vue.d.mts +7 -0
- package/preview/modules/vue/dist/vue.d.ts +7 -0
- package/preview/modules/vue/dist/vue.esm-browser.js +18216 -0
- package/preview/modules/vue/dist/vue.esm-browser.prod.js +9 -0
- package/preview/modules/vue/dist/vue.esm-bundler.js +71 -0
- package/preview/modules/vue/dist/vue.global.js +18096 -0
- package/preview/modules/vue/dist/vue.global.prod.js +9 -0
- package/preview/modules/vue/dist/vue.runtime.esm-browser.js +12355 -0
- package/preview/modules/vue/dist/vue.runtime.esm-browser.prod.js +5 -0
- package/preview/modules/vue/dist/vue.runtime.esm-bundler.js +26 -0
- package/preview/modules/vue/dist/vue.runtime.global.js +12407 -0
- package/preview/modules/vue/dist/vue.runtime.global.prod.js +5 -0
- package/preview/modules/vue/index.js +7 -0
- package/preview/modules/vue/index.mjs +1 -0
- package/preview/modules/vue/jsx-runtime/index.d.ts +25 -0
- package/preview/modules/vue/jsx-runtime/index.js +15 -0
- package/preview/modules/vue/jsx-runtime/index.mjs +12 -0
- package/preview/modules/vue/jsx-runtime/package.json +5 -0
- package/preview/modules/vue/jsx.d.ts +22 -0
- package/preview/modules/vue/node_modules/.bin/tsc +17 -0
- package/preview/modules/vue/node_modules/.bin/tsserver +17 -0
- package/preview/modules/vue/package.json +112 -0
- package/preview/modules/vue/server-renderer/index.d.mts +1 -0
- package/preview/modules/vue/server-renderer/index.d.ts +1 -0
- package/preview/modules/vue/server-renderer/index.js +1 -0
- package/preview/modules/vue/server-renderer/index.mjs +1 -0
- package/preview/modules/vue/server-renderer/package.json +4 -0
- package/preview/tsconfig.json +8 -0
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue v3.5.13
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var compilerDom = require('@vue/compiler-dom');
|
|
11
|
+
var runtimeDom = require('@vue/runtime-dom');
|
|
12
|
+
var shared = require('@vue/shared');
|
|
13
|
+
|
|
14
|
+
function _interopNamespaceDefault(e) {
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
for (var k in e) {
|
|
18
|
+
n[k] = e[k];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
|
|
26
|
+
|
|
27
|
+
const compileCache = /* @__PURE__ */ Object.create(null);
|
|
28
|
+
function compileToFunction(template, options) {
|
|
29
|
+
if (!shared.isString(template)) {
|
|
30
|
+
if (template.nodeType) {
|
|
31
|
+
template = template.innerHTML;
|
|
32
|
+
} else {
|
|
33
|
+
runtimeDom.warn(`invalid template option: `, template);
|
|
34
|
+
return shared.NOOP;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const key = shared.genCacheKey(template, options);
|
|
38
|
+
const cached = compileCache[key];
|
|
39
|
+
if (cached) {
|
|
40
|
+
return cached;
|
|
41
|
+
}
|
|
42
|
+
if (template[0] === "#") {
|
|
43
|
+
const el = document.querySelector(template);
|
|
44
|
+
if (!el) {
|
|
45
|
+
runtimeDom.warn(`Template element not found or is empty: ${template}`);
|
|
46
|
+
}
|
|
47
|
+
template = el ? el.innerHTML : ``;
|
|
48
|
+
}
|
|
49
|
+
const opts = shared.extend(
|
|
50
|
+
{
|
|
51
|
+
hoistStatic: true,
|
|
52
|
+
onError: onError ,
|
|
53
|
+
onWarn: (e) => onError(e, true)
|
|
54
|
+
},
|
|
55
|
+
options
|
|
56
|
+
);
|
|
57
|
+
if (!opts.isCustomElement && typeof customElements !== "undefined") {
|
|
58
|
+
opts.isCustomElement = (tag) => !!customElements.get(tag);
|
|
59
|
+
}
|
|
60
|
+
const { code } = compilerDom.compile(template, opts);
|
|
61
|
+
function onError(err, asWarning = false) {
|
|
62
|
+
const message = asWarning ? err.message : `Template compilation error: ${err.message}`;
|
|
63
|
+
const codeFrame = err.loc && shared.generateCodeFrame(
|
|
64
|
+
template,
|
|
65
|
+
err.loc.start.offset,
|
|
66
|
+
err.loc.end.offset
|
|
67
|
+
);
|
|
68
|
+
runtimeDom.warn(codeFrame ? `${message}
|
|
69
|
+
${codeFrame}` : message);
|
|
70
|
+
}
|
|
71
|
+
const render = new Function("Vue", code)(runtimeDom__namespace);
|
|
72
|
+
render._rc = true;
|
|
73
|
+
return compileCache[key] = render;
|
|
74
|
+
}
|
|
75
|
+
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
|
76
|
+
|
|
77
|
+
exports.compile = compileToFunction;
|
|
78
|
+
Object.keys(runtimeDom).forEach(function (k) {
|
|
79
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
|
|
80
|
+
});
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* vue v3.5.13
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/
|
|
6
|
+
'use strict';
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
9
|
+
|
|
10
|
+
var compilerDom = require('@vue/compiler-dom');
|
|
11
|
+
var runtimeDom = require('@vue/runtime-dom');
|
|
12
|
+
var shared = require('@vue/shared');
|
|
13
|
+
|
|
14
|
+
function _interopNamespaceDefault(e) {
|
|
15
|
+
var n = Object.create(null);
|
|
16
|
+
if (e) {
|
|
17
|
+
for (var k in e) {
|
|
18
|
+
n[k] = e[k];
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
n.default = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var runtimeDom__namespace = /*#__PURE__*/_interopNamespaceDefault(runtimeDom);
|
|
26
|
+
|
|
27
|
+
const compileCache = /* @__PURE__ */ Object.create(null);
|
|
28
|
+
function compileToFunction(template, options) {
|
|
29
|
+
if (!shared.isString(template)) {
|
|
30
|
+
if (template.nodeType) {
|
|
31
|
+
template = template.innerHTML;
|
|
32
|
+
} else {
|
|
33
|
+
return shared.NOOP;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const key = shared.genCacheKey(template, options);
|
|
37
|
+
const cached = compileCache[key];
|
|
38
|
+
if (cached) {
|
|
39
|
+
return cached;
|
|
40
|
+
}
|
|
41
|
+
if (template[0] === "#") {
|
|
42
|
+
const el = document.querySelector(template);
|
|
43
|
+
template = el ? el.innerHTML : ``;
|
|
44
|
+
}
|
|
45
|
+
const opts = shared.extend(
|
|
46
|
+
{
|
|
47
|
+
hoistStatic: true,
|
|
48
|
+
onError: void 0,
|
|
49
|
+
onWarn: shared.NOOP
|
|
50
|
+
},
|
|
51
|
+
options
|
|
52
|
+
);
|
|
53
|
+
if (!opts.isCustomElement && typeof customElements !== "undefined") {
|
|
54
|
+
opts.isCustomElement = (tag) => !!customElements.get(tag);
|
|
55
|
+
}
|
|
56
|
+
const { code } = compilerDom.compile(template, opts);
|
|
57
|
+
const render = new Function("Vue", code)(runtimeDom__namespace);
|
|
58
|
+
render._rc = true;
|
|
59
|
+
return compileCache[key] = render;
|
|
60
|
+
}
|
|
61
|
+
runtimeDom.registerRuntimeCompiler(compileToFunction);
|
|
62
|
+
|
|
63
|
+
exports.compile = compileToFunction;
|
|
64
|
+
Object.keys(runtimeDom).forEach(function (k) {
|
|
65
|
+
if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) exports[k] = runtimeDom[k];
|
|
66
|
+
});
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompilerOptions } from '@vue/compiler-dom';
|
|
2
|
+
import { RenderFunction } from '@vue/runtime-dom';
|
|
3
|
+
export * from '@vue/runtime-dom';
|
|
4
|
+
|
|
5
|
+
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
|
6
|
+
|
|
7
|
+
export { compileToFunction as compile };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CompilerOptions } from '@vue/compiler-dom';
|
|
2
|
+
import { RenderFunction } from '@vue/runtime-dom';
|
|
3
|
+
export * from '@vue/runtime-dom';
|
|
4
|
+
|
|
5
|
+
export declare function compileToFunction(template: string | HTMLElement, options?: CompilerOptions): RenderFunction;
|
|
6
|
+
|
|
7
|
+
export { compileToFunction as compile };
|