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
@@ -6,6 +6,5 @@ export declare function styleValue(styleValue: unknown): string;
6
6
  export declare function isEventHandler(name: string): name is `on${string}`;
7
7
  export declare function getEventHandlerName(name: `on${string}`): string;
8
8
  export declare function isVoid(value: unknown): value is false | null | undefined;
9
- export declare function alphaEncode(num: number): string;
10
9
  export declare function normalizeDynamicRenderer<Renderer>(value: any): Renderer | string | undefined;
11
10
  export declare const decodeAccessor: (num: number) => string;
@@ -2,7 +2,6 @@ import type { PendingRender } from "../dom/queue";
2
2
  import type { Renderer as ClientRenderer, Renderer } from "../dom/renderer";
3
3
  import type { AccessorProp } from "./accessor.debug";
4
4
  export type Falsy = undefined | null | false | 0 | "";
5
- export type CommentWalker = TreeWalker & Record<string, Comment>;
6
5
  export interface BranchScope extends Scope {
7
6
  [AccessorProp.StartNode]: ChildNode;
8
7
  [AccessorProp.EndNode]: ChildNode;
package/dist/debug/dom.js CHANGED
@@ -620,7 +620,7 @@ function _closure(...closureSignals) {
620
620
  if (!childScope["#Creating" /* Creating */]) {
621
621
  queueRender(
622
622
  childScope,
623
- closureSignals[childScope[___signalIndexAccessor]],
623
+ closureSignals[childScope[___signalIndexAccessor] || 0],
624
624
  -1
625
625
  );
626
626
  }
@@ -504,7 +504,7 @@ function _closure(...closureSignals) {
504
504
  if (!childScope["#Creating" /* Creating */]) {
505
505
  queueRender(
506
506
  childScope,
507
- closureSignals[childScope[___signalIndexAccessor]],
507
+ closureSignals[childScope[___signalIndexAccessor] || 0],
508
508
  -1
509
509
  );
510
510
  }
@@ -47,6 +47,7 @@ __export(html_exports, {
47
47
  _el_read_error: () => _el_read_error,
48
48
  _el_resume: () => _el_resume,
49
49
  _escape: () => _escape,
50
+ _escape_comment: () => _escape_comment,
50
51
  _escape_script: () => _escape_script,
51
52
  _escape_style: () => _escape_style,
52
53
  _existing_scope: () => _existing_scope,
@@ -256,16 +257,21 @@ var escapeXMLStr = (str) => unsafeXMLReg.test(str) ? str.replace(unsafeXMLReg, r
256
257
  function _escape(val) {
257
258
  return val ? escapeXMLStr(val + "") : val === 0 ? "0" : "";
258
259
  }
259
- var unsafeScriptReg = /<\/script/g;
260
+ var unsafeScriptReg = /<\/script/gi;
260
261
  var escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str;
261
262
  function _escape_script(val) {
262
263
  return val ? escapeScriptStr(val + "") : val === 0 ? "0" : "";
263
264
  }
264
- var unsafeStyleReg = /<\/style/g;
265
+ var unsafeStyleReg = /<\/style/gi;
265
266
  var escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str;
266
267
  function _escape_style(val) {
267
268
  return val ? escapeStyleStr(val + "") : val === 0 ? "0" : "";
268
269
  }
270
+ var unsafeCommentReg = />/g;
271
+ var escapeCommentStr = (str) => unsafeCommentReg.test(str) ? str.replace(unsafeCommentReg, "&gt;") : str;
272
+ function _escape_comment(val) {
273
+ return val ? escapeCommentStr(val + "") : val === 0 ? "0" : "";
274
+ }
269
275
 
270
276
  // src/common/for.ts
271
277
  function forIn(obj, cb) {
@@ -3764,6 +3770,7 @@ function NOOP3() {
3764
3770
  _el_read_error,
3765
3771
  _el_resume,
3766
3772
  _escape,
3773
+ _escape_comment,
3767
3774
  _escape_script,
3768
3775
  _escape_style,
3769
3776
  _existing_scope,
@@ -164,16 +164,21 @@ var escapeXMLStr = (str) => unsafeXMLReg.test(str) ? str.replace(unsafeXMLReg, r
164
164
  function _escape(val) {
165
165
  return val ? escapeXMLStr(val + "") : val === 0 ? "0" : "";
166
166
  }
167
- var unsafeScriptReg = /<\/script/g;
167
+ var unsafeScriptReg = /<\/script/gi;
168
168
  var escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str;
169
169
  function _escape_script(val) {
170
170
  return val ? escapeScriptStr(val + "") : val === 0 ? "0" : "";
171
171
  }
172
- var unsafeStyleReg = /<\/style/g;
172
+ var unsafeStyleReg = /<\/style/gi;
173
173
  var escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str;
174
174
  function _escape_style(val) {
175
175
  return val ? escapeStyleStr(val + "") : val === 0 ? "0" : "";
176
176
  }
177
+ var unsafeCommentReg = />/g;
178
+ var escapeCommentStr = (str) => unsafeCommentReg.test(str) ? str.replace(unsafeCommentReg, "&gt;") : str;
179
+ function _escape_comment(val) {
180
+ return val ? escapeCommentStr(val + "") : val === 0 ? "0" : "";
181
+ }
177
182
 
178
183
  // src/common/for.ts
179
184
  function forIn(obj, cb) {
@@ -3671,6 +3676,7 @@ export {
3671
3676
  _el_read_error,
3672
3677
  _el_resume,
3673
3678
  _escape,
3679
+ _escape_comment,
3674
3680
  _escape_script,
3675
3681
  _escape_style,
3676
3682
  _existing_scope,
package/dist/dom/dom.d.ts CHANGED
@@ -1,8 +1,6 @@
1
1
  import { type Accessor, type Scope } from "../common/types";
2
- import { type Renderer } from "./renderer";
3
2
  export declare function _to_text(value: unknown): string;
4
3
  export declare function _attr(element: Element, name: string, value: unknown): void;
5
- export declare function setAttribute(element: Element, name: string, value: string | undefined): void;
6
4
  export declare function _attr_class(element: Element, value: unknown): void;
7
5
  export declare function _attr_class_items(element: Element, items: Record<string, unknown>): void;
8
6
  export declare function _attr_class_item(element: Element, name: string, value: unknown): void;
@@ -19,7 +17,6 @@ export declare function _attrs_partial_content(scope: Scope, nodeAccessor: Acces
19
17
  export declare function _attr_content(scope: Scope, nodeAccessor: Accessor, value: unknown): void;
20
18
  export declare function _attrs_script(scope: Scope, nodeAccessor: Accessor): void;
21
19
  export declare function _html(scope: Scope, value: unknown, accessor: Accessor): void;
22
- export declare function normalizeClientRender(value: any): Renderer | undefined;
23
20
  export declare function normalizeAttrValue(value: unknown): string | undefined;
24
21
  export declare function _lifecycle(scope: Scope, thisObj: Record<string, unknown> & {
25
22
  onMount?: (this: unknown) => void;
package/dist/dom.js CHANGED
@@ -382,7 +382,7 @@ function _closure(...closureSignals) {
382
382
  for (let childScope of scope[___scopeInstancesAccessor])
383
383
  childScope.H || queueRender(
384
384
  childScope,
385
- closureSignals[childScope[___signalIndexAccessor]],
385
+ closureSignals[childScope[___signalIndexAccessor] || 0],
386
386
  -1
387
387
  );
388
388
  };
package/dist/dom.mjs CHANGED
@@ -269,7 +269,7 @@ function _closure(...closureSignals) {
269
269
  for (let childScope of scope[___scopeInstancesAccessor])
270
270
  childScope.H || queueRender(
271
271
  childScope,
272
- closureSignals[childScope[___signalIndexAccessor]],
272
+ closureSignals[childScope[___signalIndexAccessor] || 0],
273
273
  -1
274
274
  );
275
275
  };
@@ -15,5 +15,3 @@ export declare function _attrs_content(data: Record<string, unknown>, nodeAccess
15
15
  export declare function _attrs_partial(data: Record<string, unknown>, skip: Record<string, 1>, nodeAccessor: Accessor, scopeId: number, tagName: string): string;
16
16
  export declare function _attrs_partial_content(data: Record<string, unknown>, skip: Record<string, 1>, nodeAccessor: Accessor, scopeId: number, tagName: string, serializeReason?: 1 | 0): void;
17
17
  export declare function attrAssignment(value: string): string;
18
- export declare function escapeSingleQuotedAttrValue(value: string): string;
19
- export declare function escapeDoubleQuotedAttrValue(value: string): string;
@@ -2,3 +2,4 @@ export declare function _unescaped(val: unknown): string;
2
2
  export declare function _escape(val: unknown): string;
3
3
  export declare function _escape_script(val: unknown): string;
4
4
  export declare function _escape_style(val: unknown): string;
5
+ export declare function _escape_comment(val: unknown): string;
@@ -1,4 +1,5 @@
1
1
  export { forIn, forOf, forTo, forUntil } from "../common/for";
2
- export declare function forOfBy(by: unknown, item: any, index: unknown): any;
3
- export declare function forInBy(by: unknown, name: string, value: unknown): any;
4
- export declare function forStepBy(by: unknown, index: number): any;
2
+ import type { Falsy } from "../common/types";
3
+ export declare function forOfBy(by: Falsy | string | ((item: unknown, index: number) => unknown), item: unknown, index: number): unknown;
4
+ export declare function forInBy(by: Falsy | ((key: string, value: unknown) => unknown), name: string, value: unknown): unknown;
5
+ export declare function forStepBy(by: Falsy | ((index: number) => unknown), index: number): unknown;
@@ -4,4 +4,3 @@ export type ServerRenderer = ((...args: unknown[]) => unknown) & {
4
4
  ___embed?: boolean;
5
5
  };
6
6
  export declare const _template: (templateId: string, renderer: ServerRenderer, page?: 1) => Template;
7
- export declare function isTemplate(renderer: ServerRenderer | Template): renderer is ServerRenderer & Template;
@@ -1,7 +1,6 @@
1
1
  import { _hoist_read_error } from "../common/errors";
2
2
  import { type $Global, type Accessor, type Falsy, ResumeSymbol } from "../common/types";
3
3
  import { Serializer } from "./serializer";
4
- import type { ServerRenderer } from "./template";
5
4
  export type PartialScope = Record<Accessor, unknown>;
6
5
  type ScopeInternals = PartialScope & {
7
6
  [K_SCOPE_ID]?: number;
@@ -22,7 +21,6 @@ export declare function _html(html: string): void;
22
21
  export declare function writeScript(script: string): void;
23
22
  export declare function _script(scopeId: number, registryId: string): void;
24
23
  export declare function _attr_content(nodeAccessor: Accessor, scopeId: number, content: unknown, serializeReason?: 1 | 0): void;
25
- export declare function normalizeServerRender(value: unknown): ServerRenderer | undefined;
26
24
  export declare function withContext<T>(key: PropertyKey, value: unknown, cb: () => T): T;
27
25
  export declare function withContext<T, U>(key: PropertyKey, value: unknown, cb: (value: U) => T, cbValue: U): T;
28
26
  export declare function _var(parentScopeId: number, scopeOffsetAccessor: Accessor, childScopeId: number, registryId: string): void;
package/dist/html.d.ts CHANGED
@@ -2,7 +2,7 @@ export { attrTag, attrTags } from "./common/attr-tag";
2
2
  export { _assert_hoist, _el_read_error, _hoist_read_error, } from "./common/errors";
3
3
  export { _attr, _attr_class, _attr_details_or_dialog_open as _attr_details_open, _attr_details_or_dialog_open as _attr_dialog_open, _attr_input_checked, _attr_input_checkedValue, _attr_input_value, _attr_nonce, _attr_option_value, _attr_select_value, _attr_style, _attr_textarea_value, _attrs, _attrs_content, _attrs_partial, _attrs_partial_content, } from "./html/attrs";
4
4
  export { compat } from "./html/compat";
5
- export { _escape, _escape_script, _escape_style, _unescaped, } from "./html/content";
5
+ export { _escape, _escape_comment, _escape_script, _escape_style, _unescaped, } from "./html/content";
6
6
  export { _content, _content_resume, _dynamic_tag } from "./html/dynamic-tag";
7
7
  export { forIn, forInBy, forOf, forOfBy, forStepBy, forTo, forUntil, } from "./html/for";
8
8
  export { _template } from "./html/template";
package/dist/html.js CHANGED
@@ -44,6 +44,7 @@ __export(html_exports, {
44
44
  _el_read_error: () => _el_read_error,
45
45
  _el_resume: () => _el_resume,
46
46
  _escape: () => _escape,
47
+ _escape_comment: () => _escape_comment,
47
48
  _escape_script: () => _escape_script,
48
49
  _escape_style: () => _escape_style,
49
50
  _existing_scope: () => _existing_scope,
@@ -159,14 +160,18 @@ var unsafeXMLReg = /[<&]/g, replaceUnsafeXML = (c) => c === "&" ? "&amp;" : "&lt
159
160
  function _escape(val) {
160
161
  return val ? escapeXMLStr(val + "") : val === 0 ? "0" : "";
161
162
  }
162
- var unsafeScriptReg = /<\/script/g, escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str;
163
+ var unsafeScriptReg = /<\/script/gi, escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str;
163
164
  function _escape_script(val) {
164
165
  return val ? escapeScriptStr(val + "") : val === 0 ? "0" : "";
165
166
  }
166
- var unsafeStyleReg = /<\/style/g, escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str;
167
+ var unsafeStyleReg = /<\/style/gi, escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str;
167
168
  function _escape_style(val) {
168
169
  return val ? escapeStyleStr(val + "") : val === 0 ? "0" : "";
169
170
  }
171
+ var unsafeCommentReg = />/g, escapeCommentStr = (str) => unsafeCommentReg.test(str) ? str.replace(unsafeCommentReg, "&gt;") : str;
172
+ function _escape_comment(val) {
173
+ return val ? escapeCommentStr(val + "") : val === 0 ? "0" : "";
174
+ }
170
175
 
171
176
  // src/common/for.ts
172
177
  function forIn(obj, cb) {
@@ -2394,6 +2399,7 @@ function NOOP3() {
2394
2399
  _el_read_error,
2395
2400
  _el_resume,
2396
2401
  _escape,
2402
+ _escape_comment,
2397
2403
  _escape_script,
2398
2404
  _escape_style,
2399
2405
  _existing_scope,
package/dist/html.mjs CHANGED
@@ -70,14 +70,18 @@ var unsafeXMLReg = /[<&]/g, replaceUnsafeXML = (c) => c === "&" ? "&amp;" : "&lt
70
70
  function _escape(val) {
71
71
  return val ? escapeXMLStr(val + "") : val === 0 ? "0" : "";
72
72
  }
73
- var unsafeScriptReg = /<\/script/g, escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str;
73
+ var unsafeScriptReg = /<\/script/gi, escapeScriptStr = (str) => unsafeScriptReg.test(str) ? str.replace(unsafeScriptReg, "\\x3C/script") : str;
74
74
  function _escape_script(val) {
75
75
  return val ? escapeScriptStr(val + "") : val === 0 ? "0" : "";
76
76
  }
77
- var unsafeStyleReg = /<\/style/g, escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str;
77
+ var unsafeStyleReg = /<\/style/gi, escapeStyleStr = (str) => unsafeStyleReg.test(str) ? str.replace(unsafeStyleReg, "\\3C/style") : str;
78
78
  function _escape_style(val) {
79
79
  return val ? escapeStyleStr(val + "") : val === 0 ? "0" : "";
80
80
  }
81
+ var unsafeCommentReg = />/g, escapeCommentStr = (str) => unsafeCommentReg.test(str) ? str.replace(unsafeCommentReg, "&gt;") : str;
82
+ function _escape_comment(val) {
83
+ return val ? escapeCommentStr(val + "") : val === 0 ? "0" : "";
84
+ }
81
85
 
82
86
  // src/common/for.ts
83
87
  function forIn(obj, cb) {
@@ -2304,6 +2308,7 @@ export {
2304
2308
  _el_read_error,
2305
2309
  _el_resume,
2306
2310
  _escape,
2311
+ _escape_comment,
2307
2312
  _escape_script,
2308
2313
  _escape_style,
2309
2314
  _existing_scope,
@@ -1,62 +1,7 @@
1
1
  import { types as t } from "@marko/compiler";
2
+ import { type Tag } from "@marko/compiler/babel-utils";
2
3
  type ForType = "in" | "of" | "to" | "until";
3
- declare const _default: {
4
- analyze(tag: t.NodePath<t.MarkoTag>): void;
5
- translate: {
6
- readonly enter: (path: t.NodePath<t.MarkoTag>) => void;
7
- readonly exit: (path: t.NodePath<t.MarkoTag>) => void;
8
- };
9
- parseOptions: {
10
- controlFlow: true;
11
- };
12
- attributes: {
13
- of: {
14
- type: string;
15
- autocomplete: {
16
- description: string;
17
- }[];
18
- };
19
- in: {
20
- type: string;
21
- autocomplete: {
22
- description: string;
23
- }[];
24
- };
25
- to: {
26
- type: string;
27
- autocomplete: {
28
- description: string;
29
- }[];
30
- };
31
- until: {
32
- type: string;
33
- autocomplete: {
34
- description: string;
35
- }[];
36
- };
37
- from: {
38
- type: string;
39
- autocomplete: {
40
- description: string;
41
- }[];
42
- };
43
- step: {
44
- type: string;
45
- autocomplete: {
46
- description: string;
47
- }[];
48
- };
49
- };
50
- autocomplete: ({
51
- snippet: string;
52
- description: string;
53
- descriptionMoreURL: string;
54
- } | {
55
- snippet: string;
56
- descriptionMoreURL: string;
57
- description?: undefined;
58
- })[];
59
- };
4
+ declare const _default: Tag;
60
5
  export default _default;
61
6
  export declare function buildForRuntimeCall(type: ForType, attrs: Record<string, t.Expression>, params: t.ArrowFunctionExpression["params"], statements: t.Statement[]): t.ExpressionStatement;
62
7
  export declare function getForType(tag: t.MarkoTag): ForType | undefined;
@@ -1,32 +1,47 @@
1
1
  import { types as t } from "@marko/compiler";
2
- export declare const IfTag: {
3
- analyze(tag: t.NodePath<t.MarkoTag>): void;
4
- translate: {
5
- readonly enter: (path: t.NodePath<t.MarkoTag>) => void;
6
- readonly exit: (path: t.NodePath<t.MarkoTag>) => void;
7
- };
8
- parseOptions: {
9
- controlFlow: true;
10
- };
11
- autocomplete: {
12
- snippet: string;
13
- description: string;
14
- descriptionMoreURL: string;
15
- }[];
16
- };
2
+ import { type Tag } from "@marko/compiler/babel-utils";
3
+ export declare const IfTag: Tag;
17
4
  export declare const ElseIfTag: {
18
5
  autocomplete: {
19
6
  snippet: string;
20
7
  description: string;
21
8
  descriptionMoreURL: string;
22
9
  }[];
23
- analyze(tag: t.NodePath<t.MarkoTag>): void;
24
- translate: {
25
- readonly enter: (path: t.NodePath<t.MarkoTag>) => void;
26
- readonly exit: (path: t.NodePath<t.MarkoTag>) => void;
10
+ attributeGroups?: string[];
11
+ patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
12
+ attributes?: {
13
+ [x: string]: import("@marko/compiler/babel-utils").Attribute;
27
14
  };
28
- parseOptions: {
29
- controlFlow: true;
15
+ description?: string;
16
+ nestedTags?: {
17
+ [x: string]: Tag & {
18
+ isRepeated?: boolean;
19
+ targetProperty?: string;
20
+ };
21
+ };
22
+ htmlType?: "html" | "svg" | "math";
23
+ html?: boolean;
24
+ types?: string;
25
+ template?: string;
26
+ renderer?: string;
27
+ deprecated?: boolean;
28
+ openTagOnly?: boolean;
29
+ analyze?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
30
+ translate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
31
+ parse?: import("@marko/compiler/babel-utils").ParsePlugin<t.MarkoTag>;
32
+ transform?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
33
+ migrate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
34
+ parseOptions?: {
35
+ rootOnly?: boolean;
36
+ rawOpenTag?: boolean;
37
+ openTagOnly?: boolean;
38
+ controlFlow?: boolean;
39
+ ignoreAttributes?: boolean;
40
+ relaxRequireCommas?: boolean;
41
+ statement?: boolean;
42
+ preserveWhitespace?: boolean;
43
+ text?: boolean;
44
+ html?: boolean;
30
45
  };
31
46
  };
32
47
  export declare const ElseTag: {
@@ -34,12 +49,40 @@ export declare const ElseTag: {
34
49
  description: string;
35
50
  descriptionMoreURL: string;
36
51
  }[];
37
- analyze(tag: t.NodePath<t.MarkoTag>): void;
38
- translate: {
39
- readonly enter: (path: t.NodePath<t.MarkoTag>) => void;
40
- readonly exit: (path: t.NodePath<t.MarkoTag>) => void;
52
+ attributeGroups?: string[];
53
+ patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
54
+ attributes?: {
55
+ [x: string]: import("@marko/compiler/babel-utils").Attribute;
56
+ };
57
+ description?: string;
58
+ nestedTags?: {
59
+ [x: string]: Tag & {
60
+ isRepeated?: boolean;
61
+ targetProperty?: string;
62
+ };
41
63
  };
42
- parseOptions: {
43
- controlFlow: true;
64
+ htmlType?: "html" | "svg" | "math";
65
+ html?: boolean;
66
+ types?: string;
67
+ template?: string;
68
+ renderer?: string;
69
+ deprecated?: boolean;
70
+ openTagOnly?: boolean;
71
+ analyze?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
72
+ translate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
73
+ parse?: import("@marko/compiler/babel-utils").ParsePlugin<t.MarkoTag>;
74
+ transform?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
75
+ migrate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
76
+ parseOptions?: {
77
+ rootOnly?: boolean;
78
+ rawOpenTag?: boolean;
79
+ openTagOnly?: boolean;
80
+ controlFlow?: boolean;
81
+ ignoreAttributes?: boolean;
82
+ relaxRequireCommas?: boolean;
83
+ statement?: boolean;
84
+ preserveWhitespace?: boolean;
85
+ text?: boolean;
86
+ html?: boolean;
44
87
  };
45
88
  };
@@ -13,13 +13,41 @@ declare const _default: {
13
13
  description: string;
14
14
  descriptionMoreURL: string;
15
15
  }[];
16
- analyze(tag: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>): void;
17
- translate: {
18
- readonly enter: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
19
- readonly exit: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
16
+ attributeGroups?: string[];
17
+ patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
18
+ attributes?: {
19
+ [x: string]: import("@marko/compiler/babel-utils").Attribute;
20
20
  };
21
- parseOptions: {
22
- controlFlow: true;
21
+ description?: string;
22
+ nestedTags?: {
23
+ [x: string]: import("@marko/compiler/babel-utils").Tag & {
24
+ isRepeated?: boolean;
25
+ targetProperty?: string;
26
+ };
27
+ };
28
+ htmlType?: "html" | "svg" | "math";
29
+ html?: boolean;
30
+ types?: string;
31
+ template?: string;
32
+ renderer?: string;
33
+ deprecated?: boolean;
34
+ openTagOnly?: boolean;
35
+ analyze?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
36
+ translate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
37
+ parse?: import("@marko/compiler/babel-utils").ParsePlugin<import("@marko/compiler/babel-types").MarkoTag>;
38
+ 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>[];
39
+ 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>[];
40
+ parseOptions?: {
41
+ rootOnly?: boolean;
42
+ rawOpenTag?: boolean;
43
+ openTagOnly?: boolean;
44
+ controlFlow?: boolean;
45
+ ignoreAttributes?: boolean;
46
+ relaxRequireCommas?: boolean;
47
+ statement?: boolean;
48
+ preserveWhitespace?: boolean;
49
+ text?: boolean;
50
+ html?: boolean;
23
51
  };
24
52
  };
25
53
  "<else>": {
@@ -27,92 +55,50 @@ declare const _default: {
27
55
  description: string;
28
56
  descriptionMoreURL: string;
29
57
  }[];
30
- analyze(tag: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>): void;
31
- translate: {
32
- readonly enter: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
33
- readonly exit: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
34
- };
35
- parseOptions: {
36
- controlFlow: true;
37
- };
38
- };
39
- "<export>": import("@marko/compiler/babel-utils").Tag;
40
- "<for>": {
41
- analyze(tag: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>): void;
42
- translate: {
43
- readonly enter: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
44
- readonly exit: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
45
- };
46
- parseOptions: {
47
- controlFlow: true;
58
+ attributeGroups?: string[];
59
+ patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
60
+ attributes?: {
61
+ [x: string]: import("@marko/compiler/babel-utils").Attribute;
48
62
  };
49
- attributes: {
50
- of: {
51
- type: string;
52
- autocomplete: {
53
- description: string;
54
- }[];
55
- };
56
- in: {
57
- type: string;
58
- autocomplete: {
59
- description: string;
60
- }[];
61
- };
62
- to: {
63
- type: string;
64
- autocomplete: {
65
- description: string;
66
- }[];
67
- };
68
- until: {
69
- type: string;
70
- autocomplete: {
71
- description: string;
72
- }[];
73
- };
74
- from: {
75
- type: string;
76
- autocomplete: {
77
- description: string;
78
- }[];
79
- };
80
- step: {
81
- type: string;
82
- autocomplete: {
83
- description: string;
84
- }[];
63
+ description?: string;
64
+ nestedTags?: {
65
+ [x: string]: import("@marko/compiler/babel-utils").Tag & {
66
+ isRepeated?: boolean;
67
+ targetProperty?: string;
85
68
  };
86
69
  };
87
- autocomplete: ({
88
- snippet: string;
89
- description: string;
90
- descriptionMoreURL: string;
91
- } | {
92
- snippet: string;
93
- descriptionMoreURL: string;
94
- description?: undefined;
95
- })[];
70
+ htmlType?: "html" | "svg" | "math";
71
+ html?: boolean;
72
+ types?: string;
73
+ template?: string;
74
+ renderer?: string;
75
+ deprecated?: boolean;
76
+ openTagOnly?: boolean;
77
+ analyze?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
78
+ translate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
79
+ parse?: import("@marko/compiler/babel-utils").ParsePlugin<import("@marko/compiler/babel-types").MarkoTag>;
80
+ 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>[];
81
+ 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>[];
82
+ parseOptions?: {
83
+ rootOnly?: boolean;
84
+ rawOpenTag?: boolean;
85
+ openTagOnly?: boolean;
86
+ controlFlow?: boolean;
87
+ ignoreAttributes?: boolean;
88
+ relaxRequireCommas?: boolean;
89
+ statement?: boolean;
90
+ preserveWhitespace?: boolean;
91
+ text?: boolean;
92
+ html?: boolean;
93
+ };
96
94
  };
95
+ "<export>": import("@marko/compiler/babel-utils").Tag;
96
+ "<for>": import("@marko/compiler/babel-utils").Tag;
97
97
  "<html-comment>": import("@marko/compiler/babel-utils").Tag;
98
98
  "<html-script>": import("@marko/compiler/babel-utils").Tag;
99
99
  "<html-style>": import("@marko/compiler/babel-utils").Tag;
100
100
  "<id>": import("@marko/compiler/babel-utils").Tag;
101
- "<if>": {
102
- analyze(tag: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>): void;
103
- translate: {
104
- readonly enter: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
105
- readonly exit: (path: import("@marko/compiler/babel-types").NodePath<import("@marko/compiler/babel-types").MarkoTag>) => void;
106
- };
107
- parseOptions: {
108
- controlFlow: true;
109
- };
110
- autocomplete: {
111
- snippet: string;
112
- description: string;
113
- descriptionMoreURL: string;
114
- }[];
115
- };
101
+ "<if>": import("@marko/compiler/babel-utils").Tag;
116
102
  "<import>": import("@marko/compiler/babel-utils").Tag;
117
103
  "<let>": import("@marko/compiler/babel-utils").Tag;
118
104
  "<lifecycle>": import("@marko/compiler/babel-utils").Tag;