@vue/compiler-dom 3.6.0-beta.1 → 3.6.0-beta.11
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/compiler-dom.cjs.js +656 -848
- package/dist/compiler-dom.cjs.prod.js +635 -810
- package/dist/compiler-dom.d.ts +43 -35
- package/dist/compiler-dom.esm-browser.js +4508 -6248
- package/dist/compiler-dom.esm-browser.prod.js +10 -13
- package/dist/compiler-dom.esm-bundler.js +480 -635
- package/dist/compiler-dom.global.js +5172 -6914
- package/dist/compiler-dom.global.prod.js +10 -13
- package/package.json +3 -3
package/dist/compiler-dom.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export * from
|
|
1
|
+
import { CodegenResult, CompilerError, CompilerOptions, ComponentNode, DirectiveTransform, ExpressionNode, NodeTransform, ParserOptions, RootNode, SimpleExpressionNode, SourceLocation, TransformContext } from "@vue/compiler-core";
|
|
2
|
+
export * from "@vue/compiler-core";
|
|
3
3
|
|
|
4
|
+
//#region temp/packages/compiler-dom/src/parserOptions.d.ts
|
|
4
5
|
export declare const parserOptions: ParserOptions;
|
|
5
|
-
|
|
6
|
+
//#endregion
|
|
7
|
+
//#region temp/packages/compiler-dom/src/runtimeHelpers.d.ts
|
|
6
8
|
export declare const V_MODEL_RADIO: unique symbol;
|
|
7
9
|
export declare const V_MODEL_CHECKBOX: unique symbol;
|
|
8
10
|
export declare const V_MODEL_TEXT: unique symbol;
|
|
@@ -13,53 +15,59 @@ export declare const V_ON_WITH_KEYS: unique symbol;
|
|
|
13
15
|
export declare const V_SHOW: unique symbol;
|
|
14
16
|
export declare const TRANSITION: unique symbol;
|
|
15
17
|
export declare const TRANSITION_GROUP: unique symbol;
|
|
16
|
-
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region temp/packages/compiler-dom/src/transforms/transformStyle.d.ts
|
|
17
20
|
export declare const transformStyle: NodeTransform;
|
|
18
|
-
|
|
21
|
+
//#endregion
|
|
22
|
+
//#region temp/packages/compiler-dom/src/errors.d.ts
|
|
19
23
|
interface DOMCompilerError extends CompilerError {
|
|
20
|
-
|
|
24
|
+
code: DOMErrorCodes;
|
|
21
25
|
}
|
|
22
26
|
export declare function createDOMCompilerError(code: DOMErrorCodes, loc?: SourceLocation): DOMCompilerError;
|
|
23
27
|
export declare enum DOMErrorCodes {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
X_V_HTML_NO_EXPRESSION = 54,
|
|
29
|
+
X_V_HTML_WITH_CHILDREN = 55,
|
|
30
|
+
X_V_TEXT_NO_EXPRESSION = 56,
|
|
31
|
+
X_V_TEXT_WITH_CHILDREN = 57,
|
|
32
|
+
X_V_MODEL_ON_INVALID_ELEMENT = 58,
|
|
33
|
+
X_V_MODEL_ARG_ON_ELEMENT = 59,
|
|
34
|
+
X_V_MODEL_ON_FILE_INPUT_ELEMENT = 60,
|
|
35
|
+
X_V_MODEL_UNNECESSARY_VALUE = 61,
|
|
36
|
+
X_V_SHOW_NO_EXPRESSION = 62,
|
|
37
|
+
X_TRANSITION_INVALID_CHILDREN = 63,
|
|
38
|
+
X_IGNORED_SIDE_EFFECT_TAG = 64,
|
|
39
|
+
__EXTEND_POINT__ = 65
|
|
36
40
|
}
|
|
37
41
|
export declare const DOMErrorMessages: Record<DOMErrorCodes, string>;
|
|
38
|
-
|
|
42
|
+
//#endregion
|
|
43
|
+
//#region temp/packages/compiler-dom/src/transforms/vOn.d.ts
|
|
39
44
|
export declare const isKeyboardEvent: (key: string) => boolean;
|
|
40
45
|
export declare const resolveModifiers: (key: ExpressionNode | string, modifiers: SimpleExpressionNode[], context: TransformContext | null, loc: SourceLocation) => {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
46
|
+
keyModifiers: string[];
|
|
47
|
+
nonKeyModifiers: string[];
|
|
48
|
+
eventOptionModifiers: string[];
|
|
44
49
|
};
|
|
45
|
-
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region temp/packages/compiler-dom/src/htmlNesting.d.ts
|
|
46
52
|
/**
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
53
|
+
* Copied from https://github.com/MananTank/validate-html-nesting
|
|
54
|
+
* with ISC license
|
|
55
|
+
*
|
|
56
|
+
* To avoid runtime dependency on validate-html-nesting
|
|
57
|
+
* This file should not change very often in the original repo
|
|
58
|
+
* but we may need to keep it up-to-date from time to time.
|
|
59
|
+
*/
|
|
54
60
|
/**
|
|
55
|
-
|
|
56
|
-
|
|
61
|
+
* returns true if given parent-child nesting is valid HTML
|
|
62
|
+
*/
|
|
57
63
|
export declare function isValidHTMLNesting(parent: string, child: string): boolean;
|
|
58
|
-
|
|
64
|
+
//#endregion
|
|
65
|
+
//#region temp/packages/compiler-dom/src/transforms/Transition.d.ts
|
|
59
66
|
export declare function postTransformTransition(node: ComponentNode, onError: (error: CompilerError) => void, hasMultipleChildren?: (node: ComponentNode) => boolean): () => void;
|
|
60
|
-
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region temp/packages/compiler-dom/src/index.d.ts
|
|
61
69
|
export declare const DOMNodeTransforms: NodeTransform[];
|
|
62
70
|
export declare const DOMDirectiveTransforms: Record<string, DirectiveTransform>;
|
|
63
71
|
export declare function compile(src: string | RootNode, options?: CompilerOptions): CodegenResult;
|
|
64
72
|
export declare function parse(template: string, options?: ParserOptions): RootNode;
|
|
65
|
-
|
|
73
|
+
//#endregion
|