marko 6.4.11 → 6.4.13

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 (108) hide show
  1. package/dist/common/attr-tag.d.ts +1 -0
  2. package/dist/common/errors.d.ts +2 -0
  3. package/dist/common/helpers.d.ts +2 -0
  4. package/dist/debug/dom/catch.feat.js +1 -1
  5. package/dist/debug/dom/catch.feat.mjs +1 -1
  6. package/dist/debug/dom/compat.feat.js +143 -0
  7. package/dist/debug/dom/compat.feat.mjs +141 -0
  8. package/dist/debug/dom/controllable-input.feat.js +1 -1
  9. package/dist/debug/dom/controllable-input.feat.mjs +1 -1
  10. package/dist/debug/dom/controllable-open.feat.js +1 -1
  11. package/dist/debug/dom/controllable-open.feat.mjs +1 -1
  12. package/dist/debug/dom/controllable-select.feat.js +1 -1
  13. package/dist/debug/dom/controllable-select.feat.mjs +1 -1
  14. package/dist/debug/dom/controllable-textarea.feat.js +1 -1
  15. package/dist/debug/dom/controllable-textarea.feat.mjs +1 -1
  16. package/dist/debug/dom/controllable.feat.js +1 -1
  17. package/dist/debug/dom/controllable.feat.mjs +1 -1
  18. package/dist/debug/dom/dynamic-tag-script.feat.js +1 -1
  19. package/dist/debug/dom/dynamic-tag-script.feat.mjs +1 -1
  20. package/dist/debug/dom/dynamic-tag-var.feat.js +1 -1
  21. package/dist/debug/dom/dynamic-tag-var.feat.mjs +1 -1
  22. package/dist/debug/dom/lazy.feat.js +1 -1
  23. package/dist/debug/dom/lazy.feat.mjs +1 -1
  24. package/dist/debug/dom/placeholder.feat.js +1 -1
  25. package/dist/debug/dom/placeholder.feat.mjs +1 -1
  26. package/dist/debug/{dom-DjUZd-9y.mjs → dom-BORByF2b.mjs} +54 -27
  27. package/dist/debug/{dom-mQ5mPBTF.js → dom-sfzdCRAg.js} +71 -38
  28. package/dist/debug/dom.js +4 -127
  29. package/dist/debug/dom.mjs +2 -119
  30. package/dist/debug/html/compat.feat.js +222 -0
  31. package/dist/debug/html/compat.feat.mjs +220 -0
  32. package/dist/debug/html-DMo6pc_h.mjs +3931 -0
  33. package/dist/debug/html-DfZjMkhx.js +4513 -0
  34. package/dist/debug/html.js +83 -4220
  35. package/dist/debug/html.mjs +1 -4133
  36. package/dist/dom/catch.feat.js +4 -4
  37. package/dist/dom/catch.feat.mjs +1 -1
  38. package/dist/dom/{compat.d.ts → compat.feat.d.ts} +18 -9
  39. package/dist/dom/compat.feat.js +101 -0
  40. package/dist/dom/compat.feat.mjs +100 -0
  41. package/dist/dom/control-flow.d.ts +0 -1
  42. package/dist/dom/controllable-input.feat.js +2 -2
  43. package/dist/dom/controllable-input.feat.mjs +1 -1
  44. package/dist/dom/controllable-open.feat.js +2 -2
  45. package/dist/dom/controllable-open.feat.mjs +1 -1
  46. package/dist/dom/controllable-select.feat.js +2 -2
  47. package/dist/dom/controllable-select.feat.mjs +1 -1
  48. package/dist/dom/controllable-textarea.feat.js +2 -2
  49. package/dist/dom/controllable-textarea.feat.mjs +1 -1
  50. package/dist/dom/controllable.feat.js +2 -2
  51. package/dist/dom/controllable.feat.mjs +1 -1
  52. package/dist/dom/dom.d.ts +2 -1
  53. package/dist/dom/dynamic-tag-script.feat.js +2 -2
  54. package/dist/dom/dynamic-tag-script.feat.mjs +1 -1
  55. package/dist/dom/dynamic-tag-var.feat.js +3 -3
  56. package/dist/dom/dynamic-tag-var.feat.mjs +1 -1
  57. package/dist/dom/lazy.feat.js +1 -1
  58. package/dist/dom/lazy.feat.mjs +1 -1
  59. package/dist/dom/placeholder.feat.js +3 -3
  60. package/dist/dom/placeholder.feat.mjs +1 -1
  61. package/dist/dom/resume.d.ts +3 -1
  62. package/dist/{dom-HEWdZCCb.mjs → dom-DKn1bCPC.mjs} +15 -19
  63. package/dist/{dom-B8j2453O.js → dom-DRiewpRL.js} +127 -136
  64. package/dist/dom.d.ts +0 -1
  65. package/dist/dom.js +21 -95
  66. package/dist/dom.mjs +3 -72
  67. package/dist/html/{compat.d.ts → compat.feat.d.ts} +5 -4
  68. package/dist/html/compat.feat.js +165 -0
  69. package/dist/html/compat.feat.mjs +164 -0
  70. package/dist/html/dynamic-tag.d.ts +1 -2
  71. package/dist/html/writer.d.ts +2 -1
  72. package/dist/html-DMDc0zKs.mjs +2404 -0
  73. package/dist/html-DrHsybFm.js +2880 -0
  74. package/dist/html.d.ts +0 -1
  75. package/dist/html.js +2 -2566
  76. package/dist/html.mjs +3 -2561
  77. package/dist/translator/core/if.d.ts +0 -85
  78. package/dist/translator/core/index.d.ts +2 -85
  79. package/dist/translator/index.d.ts +2 -85
  80. package/dist/translator/index.js +332 -476
  81. package/dist/translator/interop/index.d.ts +2 -0
  82. package/dist/translator/util/assert.d.ts +2 -0
  83. package/dist/translator/util/branch-tag.d.ts +1 -1
  84. package/dist/translator/util/known-tag.d.ts +4 -1
  85. package/dist/translator/util/optional.d.ts +0 -1
  86. package/dist/translator/util/reasons.d.ts +0 -1
  87. package/dist/translator/util/references.d.ts +1 -0
  88. package/dist/translator/util/sections.d.ts +5 -1
  89. package/dist/translator/util/tag-facts.d.ts +2 -0
  90. package/dist/translator/util/translate-attrs.d.ts +1 -4
  91. package/dist/translator/visitors/program/index.d.ts +2 -2
  92. package/index.d.ts +2 -7
  93. package/package.json +4 -4
  94. package/tags/await.d.marko +9 -1
  95. package/tags/const.d.marko +7 -1
  96. package/tags/debug.d.marko +7 -1
  97. package/tags/define.d.marko +7 -1
  98. package/tags/effect.d.marko +6 -1
  99. package/tags/html-comment.d.marko +6 -0
  100. package/tags/html-script.d.marko +5 -0
  101. package/tags/html-style.d.marko +5 -0
  102. package/tags/id.d.marko +11 -1
  103. package/tags/let.d.marko +8 -1
  104. package/tags/lifecycle.d.marko +11 -1
  105. package/tags/log.d.marko +7 -1
  106. package/tags/script.d.marko +9 -1
  107. package/tags/show.d.marko +7 -1
  108. package/tags/try.d.marko +9 -1
@@ -1,89 +1,4 @@
1
1
  import { types as t } from "@marko/compiler";
2
2
  import { type Tag } from "@marko/compiler/babel-utils";
3
3
  export declare const IfTag: Tag;
4
- export declare const ElseIfTag: {
5
- attributeGroups?: string[];
6
- patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
7
- attributes?: {
8
- [x: string]: import("@marko/compiler/babel-utils").Attribute;
9
- };
10
- description?: string;
11
- nestedTags?: {
12
- [x: string]: Tag & {
13
- isRepeated?: boolean;
14
- targetProperty?: string;
15
- };
16
- };
17
- htmlType?: "html" | "svg" | "math";
18
- html?: boolean;
19
- types?: string;
20
- template?: string;
21
- renderer?: string;
22
- deprecated?: boolean;
23
- openTagOnly?: boolean;
24
- analyze?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
25
- translate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
26
- parse?: import("@marko/compiler/babel-utils").ParsePlugin<t.MarkoTag>;
27
- transform?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
28
- migrate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
29
- parseOptions?: {
30
- rootOnly?: boolean;
31
- rawOpenTag?: boolean;
32
- openTagOnly?: boolean;
33
- controlFlow?: boolean;
34
- ignoreAttributes?: boolean;
35
- relaxRequireCommas?: boolean;
36
- statement?: boolean;
37
- preserveWhitespace?: boolean;
38
- text?: boolean;
39
- html?: boolean;
40
- };
41
- autocomplete: {
42
- snippet: string;
43
- description: string;
44
- descriptionMoreURL: string;
45
- }[];
46
- };
47
- export declare const ElseTag: {
48
- attributeGroups?: string[];
49
- patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
50
- attributes?: {
51
- [x: string]: import("@marko/compiler/babel-utils").Attribute;
52
- };
53
- description?: string;
54
- nestedTags?: {
55
- [x: string]: Tag & {
56
- isRepeated?: boolean;
57
- targetProperty?: string;
58
- };
59
- };
60
- htmlType?: "html" | "svg" | "math";
61
- html?: boolean;
62
- types?: string;
63
- template?: string;
64
- renderer?: string;
65
- deprecated?: boolean;
66
- openTagOnly?: boolean;
67
- analyze?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
68
- translate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>;
69
- parse?: import("@marko/compiler/babel-utils").ParsePlugin<t.MarkoTag>;
70
- transform?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
71
- migrate?: import("@marko/compiler/babel-utils").Plugin<t.MarkoTag> | import("@marko/compiler/babel-utils").Plugin<t.MarkoTag>[];
72
- parseOptions?: {
73
- rootOnly?: boolean;
74
- rawOpenTag?: boolean;
75
- openTagOnly?: boolean;
76
- controlFlow?: boolean;
77
- ignoreAttributes?: boolean;
78
- relaxRequireCommas?: boolean;
79
- statement?: boolean;
80
- preserveWhitespace?: boolean;
81
- text?: boolean;
82
- html?: boolean;
83
- };
84
- autocomplete: {
85
- description: string;
86
- descriptionMoreURL: string;
87
- }[];
88
- };
89
4
  export declare function flattenTextOnlyConditional(rootTag: t.NodePath<t.MarkoTag>): void;
@@ -8,91 +8,8 @@ declare const _default: {
8
8
  "<debug>": import("@marko/compiler/babel-utils").Tag;
9
9
  "<define>": import("@marko/compiler/babel-utils").Tag;
10
10
  "<effect>": import("@marko/compiler/babel-utils").Tag;
11
- "<else-if>": {
12
- attributeGroups?: string[];
13
- patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
14
- attributes?: {
15
- [x: string]: import("@marko/compiler/babel-utils").Attribute;
16
- };
17
- description?: string;
18
- nestedTags?: {
19
- [x: string]: import("@marko/compiler/babel-utils").Tag & {
20
- isRepeated?: boolean;
21
- targetProperty?: string;
22
- };
23
- };
24
- htmlType?: "html" | "svg" | "math";
25
- html?: boolean;
26
- types?: string;
27
- template?: string;
28
- renderer?: string;
29
- deprecated?: boolean;
30
- openTagOnly?: boolean;
31
- analyze?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
32
- translate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
33
- parse?: import("@marko/compiler/babel-utils").ParsePlugin<import("@marko/compiler/babel-types").MarkoTag>;
34
- 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>[];
35
- 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>[];
36
- parseOptions?: {
37
- rootOnly?: boolean;
38
- rawOpenTag?: boolean;
39
- openTagOnly?: boolean;
40
- controlFlow?: boolean;
41
- ignoreAttributes?: boolean;
42
- relaxRequireCommas?: boolean;
43
- statement?: boolean;
44
- preserveWhitespace?: boolean;
45
- text?: boolean;
46
- html?: boolean;
47
- };
48
- autocomplete: {
49
- snippet: string;
50
- description: string;
51
- descriptionMoreURL: string;
52
- }[];
53
- };
54
- "<else>": {
55
- attributeGroups?: string[];
56
- patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
57
- attributes?: {
58
- [x: string]: import("@marko/compiler/babel-utils").Attribute;
59
- };
60
- description?: string;
61
- nestedTags?: {
62
- [x: string]: import("@marko/compiler/babel-utils").Tag & {
63
- isRepeated?: boolean;
64
- targetProperty?: string;
65
- };
66
- };
67
- htmlType?: "html" | "svg" | "math";
68
- html?: boolean;
69
- types?: string;
70
- template?: string;
71
- renderer?: string;
72
- deprecated?: boolean;
73
- openTagOnly?: boolean;
74
- analyze?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
75
- translate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
76
- parse?: import("@marko/compiler/babel-utils").ParsePlugin<import("@marko/compiler/babel-types").MarkoTag>;
77
- 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>[];
78
- 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>[];
79
- parseOptions?: {
80
- rootOnly?: boolean;
81
- rawOpenTag?: boolean;
82
- openTagOnly?: boolean;
83
- controlFlow?: boolean;
84
- ignoreAttributes?: boolean;
85
- relaxRequireCommas?: boolean;
86
- statement?: boolean;
87
- preserveWhitespace?: boolean;
88
- text?: boolean;
89
- html?: boolean;
90
- };
91
- autocomplete: {
92
- description: string;
93
- descriptionMoreURL: string;
94
- }[];
95
- };
11
+ "<else-if>": import("@marko/compiler/babel-utils").Tag;
12
+ "<else>": import("@marko/compiler/babel-utils").Tag;
96
13
  "<export>": import("@marko/compiler/babel-utils").Tag;
97
14
  "<for>": import("@marko/compiler/babel-utils").Tag;
98
15
  "<html-comment>": import("@marko/compiler/babel-utils").Tag;
@@ -15,91 +15,8 @@ export declare const taglibs: (string | {
15
15
  "<debug>": import("@marko/compiler/babel-utils").Tag;
16
16
  "<define>": import("@marko/compiler/babel-utils").Tag;
17
17
  "<effect>": import("@marko/compiler/babel-utils").Tag;
18
- "<else-if>": {
19
- attributeGroups?: string[];
20
- patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
21
- attributes?: {
22
- [x: string]: import("@marko/compiler/babel-utils").Attribute;
23
- };
24
- description?: string;
25
- nestedTags?: {
26
- [x: string]: import("@marko/compiler/babel-utils").Tag & {
27
- isRepeated?: boolean;
28
- targetProperty?: string;
29
- };
30
- };
31
- htmlType?: "html" | "svg" | "math";
32
- html?: boolean;
33
- types?: string;
34
- template?: string;
35
- renderer?: string;
36
- deprecated?: boolean;
37
- openTagOnly?: boolean;
38
- analyze?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
39
- translate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
40
- parse?: import("@marko/compiler/babel-utils").ParsePlugin<import("@marko/compiler/babel-types").MarkoTag>;
41
- 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>[];
42
- 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>[];
43
- parseOptions?: {
44
- rootOnly?: boolean;
45
- rawOpenTag?: boolean;
46
- openTagOnly?: boolean;
47
- controlFlow?: boolean;
48
- ignoreAttributes?: boolean;
49
- relaxRequireCommas?: boolean;
50
- statement?: boolean;
51
- preserveWhitespace?: boolean;
52
- text?: boolean;
53
- html?: boolean;
54
- };
55
- autocomplete: {
56
- snippet: string;
57
- description: string;
58
- descriptionMoreURL: string;
59
- }[];
60
- };
61
- "<else>": {
62
- attributeGroups?: string[];
63
- patternAttributes?: import("@marko/compiler/babel-utils").Attribute[];
64
- attributes?: {
65
- [x: string]: import("@marko/compiler/babel-utils").Attribute;
66
- };
67
- description?: string;
68
- nestedTags?: {
69
- [x: string]: import("@marko/compiler/babel-utils").Tag & {
70
- isRepeated?: boolean;
71
- targetProperty?: string;
72
- };
73
- };
74
- htmlType?: "html" | "svg" | "math";
75
- html?: boolean;
76
- types?: string;
77
- template?: string;
78
- renderer?: string;
79
- deprecated?: boolean;
80
- openTagOnly?: boolean;
81
- analyze?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
82
- translate?: import("@marko/compiler/babel-utils").Plugin<import("@marko/compiler/babel-types").MarkoTag>;
83
- parse?: import("@marko/compiler/babel-utils").ParsePlugin<import("@marko/compiler/babel-types").MarkoTag>;
84
- 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>[];
85
- 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>[];
86
- parseOptions?: {
87
- rootOnly?: boolean;
88
- rawOpenTag?: boolean;
89
- openTagOnly?: boolean;
90
- controlFlow?: boolean;
91
- ignoreAttributes?: boolean;
92
- relaxRequireCommas?: boolean;
93
- statement?: boolean;
94
- preserveWhitespace?: boolean;
95
- text?: boolean;
96
- html?: boolean;
97
- };
98
- autocomplete: {
99
- description: string;
100
- descriptionMoreURL: string;
101
- }[];
102
- };
18
+ "<else-if>": import("@marko/compiler/babel-utils").Tag;
19
+ "<else>": import("@marko/compiler/babel-utils").Tag;
103
20
  "<export>": import("@marko/compiler/babel-utils").Tag;
104
21
  "<for>": import("@marko/compiler/babel-utils").Tag;
105
22
  "<html-comment>": import("@marko/compiler/babel-utils").Tag;