marko 6.0.162 → 6.0.164

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.
Files changed (38) hide show
  1. package/dist/common/helpers.d.ts +0 -1
  2. package/dist/common/types.d.ts +0 -1
  3. package/dist/debug/dom.js +1 -1
  4. package/dist/debug/dom.mjs +1 -1
  5. package/dist/debug/html.js +9 -2
  6. package/dist/debug/html.mjs +8 -2
  7. package/dist/dom/dom.d.ts +0 -3
  8. package/dist/dom.js +1 -1
  9. package/dist/dom.mjs +1 -1
  10. package/dist/html/attrs.d.ts +0 -2
  11. package/dist/html/content.d.ts +1 -0
  12. package/dist/html/for.d.ts +4 -3
  13. package/dist/html/template.d.ts +0 -1
  14. package/dist/html/writer.d.ts +0 -2
  15. package/dist/html.d.ts +1 -1
  16. package/dist/html.js +8 -2
  17. package/dist/html.mjs +7 -2
  18. package/dist/translator/core/for.d.ts +2 -57
  19. package/dist/translator/core/if.d.ts +70 -27
  20. package/dist/translator/core/index.d.ts +70 -84
  21. package/dist/translator/index.d.ts +70 -84
  22. package/dist/translator/index.js +250 -248
  23. package/dist/translator/util/generate-uid.d.ts +0 -1
  24. package/dist/translator/util/get-compile-stage.d.ts +0 -8
  25. package/dist/translator/util/get-root.d.ts +2 -2
  26. package/dist/translator/util/nested-attribute-tags.d.ts +1 -1
  27. package/dist/translator/util/references.d.ts +0 -2
  28. package/dist/translator/util/resolve-relative-to-entry.d.ts +2 -0
  29. package/dist/translator/util/runtime.d.ts +2 -1
  30. package/dist/translator/util/scope-read.d.ts +1 -2
  31. package/dist/translator/util/sections.d.ts +0 -1
  32. package/dist/translator/util/serialize-reasons.d.ts +0 -3
  33. package/dist/translator/util/signals.d.ts +0 -2
  34. package/dist/translator/util/state.d.ts +1 -1
  35. package/dist/translator/visitors/program/index.d.ts +0 -11
  36. package/dist/translator/visitors/program/pre-analyze.d.ts +0 -1
  37. package/package.json +1 -1
  38. /package/dist/translator/util/{get-defined-binding-expression.d.ts → get-declared-binding-expression.d.ts} +0 -0
@@ -19,13 +19,41 @@ export declare const taglibs: (string | {
19
19
  description: string;
20
20
  descriptionMoreURL: string;
21
21
  }[];
22
- analyze(tag: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>): void;
23
- translate: {
24
- readonly enter: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
25
- readonly exit: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
22
+ attributeGroups?: string[];
23
+ patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
24
+ attributes?: {
25
+ [x: string]: import("@marko/compiler/babel-utils").Attribute;
26
26
  };
27
- parseOptions: {
28
- controlFlow: true;
27
+ description?: string;
28
+ nestedTags?: {
29
+ [x: string]: import("@marko/compiler/babel-utils").Tag & {
30
+ isRepeated?: boolean;
31
+ targetProperty?: string;
32
+ };
33
+ };
34
+ htmlType?: "html" | "svg" | "math";
35
+ html?: boolean;
36
+ types?: string;
37
+ template?: string;
38
+ renderer?: string;
39
+ deprecated?: boolean;
40
+ openTagOnly?: boolean;
41
+ analyze?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
42
+ translate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
43
+ parse?: import("@marko/compiler/babel-utils").ParsePlugin<import("@marko/compiler/babel-types").MarkoTag>;
44
+ transform?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag> | import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>[];
45
+ migrate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag> | import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>[];
46
+ parseOptions?: {
47
+ rootOnly?: boolean;
48
+ rawOpenTag?: boolean;
49
+ openTagOnly?: boolean;
50
+ controlFlow?: boolean;
51
+ ignoreAttributes?: boolean;
52
+ relaxRequireCommas?: boolean;
53
+ statement?: boolean;
54
+ preserveWhitespace?: boolean;
55
+ text?: boolean;
56
+ html?: boolean;
29
57
  };
30
58
  };
31
59
  "<else>": {
@@ -33,92 +61,50 @@ export declare const taglibs: (string | {
33
61
  description: string;
34
62
  descriptionMoreURL: string;
35
63
  }[];
36
- analyze(tag: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>): void;
37
- translate: {
38
- readonly enter: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
39
- readonly exit: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
40
- };
41
- parseOptions: {
42
- controlFlow: true;
43
- };
44
- };
45
- "<export>": import("@marko/compiler/babel-utils").Tag;
46
- "<for>": {
47
- analyze(tag: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>): void;
48
- translate: {
49
- readonly enter: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
50
- readonly exit: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
51
- };
52
- parseOptions: {
53
- controlFlow: true;
64
+ attributeGroups?: string[];
65
+ patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
66
+ attributes?: {
67
+ [x: string]: import("@marko/compiler/babel-utils").Attribute;
54
68
  };
55
- attributes: {
56
- of: {
57
- type: string;
58
- autocomplete: {
59
- description: string;
60
- }[];
61
- };
62
- in: {
63
- type: string;
64
- autocomplete: {
65
- description: string;
66
- }[];
67
- };
68
- to: {
69
- type: string;
70
- autocomplete: {
71
- description: string;
72
- }[];
73
- };
74
- until: {
75
- type: string;
76
- autocomplete: {
77
- description: string;
78
- }[];
79
- };
80
- from: {
81
- type: string;
82
- autocomplete: {
83
- description: string;
84
- }[];
85
- };
86
- step: {
87
- type: string;
88
- autocomplete: {
89
- description: string;
90
- }[];
69
+ description?: string;
70
+ nestedTags?: {
71
+ [x: string]: import("@marko/compiler/babel-utils").Tag & {
72
+ isRepeated?: boolean;
73
+ targetProperty?: string;
91
74
  };
92
75
  };
93
- autocomplete: ({
94
- snippet: string;
95
- description: string;
96
- descriptionMoreURL: string;
97
- } | {
98
- snippet: string;
99
- descriptionMoreURL: string;
100
- description?: undefined;
101
- })[];
76
+ htmlType?: "html" | "svg" | "math";
77
+ html?: boolean;
78
+ types?: string;
79
+ template?: string;
80
+ renderer?: string;
81
+ deprecated?: boolean;
82
+ openTagOnly?: boolean;
83
+ analyze?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
84
+ translate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
85
+ parse?: import("@marko/compiler/babel-utils").ParsePlugin<import("@marko/compiler/babel-types").MarkoTag>;
86
+ transform?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag> | import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>[];
87
+ migrate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag> | import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>[];
88
+ parseOptions?: {
89
+ rootOnly?: boolean;
90
+ rawOpenTag?: boolean;
91
+ openTagOnly?: boolean;
92
+ controlFlow?: boolean;
93
+ ignoreAttributes?: boolean;
94
+ relaxRequireCommas?: boolean;
95
+ statement?: boolean;
96
+ preserveWhitespace?: boolean;
97
+ text?: boolean;
98
+ html?: boolean;
99
+ };
102
100
  };
101
+ "<export>": import("@marko/compiler/babel-utils").Tag;
102
+ "<for>": import("@marko/compiler/babel-utils").Tag;
103
103
  "<html-comment>": import("@marko/compiler/babel-utils").Tag;
104
104
  "<html-script>": import("@marko/compiler/babel-utils").Tag;
105
105
  "<html-style>": import("@marko/compiler/babel-utils").Tag;
106
106
  "<id>": import("@marko/compiler/babel-utils").Tag;
107
- "<if>": {
108
- analyze(tag: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>): void;
109
- translate: {
110
- readonly enter: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
111
- readonly exit: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
112
- };
113
- parseOptions: {
114
- controlFlow: true;
115
- };
116
- autocomplete: {
117
- snippet: string;
118
- description: string;
119
- descriptionMoreURL: string;
120
- }[];
121
- };
107
+ "<if>": import("@marko/compiler/babel-utils").Tag;
122
108
  "<import>": import("@marko/compiler/babel-utils").Tag;
123
109
  "<let>": import("@marko/compiler/babel-utils").Tag;
124
110
  "<lifecycle>": import("@marko/compiler/babel-utils").Tag;