@marko/translator-default 5.20.2 → 5.20.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/tag/native-tag[html]/attributes.js +80 -60
- package/dist/tag/native-tag[html]/attributes.js.map +1 -1
- package/dist/tag/native-tag[vdom]/index.js +14 -3
- package/dist/tag/native-tag[vdom]/index.js.map +1 -1
- package/dist/tag/util.js +15 -1
- package/dist/tag/util.js.map +1 -1
- package/dist/taglib/core/index.js +482 -0
- package/dist/taglib/core/index.js.map +1 -0
- package/dist/taglib/index.js +5 -3
- package/dist/taglib/index.js.map +1 -1
- package/dist/taglib/migrate/index.js +5 -0
- package/dist/taglib/migrate/index.js.map +1 -0
- package/package.json +5 -5
- package/dist/taglib/core/marko.json +0 -432
- package/dist/taglib/migrate/marko.json +0 -4
@@ -1,432 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"taglib-id": "marko-default-core",
|
3
|
-
"<import>": {
|
4
|
-
"node-factory": "./parse-import.js",
|
5
|
-
"parse-options": {
|
6
|
-
"rootOnly": true,
|
7
|
-
"rawOpenTag": true,
|
8
|
-
"openTagOnly": true,
|
9
|
-
"ignoreAttributes": true,
|
10
|
-
"relaxRequireCommas": true
|
11
|
-
},
|
12
|
-
"autocomplete": [
|
13
|
-
{
|
14
|
-
"displayText": "import <scope> from \"<path>\"",
|
15
|
-
"description": "Use to import external modules, follows the same syntax as JavaScript imports.",
|
16
|
-
"snippet": "import ${2} from \"${1:path}\"",
|
17
|
-
"descriptionMoreURL": "https://markojs.com/docs/syntax/#importing-external-files"
|
18
|
-
}
|
19
|
-
]
|
20
|
-
},
|
21
|
-
"<export>": {
|
22
|
-
"node-factory": "./parse-export.js",
|
23
|
-
"parse-options": {
|
24
|
-
"rootOnly": true,
|
25
|
-
"rawOpenTag": true,
|
26
|
-
"openTagOnly": true,
|
27
|
-
"ignoreAttributes": true,
|
28
|
-
"relaxRequireCommas": true
|
29
|
-
},
|
30
|
-
"autocomplete": [
|
31
|
-
{
|
32
|
-
"displayText": "export <scope>",
|
33
|
-
"description": "Use export additional data with the template, follows the same syntax as JavaScript exports.",
|
34
|
-
"snippet": "export ${1}",
|
35
|
-
"descriptionMoreURL": "https://markojs.com/docs/syntax/#importing-external-files"
|
36
|
-
}
|
37
|
-
]
|
38
|
-
},
|
39
|
-
"<class>": {
|
40
|
-
"node-factory": "./parse-class.js",
|
41
|
-
"parse-options": {
|
42
|
-
"rootOnly": true,
|
43
|
-
"rawOpenTag": true,
|
44
|
-
"openTagOnly": true,
|
45
|
-
"ignoreAttributes": true
|
46
|
-
},
|
47
|
-
"autocomplete": [
|
48
|
-
{
|
49
|
-
"displayText": "class { /** lifecycle methods **/ }",
|
50
|
-
"snippet": "class {\n\t$0\n}",
|
51
|
-
"description": "A class containing the lifecycle methods, event handlers, and other properties for this component.",
|
52
|
-
"descriptionMoreURL": "https://markojs.com/docs/class-components/#single-file-components"
|
53
|
-
}
|
54
|
-
]
|
55
|
-
},
|
56
|
-
"<static>": {
|
57
|
-
"node-factory": "./parse-static.js",
|
58
|
-
"parse-options": {
|
59
|
-
"rootOnly": true,
|
60
|
-
"rawOpenTag": true,
|
61
|
-
"openTagOnly": true,
|
62
|
-
"ignoreAttributes": true
|
63
|
-
},
|
64
|
-
"autocomplete": [
|
65
|
-
{
|
66
|
-
"displayText": "static <statement>",
|
67
|
-
"description": "A JavaScript statement which is only evaluated once your template is loaded.",
|
68
|
-
"descriptionMoreURL": "https://markojs.com/docs/syntax/#static-javascript"
|
69
|
-
}
|
70
|
-
]
|
71
|
-
},
|
72
|
-
"<style>": {
|
73
|
-
"node-factory": "./parse-style.js",
|
74
|
-
"transformer": "./transform-style.js",
|
75
|
-
"parse-options": {
|
76
|
-
"rawOpenTag": true
|
77
|
-
}
|
78
|
-
},
|
79
|
-
"<macro>": {
|
80
|
-
"node-factory": "./macro/parse.js",
|
81
|
-
"code-generator": "./macro/translate.js",
|
82
|
-
"@name": {
|
83
|
-
"type": "string",
|
84
|
-
"autocomplete": [
|
85
|
-
{
|
86
|
-
"description": "The name which can be used as a tag within a template."
|
87
|
-
}
|
88
|
-
]
|
89
|
-
},
|
90
|
-
"autocomplete": [
|
91
|
-
{
|
92
|
-
"displayText": "macro|<params>| name=\"<name>\"",
|
93
|
-
"description": "Creates a reusable fragment within the template.",
|
94
|
-
"snippet": "macro|${2:param1, param2}| name=\"${1:name}\"",
|
95
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#macro"
|
96
|
-
}
|
97
|
-
]
|
98
|
-
},
|
99
|
-
"<include-text>": {
|
100
|
-
"code-generator": "./translate-include-content.js",
|
101
|
-
"attributes": {},
|
102
|
-
"autocomplete": [
|
103
|
-
{
|
104
|
-
"displayText": "include-text(\"<path>\")",
|
105
|
-
"description": "Allows you to inline the contents of a text file.",
|
106
|
-
"snippet": "include-text(${1:\"./foo.txt\"})",
|
107
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#include-text"
|
108
|
-
}
|
109
|
-
]
|
110
|
-
},
|
111
|
-
"<include-html>": {
|
112
|
-
"code-generator": "./translate-include-content.js",
|
113
|
-
"attributes": {},
|
114
|
-
"autocomplete": [
|
115
|
-
{
|
116
|
-
"displayText": "include-html(\"<path>\")",
|
117
|
-
"snippet": "include-html(${1:\"./foo.html\"})",
|
118
|
-
"description": "Allows you to inline the contents of an html file.",
|
119
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#include-html"
|
120
|
-
}
|
121
|
-
]
|
122
|
-
},
|
123
|
-
"<if>": {
|
124
|
-
"code-generator": "./conditional/translate-if.js",
|
125
|
-
"attributes": {},
|
126
|
-
"autocomplete": [
|
127
|
-
{
|
128
|
-
"snippet": "if(${1:condition})",
|
129
|
-
"description": "Use to display content only if the condition is meant.",
|
130
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#if-else-if-else"
|
131
|
-
}
|
132
|
-
]
|
133
|
-
},
|
134
|
-
"<else-if>": {
|
135
|
-
"code-generator": "./conditional/translate-else-if.js",
|
136
|
-
"attributes": {},
|
137
|
-
"autocomplete": [
|
138
|
-
{
|
139
|
-
"snippet": "else-if(${1:condition})",
|
140
|
-
"description": "Use after an <if> or <else-if> tag to display content if those conditions do not match and this one does.",
|
141
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#if-else-if-else"
|
142
|
-
}
|
143
|
-
]
|
144
|
-
},
|
145
|
-
"<else>": {
|
146
|
-
"code-generator": "./conditional/translate-else.js",
|
147
|
-
"attributes": {},
|
148
|
-
"autocomplete": [
|
149
|
-
{
|
150
|
-
"description": "Use after an <if> or <else-if> tag to display content if those conditions do not match.",
|
151
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#if-else-if-else"
|
152
|
-
}
|
153
|
-
]
|
154
|
-
},
|
155
|
-
"<for>": {
|
156
|
-
"code-generator": "./translate-for.js",
|
157
|
-
"@of": {
|
158
|
-
"type": "expression",
|
159
|
-
"autocomplete": [
|
160
|
-
{
|
161
|
-
"description": "Iterates over a list of items."
|
162
|
-
}
|
163
|
-
]
|
164
|
-
},
|
165
|
-
"@in": {
|
166
|
-
"type": "expression",
|
167
|
-
"autocomplete": [
|
168
|
-
{
|
169
|
-
"description": "Iterates over the keys and values of an object."
|
170
|
-
}
|
171
|
-
]
|
172
|
-
},
|
173
|
-
"@to": {
|
174
|
-
"type": "number",
|
175
|
-
"autocomplete": [
|
176
|
-
{
|
177
|
-
"description": "Iterates up to the provided number (inclusive)"
|
178
|
-
}
|
179
|
-
]
|
180
|
-
},
|
181
|
-
"@from": {
|
182
|
-
"type": "number",
|
183
|
-
"autocomplete": [
|
184
|
-
{
|
185
|
-
"description": "Iterates starting from the provided number (inclusive)"
|
186
|
-
}
|
187
|
-
]
|
188
|
-
},
|
189
|
-
"@step": {
|
190
|
-
"type": "number",
|
191
|
-
"autocomplete": [
|
192
|
-
{
|
193
|
-
"description": "The amount to increment during each interation (with from/to)"
|
194
|
-
}
|
195
|
-
]
|
196
|
-
},
|
197
|
-
"autocomplete": [
|
198
|
-
{
|
199
|
-
"snippet": "for|${1:value, index}| of=${3:array}",
|
200
|
-
"description": "Use to iterate over lists, object properties, or between ranges.",
|
201
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#iterating-over-a-list"
|
202
|
-
},
|
203
|
-
{
|
204
|
-
"snippet": "for|${1:name, value}| in=${3:object}",
|
205
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#iterating-over-an-objects-properties"
|
206
|
-
},
|
207
|
-
{
|
208
|
-
"snippet": "for|${1:index}| from=${2:number} to=${3:number} step=${4:number}",
|
209
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#iterating-between-a-range-of-numbers"
|
210
|
-
}
|
211
|
-
]
|
212
|
-
},
|
213
|
-
"<while>": {
|
214
|
-
"code-generator": "./translate-while.js",
|
215
|
-
"autocomplete": [
|
216
|
-
{
|
217
|
-
"snippet": "while(${1:condition})",
|
218
|
-
"description": "Renders the content multiple times until the condition is no longer met.",
|
219
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#while"
|
220
|
-
}
|
221
|
-
]
|
222
|
-
},
|
223
|
-
"<html-comment>": {
|
224
|
-
"code-generator": "./translate-html-comment.js",
|
225
|
-
"parse-options": {
|
226
|
-
"state": "parsed-text"
|
227
|
-
},
|
228
|
-
"attributes": {},
|
229
|
-
"autocomplete": [
|
230
|
-
{
|
231
|
-
"description": "Use to create an html comment that is not stripped from the output.",
|
232
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#html-comment"
|
233
|
-
}
|
234
|
-
]
|
235
|
-
},
|
236
|
-
"<_preserve>": {
|
237
|
-
"renderer": "marko/src/core-tags/components/preserve-tag",
|
238
|
-
"@n": "boolean",
|
239
|
-
"@i": "boolean",
|
240
|
-
"@b": "boolean",
|
241
|
-
"autocomplete": []
|
242
|
-
},
|
243
|
-
"<init-components>": {
|
244
|
-
"code-generator": "./translate-server-only.js",
|
245
|
-
"renderer": "marko/src/core-tags/components/init-components-tag.js",
|
246
|
-
"@immediate": "boolean"
|
247
|
-
},
|
248
|
-
"<_preferred-script-location>": {
|
249
|
-
"code-generator": "./translate-server-only.js",
|
250
|
-
"renderer": "marko/src/core-tags/components/preferred-script-location-tag.js"
|
251
|
-
},
|
252
|
-
"<body>": {
|
253
|
-
"code-generator": "./translate-body.js"
|
254
|
-
},
|
255
|
-
"<await>": {
|
256
|
-
"renderer": "marko/src/core-tags/core/await/renderer.js",
|
257
|
-
"code-generator": "./translate-await.js",
|
258
|
-
"@_provider": "expression",
|
259
|
-
"@_name": "string",
|
260
|
-
"@name": {
|
261
|
-
"type": "string",
|
262
|
-
"autocomplete": [
|
263
|
-
{
|
264
|
-
"description": "Used to improve debugging and also to ensure promise ordering with the show-after attribute.",
|
265
|
-
"snippet": "name=\"${1:name}\""
|
266
|
-
}
|
267
|
-
]
|
268
|
-
},
|
269
|
-
"@timeout": {
|
270
|
-
"type": "number",
|
271
|
-
"autocomplete": [
|
272
|
-
{
|
273
|
-
"description": "An optional timeout that when reached will cause the promise to reject with a TimeoutError."
|
274
|
-
}
|
275
|
-
]
|
276
|
-
},
|
277
|
-
"@client-reorder": {
|
278
|
-
"type": "boolean",
|
279
|
-
"autocomplete": [
|
280
|
-
{
|
281
|
-
"description": "If set anything after this promise will be sent out immediately, and reordered using JS in the browser."
|
282
|
-
}
|
283
|
-
]
|
284
|
-
},
|
285
|
-
"@show-after": {
|
286
|
-
"type": "string",
|
287
|
-
"autocomplete": [
|
288
|
-
{
|
289
|
-
"description": "This attribute will ensure that (with client-reorder) this await tag will always show after another await tag with the provided name."
|
290
|
-
}
|
291
|
-
]
|
292
|
-
},
|
293
|
-
"<then>": {
|
294
|
-
"autocomplete": [
|
295
|
-
{
|
296
|
-
"displayText": "then|<result>|",
|
297
|
-
"description": "Executed with the result of the resolved promise.",
|
298
|
-
"snippet": "then|${1:result}|",
|
299
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#await"
|
300
|
-
}
|
301
|
-
]
|
302
|
-
},
|
303
|
-
"<catch>": {
|
304
|
-
"autocomplete": [
|
305
|
-
{
|
306
|
-
"displayText": "catch|<err>|",
|
307
|
-
"description": "Executed with the err of the rejected promise.",
|
308
|
-
"snippet": "catch|${1:err}|",
|
309
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#await"
|
310
|
-
}
|
311
|
-
]
|
312
|
-
},
|
313
|
-
"<placeholder>": {
|
314
|
-
"autocomplete": [
|
315
|
-
{
|
316
|
-
"description": "A placeholder to display while the promise is pending.",
|
317
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#await"
|
318
|
-
}
|
319
|
-
]
|
320
|
-
},
|
321
|
-
"autocomplete": [
|
322
|
-
{
|
323
|
-
"displayText": "await(<promise>)",
|
324
|
-
"description": "Used to render a template asynchronously with the results of a Promise",
|
325
|
-
"snippet": "await(${1:promise})",
|
326
|
-
"descriptionMoreURL": "https://markojs.com/docs/core-tags/#await"
|
327
|
-
}
|
328
|
-
]
|
329
|
-
},
|
330
|
-
"<await-reorderer>": {
|
331
|
-
"code-generator": "./translate-server-only.js",
|
332
|
-
"renderer": "marko/src/core-tags/core/await/reorderer-renderer.js",
|
333
|
-
"autocomplete": [
|
334
|
-
{
|
335
|
-
"snippet": "await-reorderer",
|
336
|
-
"descriptionMoreURL": "http://markojs.com/docs/marko/async-taglib/#<code><await-reorderer><code>"
|
337
|
-
}
|
338
|
-
]
|
339
|
-
},
|
340
|
-
"<__flush_here_and_after__>": {
|
341
|
-
"code-generator": "./translate-server-only.js",
|
342
|
-
"renderer": "marko/src/core-tags/core/__flush_here_and_after__.js"
|
343
|
-
},
|
344
|
-
"<module-code>": {
|
345
|
-
"node-factory": "./parse-module-code",
|
346
|
-
"parse-options": {
|
347
|
-
"rootOnly": true,
|
348
|
-
"rawOpenTag": true,
|
349
|
-
"openTagOnly": true,
|
350
|
-
"ignoreAttributes": true,
|
351
|
-
"relaxRequireCommas": true
|
352
|
-
}
|
353
|
-
},
|
354
|
-
"<*>": {
|
355
|
-
"@key": {
|
356
|
-
"type": "string",
|
357
|
-
"preserve-name": true,
|
358
|
-
"autocomplete": [
|
359
|
-
{
|
360
|
-
"displayText": "key=\"<method>\"",
|
361
|
-
"snippet": "key=\"${1:method}\"",
|
362
|
-
"descriptionMoreURL": "http://markojs.com/docs/marko-components/get-started/#referencing-nested-components"
|
363
|
-
},
|
364
|
-
{
|
365
|
-
"descriptionMoreURL": "http://markojs.com/docs/marko-components/get-started/#referencing-nested-components"
|
366
|
-
}
|
367
|
-
]
|
368
|
-
},
|
369
|
-
"@on*": {
|
370
|
-
"pattern": true,
|
371
|
-
"type": "statement",
|
372
|
-
"allow-expressions": true,
|
373
|
-
"preserve-name": true,
|
374
|
-
"set-flag": "hasComponentEvents",
|
375
|
-
"autocomplete": [
|
376
|
-
{
|
377
|
-
"displayText": "on<event>(\"<method>\")",
|
378
|
-
"snippet": "on${1:Click}(\"handle${2:Button}${1:Click}\")",
|
379
|
-
"descriptionMoreURL": "https://markojs.com/docs/components/#attaching-dom-event-listeners"
|
380
|
-
}
|
381
|
-
]
|
382
|
-
},
|
383
|
-
"@once*": {
|
384
|
-
"pattern": true,
|
385
|
-
"type": "statement",
|
386
|
-
"allow-expressions": true,
|
387
|
-
"preserve-name": true,
|
388
|
-
"set-flag": "hasComponentEvents",
|
389
|
-
"autocomplete": {
|
390
|
-
"displayText": "once<event>(\"<method>\")",
|
391
|
-
"snippet": "once${1:Click}(\"handle${2:Button}${1:Click}\")",
|
392
|
-
"descriptionMoreURL": "https://markojs.com/docs/components/#attaching-dom-event-listeners"
|
393
|
-
}
|
394
|
-
},
|
395
|
-
"@no-update": {
|
396
|
-
"type": "flag",
|
397
|
-
"preserve-name": true,
|
398
|
-
"autocomplete": [
|
399
|
-
{
|
400
|
-
"descriptionMoreURL": "http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render"
|
401
|
-
}
|
402
|
-
]
|
403
|
-
},
|
404
|
-
"@no-update-body": {
|
405
|
-
"type": "flag",
|
406
|
-
"preserve-name": true,
|
407
|
-
"autocomplete": [
|
408
|
-
{
|
409
|
-
"descriptionMoreURL": "http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render"
|
410
|
-
}
|
411
|
-
]
|
412
|
-
},
|
413
|
-
"@no-update-if": {
|
414
|
-
"preserve-name": true,
|
415
|
-
"autocomplete": [
|
416
|
-
{
|
417
|
-
"snippet": "no-update-if(${1:condition})",
|
418
|
-
"descriptionMoreURL": "http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render"
|
419
|
-
}
|
420
|
-
]
|
421
|
-
},
|
422
|
-
"@no-update-body-if": {
|
423
|
-
"preserve-name": true,
|
424
|
-
"autocomplete": [
|
425
|
-
{
|
426
|
-
"snippet": "no-update-body-if(${1:condition})",
|
427
|
-
"descriptionMoreURL": "http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render"
|
428
|
-
}
|
429
|
-
]
|
430
|
-
}
|
431
|
-
}
|
432
|
-
}
|