@htmlplus/element 0.4.9 → 0.5.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.
- package/client/decorators/attributes.js +2 -3
- package/client/decorators/element.js +15 -18
- package/client/decorators/property.js +10 -20
- package/client/decorators/state.js +5 -9
- package/client/decorators/watch.d.ts +2 -0
- package/client/decorators/watch.js +10 -13
- package/client/helpers/query.js +3 -3
- package/client/helpers/queryAll.js +3 -3
- package/client/helpers/slots.js +10 -12
- package/client/utils/appendToMethod.d.ts +1 -1
- package/client/utils/appendToMethod.js +3 -3
- package/client/utils/call.d.ts +1 -1
- package/client/utils/call.js +2 -2
- package/client/utils/index.d.ts +1 -0
- package/client/utils/index.js +1 -0
- package/client/utils/request.d.ts +8 -3
- package/client/utils/request.js +51 -25
- package/client/utils/shadowRoot.d.ts +2 -0
- package/client/utils/shadowRoot.js +5 -0
- package/client/utils/task.d.ts +4 -4
- package/client/utils/task.js +5 -8
- package/compiler/compiler.js +21 -20
- package/compiler/plugins/assets.d.ts +1 -0
- package/compiler/plugins/assets.js +9 -2
- package/compiler/plugins/copy.d.ts +3 -4
- package/compiler/plugins/copy.js +6 -3
- package/compiler/plugins/customElement.js +10 -2
- package/compiler/plugins/customElementReact/customElementReact.d.ts +9 -3
- package/compiler/plugins/customElementReact/customElementReact.js +9 -42
- package/compiler/plugins/customElementReact/templates/src/components/{{fileName}}.compact.ts.hbs +10 -7
- package/compiler/plugins/customElementReact/templates/src/components/{{fileName}}.ts.hbs +3 -3
- package/compiler/plugins/document.d.ts +2 -1
- package/compiler/plugins/document.js +9 -32
- package/compiler/plugins/extract.js +2 -4
- package/compiler/plugins/index.d.ts +1 -0
- package/compiler/plugins/index.js +1 -0
- package/compiler/plugins/parse.d.ts +3 -1
- package/compiler/plugins/parse.js +8 -7
- package/compiler/plugins/readme.d.ts +8 -0
- package/compiler/plugins/readme.js +23 -0
- package/compiler/plugins/style.d.ts +2 -2
- package/compiler/plugins/style.js +8 -5
- package/compiler/plugins/webTypes.d.ts +3 -2
- package/compiler/plugins/webTypes.js +15 -15
- package/constants/index.d.ts +11 -6
- package/constants/index.js +11 -7
- package/package.json +1 -1
- package/types/context.d.ts +13 -15
package/types/context.d.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { ClassBody, ClassDeclaration, ClassMethod, ClassProperty, File } from '@babel/types';
|
|
2
2
|
export interface Context {
|
|
3
|
-
assets?: string;
|
|
4
3
|
customElementNames?: Array<string>;
|
|
5
|
-
dependencies?: Array<Context>;
|
|
6
|
-
dependenciesUnresolved?: Array<string>;
|
|
7
4
|
isInvalid?: boolean;
|
|
8
5
|
script?: string;
|
|
9
6
|
outputs?: Array<{
|
|
@@ -11,8 +8,17 @@ export interface Context {
|
|
|
11
8
|
options?: any;
|
|
12
9
|
output?: any;
|
|
13
10
|
}>;
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
assets?: string;
|
|
12
|
+
class?: ClassDeclaration;
|
|
13
|
+
classEvents?: Array<ClassProperty>;
|
|
14
|
+
classHasMount?: boolean;
|
|
15
|
+
classHasUnmount?: boolean;
|
|
16
|
+
classMembers?: ClassBody['body'];
|
|
17
|
+
classMethods?: Array<ClassMethod>;
|
|
18
|
+
className?: string;
|
|
19
|
+
classProperties?: Array<ClassProperty>;
|
|
20
|
+
classRender?: ClassMethod;
|
|
21
|
+
classStates?: Array<ClassProperty>;
|
|
16
22
|
componentInterfaceName?: string;
|
|
17
23
|
componentKey?: string;
|
|
18
24
|
componentTag?: string;
|
|
@@ -23,18 +29,10 @@ export interface Context {
|
|
|
23
29
|
fileExtension?: string;
|
|
24
30
|
fileName?: string;
|
|
25
31
|
filePath?: string;
|
|
32
|
+
readmeContent?: string;
|
|
33
|
+
readmePath?: string;
|
|
26
34
|
styleContent?: string;
|
|
27
35
|
styleDependencies?: Array<string>;
|
|
28
36
|
styleParsed?: string;
|
|
29
37
|
stylePath?: string;
|
|
30
|
-
class?: ClassDeclaration;
|
|
31
|
-
classEvents?: Array<ClassProperty>;
|
|
32
|
-
classHasMount?: boolean;
|
|
33
|
-
classHasUnmount?: boolean;
|
|
34
|
-
classMembers?: ClassBody['body'];
|
|
35
|
-
classMethods?: Array<ClassMethod>;
|
|
36
|
-
className?: string;
|
|
37
|
-
classProperties?: Array<ClassProperty>;
|
|
38
|
-
classRender?: ClassMethod;
|
|
39
|
-
classStates?: Array<ClassProperty>;
|
|
40
38
|
}
|