@zeus-js/compiler 0.1.0-alpha.1 → 0.1.0-beta.0

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.
@@ -0,0 +1,90 @@
1
+ import * as _babel_core from '@babel/core';
2
+
3
+ /**
4
+ * Compiler configuration interface.
5
+ */
6
+ export interface CompilerOptions {
7
+ /**
8
+ * The name of the runtime module to import the methods from.
9
+ */
10
+ moduleName: string;
11
+ /**
12
+ * The output mode of the compiler. Can be "dom"(default), "ssr". "dom" is standard output. "ssr" is for server side rendering of strings.
13
+ * @default 'dom'
14
+ */
15
+ generate: 'dom';
16
+ /**
17
+ * Indicate whether the output should contain hydratable markers.
18
+ * @default true
19
+ */
20
+ hydratable: boolean;
21
+ /**
22
+ * Boolean to indicate whether to enable automatic event delegation on camelCase.
23
+ * @default true
24
+ */
25
+ delegateEvents: boolean;
26
+ /**
27
+ * Array of Component exports from module, that aren't included by default with the library. This plugin will automatically import them if it comes across them in the JSX.
28
+ * @default []
29
+ */
30
+ delegatedEvents: string[];
31
+ /**
32
+ * Array of Component exports from module, that aren't included by default with the library. This plugin will automatically import them if it comes across them in the JSX.
33
+ * @default []
34
+ */
35
+ builtIns: string[];
36
+ /**
37
+ * When set to a string value, this option restricts JSX transformation to only files that contain a specific JSX import source pragma comment. The plugin will only transform JSX in files that include a comment with `@jsxImportSource` followed by the specified value. If the comment is missing or specifies a different import source, the transformation is skipped for that file.
38
+ * @default false
39
+ */
40
+ /**
41
+ * Boolean indicates whether smart conditional detection should be used. This optimizes simple boolean expressions and ternaries in JSX.
42
+ * @default true
43
+ */
44
+ wrapConditionals: boolean;
45
+ omitNestedClosingTags: boolean;
46
+ /**
47
+ * Removes tags from the template output if they have no closing parents and are the last element. This may not work in all browser-like environments the same. The solution has been tested again Chrome/Edge/Firefox/Safari.
48
+ * @default true
49
+ */
50
+ omitLastClosingTag: boolean;
51
+ /**
52
+ * Removes quotes for html attributes when possible from the template output. This may not work in all browser-like environments the same. The solution has been tested again Chrome/Edge/Firefox/Safari.
53
+ * @default true
54
+ */
55
+ omitQuotes: boolean;
56
+ /**
57
+ * Boolean indicates whether to set current render context on Custom Elements and slots. Useful for seemless Context API with Web Components.
58
+ * @default false
59
+ */
60
+ contextToCustomElements: boolean;
61
+ /**
62
+ * Comment decorator string indicates the static expression, used to tell the compiler not to wrap them by `effect` function, defaults to `@once`.
63
+ * @default '@once'
64
+ */
65
+ staticMarker: string;
66
+ /**
67
+ * This plugin leverages a heuristic for reactive wrapping and lazy evaluation of JSX expressions. This option indicates the reactive wrapper function name (`effect`), defaults to `effect`.
68
+ * @default 'effect'
69
+ */
70
+ effectWrapper: string;
71
+ /**
72
+ * Memos let you efficiently use a derived value in many reactive computations. This option indicates the memo function name, defaults to `memo`.
73
+ * @default 'memo'
74
+ */
75
+ memoWrapper: string;
76
+ /**
77
+ * Checks for properly formed HTML by checking for elements that would not be allowed in certain parent elements. This validation isn't complete but includes places where browser would "correct" it and break the DOM walks.
78
+ * @default true
79
+ */
80
+ validate: boolean;
81
+ /**
82
+ * Boolean indicates whether to inline styles into the template output.
83
+ * @default true
84
+ */
85
+ inlineStyles: boolean;
86
+ }
87
+
88
+ declare const _default: (api: object, options: CompilerOptions | null | undefined, dirname: string) => _babel_core.PluginObj<_babel_core.PluginPass>;
89
+
90
+ export { _default as default };