marko 6.0.161 → 6.0.163

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.
@@ -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
  }
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;
@@ -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;
@@ -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;
@@ -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;