@marko/translator-default 5.20.0 → 5.20.3
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.
- 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
@@ -0,0 +1,482 @@
|
|
1
|
+
"use strict";exports.__esModule = true;exports.default = void 0;var parseImport = _interopRequireWildcard(require("./parse-import"));
|
2
|
+
var parseExport = _interopRequireWildcard(require("./parse-export"));
|
3
|
+
var parseClass = _interopRequireWildcard(require("./parse-class"));
|
4
|
+
var parseStatic = _interopRequireWildcard(require("./parse-static"));
|
5
|
+
var parseStyle = _interopRequireWildcard(require("./parse-style"));
|
6
|
+
var transformStyle = _interopRequireWildcard(require("./transform-style"));
|
7
|
+
var parseMacro = _interopRequireWildcard(require("./macro/parse"));
|
8
|
+
var translateMacro = _interopRequireWildcard(require("./macro/translate"));
|
9
|
+
var translateIncludeContent = _interopRequireWildcard(require("./translate-include-content"));
|
10
|
+
var translateIf = _interopRequireWildcard(require("./conditional/translate-if"));
|
11
|
+
var translateElseIf = _interopRequireWildcard(require("./conditional/translate-else-if"));
|
12
|
+
var translateElse = _interopRequireWildcard(require("./conditional/translate-else"));
|
13
|
+
var translateFor = _interopRequireWildcard(require("./translate-for"));
|
14
|
+
var translateWhile = _interopRequireWildcard(require("./translate-while"));
|
15
|
+
var translateHTMLComment = _interopRequireWildcard(require("./translate-html-comment"));
|
16
|
+
var translateServerOnly = _interopRequireWildcard(require("./translate-server-only"));
|
17
|
+
var translateBody = _interopRequireWildcard(require("./translate-body"));
|
18
|
+
var translateAwait = _interopRequireWildcard(require("./translate-await"));
|
19
|
+
var parseModuleCode = _interopRequireWildcard(require("./parse-module-code"));function _getRequireWildcardCache(nodeInterop) {if (typeof WeakMap !== "function") return null;var cacheBabelInterop = new WeakMap();var cacheNodeInterop = new WeakMap();return (_getRequireWildcardCache = function (nodeInterop) {return nodeInterop ? cacheNodeInterop : cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj, nodeInterop) {if (!nodeInterop && obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache(nodeInterop);if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}var _default =
|
20
|
+
|
21
|
+
{
|
22
|
+
"taglib-id": "marko-default-core",
|
23
|
+
"<import>": {
|
24
|
+
"node-factory": parseImport,
|
25
|
+
"parse-options": {
|
26
|
+
rootOnly: true,
|
27
|
+
rawOpenTag: true,
|
28
|
+
openTagOnly: true,
|
29
|
+
ignoreAttributes: true,
|
30
|
+
relaxRequireCommas: true },
|
31
|
+
|
32
|
+
autocomplete: [
|
33
|
+
{
|
34
|
+
displayText: 'import <scope> from "<path>"',
|
35
|
+
description:
|
36
|
+
"Use to import external modules, follows the same syntax as JavaScript imports.",
|
37
|
+
snippet: 'import ${2} from "${1:path}"',
|
38
|
+
descriptionMoreURL:
|
39
|
+
"https://markojs.com/docs/syntax/#importing-external-files" }] },
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
"<export>": {
|
44
|
+
"node-factory": parseExport,
|
45
|
+
"parse-options": {
|
46
|
+
rootOnly: true,
|
47
|
+
rawOpenTag: true,
|
48
|
+
openTagOnly: true,
|
49
|
+
ignoreAttributes: true,
|
50
|
+
relaxRequireCommas: true },
|
51
|
+
|
52
|
+
autocomplete: [
|
53
|
+
{
|
54
|
+
displayText: "export <scope>",
|
55
|
+
description:
|
56
|
+
"Use export additional data with the template, follows the same syntax as JavaScript exports.",
|
57
|
+
snippet: "export ${1}",
|
58
|
+
descriptionMoreURL:
|
59
|
+
"https://markojs.com/docs/syntax/#importing-external-files" }] },
|
60
|
+
|
61
|
+
|
62
|
+
|
63
|
+
"<class>": {
|
64
|
+
"node-factory": parseClass,
|
65
|
+
"parse-options": {
|
66
|
+
rootOnly: true,
|
67
|
+
rawOpenTag: true,
|
68
|
+
openTagOnly: true,
|
69
|
+
ignoreAttributes: true },
|
70
|
+
|
71
|
+
autocomplete: [
|
72
|
+
{
|
73
|
+
displayText: "class { /** lifecycle methods **/ }",
|
74
|
+
snippet: "class {\n\t$0\n}",
|
75
|
+
description:
|
76
|
+
"A class containing the lifecycle methods, event handlers, and other properties for this component.",
|
77
|
+
descriptionMoreURL:
|
78
|
+
"https://markojs.com/docs/class-components/#single-file-components" }] },
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
"<static>": {
|
83
|
+
"node-factory": parseStatic,
|
84
|
+
"parse-options": {
|
85
|
+
rootOnly: true,
|
86
|
+
rawOpenTag: true,
|
87
|
+
openTagOnly: true,
|
88
|
+
ignoreAttributes: true },
|
89
|
+
|
90
|
+
autocomplete: [
|
91
|
+
{
|
92
|
+
displayText: "static <statement>",
|
93
|
+
description:
|
94
|
+
"A JavaScript statement which is only evaluated once your template is loaded.",
|
95
|
+
descriptionMoreURL: "https://markojs.com/docs/syntax/#static-javascript" }] },
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
"<style>": {
|
100
|
+
"node-factory": parseStyle,
|
101
|
+
transformer: transformStyle,
|
102
|
+
"parse-options": {
|
103
|
+
rawOpenTag: true } },
|
104
|
+
|
105
|
+
|
106
|
+
"<macro>": {
|
107
|
+
"node-factory": parseMacro,
|
108
|
+
"code-generator": translateMacro,
|
109
|
+
"@name": {
|
110
|
+
type: "string",
|
111
|
+
autocomplete: [
|
112
|
+
{
|
113
|
+
description: "The name which can be used as a tag within a template." }] },
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
autocomplete: [
|
118
|
+
{
|
119
|
+
displayText: 'macro|<params>| name="<name>"',
|
120
|
+
description: "Creates a reusable fragment within the template.",
|
121
|
+
snippet: 'macro|${2:param1, param2}| name="${1:name}"',
|
122
|
+
descriptionMoreURL: "https://markojs.com/docs/core-tags/#macro" }] },
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
"<include-text>": {
|
127
|
+
"code-generator": translateIncludeContent,
|
128
|
+
attributes: {},
|
129
|
+
autocomplete: [
|
130
|
+
{
|
131
|
+
displayText: 'include-text("<path>")',
|
132
|
+
description: "Allows you to inline the contents of a text file.",
|
133
|
+
snippet: 'include-text(${1:"./foo.txt"})',
|
134
|
+
descriptionMoreURL: "https://markojs.com/docs/core-tags/#include-text" }] },
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
"<include-html>": {
|
139
|
+
"code-generator": translateIncludeContent,
|
140
|
+
attributes: {},
|
141
|
+
autocomplete: [
|
142
|
+
{
|
143
|
+
displayText: 'include-html("<path>")',
|
144
|
+
snippet: 'include-html(${1:"./foo.html"})',
|
145
|
+
description: "Allows you to inline the contents of an html file.",
|
146
|
+
descriptionMoreURL: "https://markojs.com/docs/core-tags/#include-html" }] },
|
147
|
+
|
148
|
+
|
149
|
+
|
150
|
+
"<if>": {
|
151
|
+
"code-generator": translateIf,
|
152
|
+
attributes: {},
|
153
|
+
autocomplete: [
|
154
|
+
{
|
155
|
+
snippet: "if(${1:condition})",
|
156
|
+
description: "Use to display content only if the condition is meant.",
|
157
|
+
descriptionMoreURL:
|
158
|
+
"https://markojs.com/docs/core-tags/#if-else-if-else" }] },
|
159
|
+
|
160
|
+
|
161
|
+
|
162
|
+
"<else-if>": {
|
163
|
+
"code-generator": translateElseIf,
|
164
|
+
attributes: {},
|
165
|
+
autocomplete: [
|
166
|
+
{
|
167
|
+
snippet: "else-if(${1:condition})",
|
168
|
+
description:
|
169
|
+
"Use after an <if> or <else-if> tag to display content if those conditions do not match and this one does.",
|
170
|
+
descriptionMoreURL:
|
171
|
+
"https://markojs.com/docs/core-tags/#if-else-if-else" }] },
|
172
|
+
|
173
|
+
|
174
|
+
|
175
|
+
"<else>": {
|
176
|
+
"code-generator": translateElse,
|
177
|
+
attributes: {},
|
178
|
+
autocomplete: [
|
179
|
+
{
|
180
|
+
description:
|
181
|
+
"Use after an <if> or <else-if> tag to display content if those conditions do not match.",
|
182
|
+
descriptionMoreURL:
|
183
|
+
"https://markojs.com/docs/core-tags/#if-else-if-else" }] },
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
"<for>": {
|
188
|
+
"code-generator": translateFor,
|
189
|
+
"@of": {
|
190
|
+
type: "expression",
|
191
|
+
autocomplete: [
|
192
|
+
{
|
193
|
+
description: "Iterates over a list of items." }] },
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
"@in": {
|
198
|
+
type: "expression",
|
199
|
+
autocomplete: [
|
200
|
+
{
|
201
|
+
description: "Iterates over the keys and values of an object." }] },
|
202
|
+
|
203
|
+
|
204
|
+
|
205
|
+
"@to": {
|
206
|
+
type: "number",
|
207
|
+
autocomplete: [
|
208
|
+
{
|
209
|
+
description: "Iterates up to the provided number (inclusive)" }] },
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
"@from": {
|
214
|
+
type: "number",
|
215
|
+
autocomplete: [
|
216
|
+
{
|
217
|
+
description: "Iterates starting from the provided number (inclusive)" }] },
|
218
|
+
|
219
|
+
|
220
|
+
|
221
|
+
"@step": {
|
222
|
+
type: "number",
|
223
|
+
autocomplete: [
|
224
|
+
{
|
225
|
+
description:
|
226
|
+
"The amount to increment during each interation (with from/to)" }] },
|
227
|
+
|
228
|
+
|
229
|
+
|
230
|
+
autocomplete: [
|
231
|
+
{
|
232
|
+
snippet: "for|${1:value, index}| of=${3:array}",
|
233
|
+
description:
|
234
|
+
"Use to iterate over lists, object properties, or between ranges.",
|
235
|
+
descriptionMoreURL:
|
236
|
+
"https://markojs.com/docs/core-tags/#iterating-over-a-list" },
|
237
|
+
|
238
|
+
{
|
239
|
+
snippet: "for|${1:name, value}| in=${3:object}",
|
240
|
+
descriptionMoreURL:
|
241
|
+
"https://markojs.com/docs/core-tags/#iterating-over-an-objects-properties" },
|
242
|
+
|
243
|
+
{
|
244
|
+
snippet:
|
245
|
+
"for|${1:index}| from=${2:number} to=${3:number} step=${4:number}",
|
246
|
+
descriptionMoreURL:
|
247
|
+
"https://markojs.com/docs/core-tags/#iterating-between-a-range-of-numbers" }] },
|
248
|
+
|
249
|
+
|
250
|
+
|
251
|
+
"<while>": {
|
252
|
+
"code-generator": translateWhile,
|
253
|
+
autocomplete: [
|
254
|
+
{
|
255
|
+
snippet: "while(${1:condition})",
|
256
|
+
description:
|
257
|
+
"Renders the content multiple times until the condition is no longer met.",
|
258
|
+
descriptionMoreURL: "https://markojs.com/docs/core-tags/#while" }] },
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
"<html-comment>": {
|
263
|
+
"code-generator": translateHTMLComment,
|
264
|
+
"parse-options": {
|
265
|
+
state: "parsed-text" },
|
266
|
+
|
267
|
+
attributes: {},
|
268
|
+
autocomplete: [
|
269
|
+
{
|
270
|
+
description:
|
271
|
+
"Use to create an html comment that is not stripped from the output.",
|
272
|
+
descriptionMoreURL: "https://markojs.com/docs/core-tags/#html-comment" }] },
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
"<_preserve>": {
|
277
|
+
renderer: "marko/src/core-tags/components/preserve-tag",
|
278
|
+
"@n": "boolean",
|
279
|
+
"@i": "boolean",
|
280
|
+
"@b": "boolean",
|
281
|
+
autocomplete: [] },
|
282
|
+
|
283
|
+
"<init-components>": {
|
284
|
+
"code-generator": translateServerOnly,
|
285
|
+
renderer: "marko/src/core-tags/components/init-components-tag.js",
|
286
|
+
"@immediate": "boolean" },
|
287
|
+
|
288
|
+
"<_preferred-script-location>": {
|
289
|
+
"code-generator": translateServerOnly,
|
290
|
+
renderer: "marko/src/core-tags/components/preferred-script-location-tag.js" },
|
291
|
+
|
292
|
+
"<body>": {
|
293
|
+
"code-generator": translateBody },
|
294
|
+
|
295
|
+
"<await>": {
|
296
|
+
renderer: "marko/src/core-tags/core/await/renderer.js",
|
297
|
+
"code-generator": translateAwait,
|
298
|
+
"@_provider": "expression",
|
299
|
+
"@_name": "string",
|
300
|
+
"@name": {
|
301
|
+
type: "string",
|
302
|
+
autocomplete: [
|
303
|
+
{
|
304
|
+
description:
|
305
|
+
"Used to improve debugging and also to ensure promise ordering with the show-after attribute.",
|
306
|
+
snippet: 'name="${1:name}"' }] },
|
307
|
+
|
308
|
+
|
309
|
+
|
310
|
+
"@timeout": {
|
311
|
+
type: "number",
|
312
|
+
autocomplete: [
|
313
|
+
{
|
314
|
+
description:
|
315
|
+
"An optional timeout that when reached will cause the promise to reject with a TimeoutError." }] },
|
316
|
+
|
317
|
+
|
318
|
+
|
319
|
+
"@client-reorder": {
|
320
|
+
type: "boolean",
|
321
|
+
autocomplete: [
|
322
|
+
{
|
323
|
+
description:
|
324
|
+
"If set anything after this promise will be sent out immediately, and reordered using JS in the browser." }] },
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
"@show-after": {
|
329
|
+
type: "string",
|
330
|
+
autocomplete: [
|
331
|
+
{
|
332
|
+
description:
|
333
|
+
"This attribute will ensure that (with client-reorder) this await tag will always show after another await tag with the provided name." }] },
|
334
|
+
|
335
|
+
|
336
|
+
|
337
|
+
"<then>": {
|
338
|
+
autocomplete: [
|
339
|
+
{
|
340
|
+
displayText: "then|<result>|",
|
341
|
+
description: "Executed with the result of the resolved promise.",
|
342
|
+
snippet: "then|${1:result}|",
|
343
|
+
descriptionMoreURL: "https://markojs.com/docs/core-tags/#await" }] },
|
344
|
+
|
345
|
+
|
346
|
+
|
347
|
+
"<catch>": {
|
348
|
+
autocomplete: [
|
349
|
+
{
|
350
|
+
displayText: "catch|<err>|",
|
351
|
+
description: "Executed with the err of the rejected promise.",
|
352
|
+
snippet: "catch|${1:err}|",
|
353
|
+
descriptionMoreURL: "https://markojs.com/docs/core-tags/#await" }] },
|
354
|
+
|
355
|
+
|
356
|
+
|
357
|
+
"<placeholder>": {
|
358
|
+
autocomplete: [
|
359
|
+
{
|
360
|
+
description: "A placeholder to display while the promise is pending.",
|
361
|
+
descriptionMoreURL: "https://markojs.com/docs/core-tags/#await" }] },
|
362
|
+
|
363
|
+
|
364
|
+
|
365
|
+
autocomplete: [
|
366
|
+
{
|
367
|
+
displayText: "await(<promise>)",
|
368
|
+
description:
|
369
|
+
"Used to render a template asynchronously with the results of a Promise",
|
370
|
+
snippet: "await(${1:promise})",
|
371
|
+
descriptionMoreURL: "https://markojs.com/docs/core-tags/#await" }] },
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
"<await-reorderer>": {
|
376
|
+
"code-generator": translateServerOnly,
|
377
|
+
renderer: "marko/src/core-tags/core/await/reorderer-renderer.js",
|
378
|
+
autocomplete: [
|
379
|
+
{
|
380
|
+
snippet: "await-reorderer",
|
381
|
+
descriptionMoreURL:
|
382
|
+
"http://markojs.com/docs/marko/async-taglib/#<code><await-reorderer><code>" }] },
|
383
|
+
|
384
|
+
|
385
|
+
|
386
|
+
"<__flush_here_and_after__>": {
|
387
|
+
"code-generator": translateServerOnly,
|
388
|
+
renderer: "marko/src/core-tags/core/__flush_here_and_after__.js" },
|
389
|
+
|
390
|
+
"<module-code>": {
|
391
|
+
"node-factory": parseModuleCode,
|
392
|
+
"parse-options": {
|
393
|
+
rootOnly: true,
|
394
|
+
rawOpenTag: true,
|
395
|
+
openTagOnly: true,
|
396
|
+
ignoreAttributes: true,
|
397
|
+
relaxRequireCommas: true } },
|
398
|
+
|
399
|
+
|
400
|
+
"<*>": {
|
401
|
+
"@key": {
|
402
|
+
type: "string",
|
403
|
+
"preserve-name": true,
|
404
|
+
autocomplete: [
|
405
|
+
{
|
406
|
+
displayText: 'key="<method>"',
|
407
|
+
snippet: 'key="${1:method}"',
|
408
|
+
descriptionMoreURL:
|
409
|
+
"http://markojs.com/docs/marko-components/get-started/#referencing-nested-components" },
|
410
|
+
|
411
|
+
{
|
412
|
+
descriptionMoreURL:
|
413
|
+
"http://markojs.com/docs/marko-components/get-started/#referencing-nested-components" }] },
|
414
|
+
|
415
|
+
|
416
|
+
|
417
|
+
"@on*": {
|
418
|
+
pattern: true,
|
419
|
+
type: "statement",
|
420
|
+
"allow-expressions": true,
|
421
|
+
"preserve-name": true,
|
422
|
+
"set-flag": "hasComponentEvents",
|
423
|
+
autocomplete: [
|
424
|
+
{
|
425
|
+
displayText: 'on<event>("<method>")',
|
426
|
+
snippet: 'on${1:Click}("handle${2:Button}${1:Click}")',
|
427
|
+
descriptionMoreURL:
|
428
|
+
"https://markojs.com/docs/components/#attaching-dom-event-listeners" }] },
|
429
|
+
|
430
|
+
|
431
|
+
|
432
|
+
"@once*": {
|
433
|
+
pattern: true,
|
434
|
+
type: "statement",
|
435
|
+
"allow-expressions": true,
|
436
|
+
"preserve-name": true,
|
437
|
+
"set-flag": "hasComponentEvents",
|
438
|
+
autocomplete: {
|
439
|
+
displayText: 'once<event>("<method>")',
|
440
|
+
snippet: 'once${1:Click}("handle${2:Button}${1:Click}")',
|
441
|
+
descriptionMoreURL:
|
442
|
+
"https://markojs.com/docs/components/#attaching-dom-event-listeners" } },
|
443
|
+
|
444
|
+
|
445
|
+
"@no-update": {
|
446
|
+
type: "flag",
|
447
|
+
"preserve-name": true,
|
448
|
+
autocomplete: [
|
449
|
+
{
|
450
|
+
descriptionMoreURL:
|
451
|
+
"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render" }] },
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
"@no-update-body": {
|
456
|
+
type: "flag",
|
457
|
+
"preserve-name": true,
|
458
|
+
autocomplete: [
|
459
|
+
{
|
460
|
+
descriptionMoreURL:
|
461
|
+
"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render" }] },
|
462
|
+
|
463
|
+
|
464
|
+
|
465
|
+
"@no-update-if": {
|
466
|
+
"preserve-name": true,
|
467
|
+
autocomplete: [
|
468
|
+
{
|
469
|
+
snippet: "no-update-if(${1:condition})",
|
470
|
+
descriptionMoreURL:
|
471
|
+
"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render" }] },
|
472
|
+
|
473
|
+
|
474
|
+
|
475
|
+
"@no-update-body-if": {
|
476
|
+
"preserve-name": true,
|
477
|
+
autocomplete: [
|
478
|
+
{
|
479
|
+
snippet: "no-update-body-if(${1:condition})",
|
480
|
+
descriptionMoreURL:
|
481
|
+
"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render" }] } } };exports.default = _default;
|
482
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/taglib/core/index.js"],"names":["parseImport","rootOnly","rawOpenTag","openTagOnly","ignoreAttributes","relaxRequireCommas","autocomplete","displayText","description","snippet","descriptionMoreURL","parseExport","parseClass","parseStatic","parseStyle","transformer","transformStyle","parseMacro","translateMacro","type","translateIncludeContent","attributes","translateIf","translateElseIf","translateElse","translateFor","translateWhile","translateHTMLComment","state","renderer","translateServerOnly","translateBody","translateAwait","parseModuleCode","pattern"],"mappings":"gEAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,8E;;AAEe;AACb,eAAa,oBADA;AAEb,cAAY;AACV,oBAAgBA,WADN;AAEV,qBAAiB;AACfC,MAAAA,QAAQ,EAAE,IADK;AAEfC,MAAAA,UAAU,EAAE,IAFG;AAGfC,MAAAA,WAAW,EAAE,IAHE;AAIfC,MAAAA,gBAAgB,EAAE,IAJH;AAKfC,MAAAA,kBAAkB,EAAE,IALL,EAFP;;AASVC,IAAAA,YA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ZC,QAAAA,WAAW,EAAE,yBADD;AAEZE,QAAAA,OAAO,EAAE,+CAFG;AAGZC,QAAAA,kBAAkB;AAChB,4EAJU,EANN,EAhCL;;;AA6CL,kBAAc;AACZS,MAAAA,IAAI,EAAE,MADM;AAEZ,uBAAiB,IAFL;AAGZb,MAAAA,YAAY,EAAE;AACZ;AACEI,QAAAA,kBAAkB;AAChB,yFAFJ,EADY,CAHF,EA7CT;;;;AAuDL,uBAAmB;AACjBS,MAAAA,IAAI,EAAE,MADW;AAEjB,uBAAiB,IAFA;AAGjBb,MAAAA,YAAY,EAAE;AACZ;AACEI,QAAAA,kBAAkB;AAChB,yFAFJ,EADY,CAHG,EAvDd;;;;AAiEL,qBAAiB;AACf,uBAAiB,IADF;AAEfJ,MAAAA,YAAY,EAAE;AACZ;AACEG,QAAAA,OAAO,EAAE,8BADX;AAEEC,QAAAA,kBAAkB;AAChB,yFAHJ,EADY,CAFC,EAjEZ;;;;AA2EL,0BAAsB;AACpB,uBAAiB,IADG;AAEpBJ,MAAAA,YAAY,EAAE;AACZ;AACEG,QAAAA,OAAO,EAAE,mCADX;AAEEC,QAAAA,kBAAkB;AAChB,yFAHJ,EADY,CAFM,EA3EjB,EA3XM,E","sourcesContent":["import * as parseImport from \"./parse-import\";\nimport * as parseExport from \"./parse-export\";\nimport * as parseClass from \"./parse-class\";\nimport * as parseStatic from \"./parse-static\";\nimport * as parseStyle from \"./parse-style\";\nimport * as transformStyle from \"./transform-style\";\nimport * as parseMacro from \"./macro/parse\";\nimport * as translateMacro from \"./macro/translate\";\nimport * as translateIncludeContent from \"./translate-include-content\";\nimport * as translateIf from \"./conditional/translate-if\";\nimport * as translateElseIf from \"./conditional/translate-else-if\";\nimport * as translateElse from \"./conditional/translate-else\";\nimport * as translateFor from \"./translate-for\";\nimport * as translateWhile from \"./translate-while\";\nimport * as translateHTMLComment from \"./translate-html-comment\";\nimport * as translateServerOnly from \"./translate-server-only\";\nimport * as translateBody from \"./translate-body\";\nimport * as translateAwait from \"./translate-await\";\nimport * as parseModuleCode from \"./parse-module-code\";\n\nexport default {\n \"taglib-id\": \"marko-default-core\",\n \"<import>\": {\n \"node-factory\": parseImport,\n \"parse-options\": {\n rootOnly: true,\n rawOpenTag: true,\n openTagOnly: true,\n ignoreAttributes: true,\n relaxRequireCommas: true\n },\n autocomplete: [\n {\n displayText: 'import <scope> from \"<path>\"',\n description:\n \"Use to import external modules, follows the same syntax as JavaScript imports.\",\n snippet: 'import ${2} from \"${1:path}\"',\n descriptionMoreURL:\n \"https://markojs.com/docs/syntax/#importing-external-files\"\n }\n ]\n },\n \"<export>\": {\n \"node-factory\": parseExport,\n \"parse-options\": {\n rootOnly: true,\n rawOpenTag: true,\n openTagOnly: true,\n ignoreAttributes: true,\n relaxRequireCommas: true\n },\n autocomplete: [\n {\n displayText: \"export <scope>\",\n description:\n \"Use export additional data with the template, follows the same syntax as JavaScript exports.\",\n snippet: \"export ${1}\",\n descriptionMoreURL:\n \"https://markojs.com/docs/syntax/#importing-external-files\"\n }\n ]\n },\n \"<class>\": {\n \"node-factory\": parseClass,\n \"parse-options\": {\n rootOnly: true,\n rawOpenTag: true,\n openTagOnly: true,\n ignoreAttributes: true\n },\n autocomplete: [\n {\n displayText: \"class { /** lifecycle methods **/ }\",\n snippet: \"class {\\n\\t$0\\n}\",\n description:\n \"A class containing the lifecycle methods, event handlers, and other properties for this component.\",\n descriptionMoreURL:\n \"https://markojs.com/docs/class-components/#single-file-components\"\n }\n ]\n },\n \"<static>\": {\n \"node-factory\": parseStatic,\n \"parse-options\": {\n rootOnly: true,\n rawOpenTag: true,\n openTagOnly: true,\n ignoreAttributes: true\n },\n autocomplete: [\n {\n displayText: \"static <statement>\",\n description:\n \"A JavaScript statement which is only evaluated once your template is loaded.\",\n descriptionMoreURL: \"https://markojs.com/docs/syntax/#static-javascript\"\n }\n ]\n },\n \"<style>\": {\n \"node-factory\": parseStyle,\n transformer: transformStyle,\n \"parse-options\": {\n rawOpenTag: true\n }\n },\n \"<macro>\": {\n \"node-factory\": parseMacro,\n \"code-generator\": translateMacro,\n \"@name\": {\n type: \"string\",\n autocomplete: [\n {\n description: \"The name which can be used as a tag within a template.\"\n }\n ]\n },\n autocomplete: [\n {\n displayText: 'macro|<params>| name=\"<name>\"',\n description: \"Creates a reusable fragment within the template.\",\n snippet: 'macro|${2:param1, param2}| name=\"${1:name}\"',\n descriptionMoreURL: \"https://markojs.com/docs/core-tags/#macro\"\n }\n ]\n },\n \"<include-text>\": {\n \"code-generator\": translateIncludeContent,\n attributes: {},\n autocomplete: [\n {\n displayText: 'include-text(\"<path>\")',\n description: \"Allows you to inline the contents of a text file.\",\n snippet: 'include-text(${1:\"./foo.txt\"})',\n descriptionMoreURL: \"https://markojs.com/docs/core-tags/#include-text\"\n }\n ]\n },\n \"<include-html>\": {\n \"code-generator\": translateIncludeContent,\n attributes: {},\n autocomplete: [\n {\n displayText: 'include-html(\"<path>\")',\n snippet: 'include-html(${1:\"./foo.html\"})',\n description: \"Allows you to inline the contents of an html file.\",\n descriptionMoreURL: \"https://markojs.com/docs/core-tags/#include-html\"\n }\n ]\n },\n \"<if>\": {\n \"code-generator\": translateIf,\n attributes: {},\n autocomplete: [\n {\n snippet: \"if(${1:condition})\",\n description: \"Use to display content only if the condition is meant.\",\n descriptionMoreURL:\n \"https://markojs.com/docs/core-tags/#if-else-if-else\"\n }\n ]\n },\n \"<else-if>\": {\n \"code-generator\": translateElseIf,\n attributes: {},\n autocomplete: [\n {\n snippet: \"else-if(${1:condition})\",\n description:\n \"Use after an <if> or <else-if> tag to display content if those conditions do not match and this one does.\",\n descriptionMoreURL:\n \"https://markojs.com/docs/core-tags/#if-else-if-else\"\n }\n ]\n },\n \"<else>\": {\n \"code-generator\": translateElse,\n attributes: {},\n autocomplete: [\n {\n description:\n \"Use after an <if> or <else-if> tag to display content if those conditions do not match.\",\n descriptionMoreURL:\n \"https://markojs.com/docs/core-tags/#if-else-if-else\"\n }\n ]\n },\n \"<for>\": {\n \"code-generator\": translateFor,\n \"@of\": {\n type: \"expression\",\n autocomplete: [\n {\n description: \"Iterates over a list of items.\"\n }\n ]\n },\n \"@in\": {\n type: \"expression\",\n autocomplete: [\n {\n description: \"Iterates over the keys and values of an object.\"\n }\n ]\n },\n \"@to\": {\n type: \"number\",\n autocomplete: [\n {\n description: \"Iterates up to the provided number (inclusive)\"\n }\n ]\n },\n \"@from\": {\n type: \"number\",\n autocomplete: [\n {\n description: \"Iterates starting from the provided number (inclusive)\"\n }\n ]\n },\n \"@step\": {\n type: \"number\",\n autocomplete: [\n {\n description:\n \"The amount to increment during each interation (with from/to)\"\n }\n ]\n },\n autocomplete: [\n {\n snippet: \"for|${1:value, index}| of=${3:array}\",\n description:\n \"Use to iterate over lists, object properties, or between ranges.\",\n descriptionMoreURL:\n \"https://markojs.com/docs/core-tags/#iterating-over-a-list\"\n },\n {\n snippet: \"for|${1:name, value}| in=${3:object}\",\n descriptionMoreURL:\n \"https://markojs.com/docs/core-tags/#iterating-over-an-objects-properties\"\n },\n {\n snippet:\n \"for|${1:index}| from=${2:number} to=${3:number} step=${4:number}\",\n descriptionMoreURL:\n \"https://markojs.com/docs/core-tags/#iterating-between-a-range-of-numbers\"\n }\n ]\n },\n \"<while>\": {\n \"code-generator\": translateWhile,\n autocomplete: [\n {\n snippet: \"while(${1:condition})\",\n description:\n \"Renders the content multiple times until the condition is no longer met.\",\n descriptionMoreURL: \"https://markojs.com/docs/core-tags/#while\"\n }\n ]\n },\n \"<html-comment>\": {\n \"code-generator\": translateHTMLComment,\n \"parse-options\": {\n state: \"parsed-text\"\n },\n attributes: {},\n autocomplete: [\n {\n description:\n \"Use to create an html comment that is not stripped from the output.\",\n descriptionMoreURL: \"https://markojs.com/docs/core-tags/#html-comment\"\n }\n ]\n },\n \"<_preserve>\": {\n renderer: \"marko/src/core-tags/components/preserve-tag\",\n \"@n\": \"boolean\",\n \"@i\": \"boolean\",\n \"@b\": \"boolean\",\n autocomplete: []\n },\n \"<init-components>\": {\n \"code-generator\": translateServerOnly,\n renderer: \"marko/src/core-tags/components/init-components-tag.js\",\n \"@immediate\": \"boolean\"\n },\n \"<_preferred-script-location>\": {\n \"code-generator\": translateServerOnly,\n renderer: \"marko/src/core-tags/components/preferred-script-location-tag.js\"\n },\n \"<body>\": {\n \"code-generator\": translateBody\n },\n \"<await>\": {\n renderer: \"marko/src/core-tags/core/await/renderer.js\",\n \"code-generator\": translateAwait,\n \"@_provider\": \"expression\",\n \"@_name\": \"string\",\n \"@name\": {\n type: \"string\",\n autocomplete: [\n {\n description:\n \"Used to improve debugging and also to ensure promise ordering with the show-after attribute.\",\n snippet: 'name=\"${1:name}\"'\n }\n ]\n },\n \"@timeout\": {\n type: \"number\",\n autocomplete: [\n {\n description:\n \"An optional timeout that when reached will cause the promise to reject with a TimeoutError.\"\n }\n ]\n },\n \"@client-reorder\": {\n type: \"boolean\",\n autocomplete: [\n {\n description:\n \"If set anything after this promise will be sent out immediately, and reordered using JS in the browser.\"\n }\n ]\n },\n \"@show-after\": {\n type: \"string\",\n autocomplete: [\n {\n description:\n \"This attribute will ensure that (with client-reorder) this await tag will always show after another await tag with the provided name.\"\n }\n ]\n },\n \"<then>\": {\n autocomplete: [\n {\n displayText: \"then|<result>|\",\n description: \"Executed with the result of the resolved promise.\",\n snippet: \"then|${1:result}|\",\n descriptionMoreURL: \"https://markojs.com/docs/core-tags/#await\"\n }\n ]\n },\n \"<catch>\": {\n autocomplete: [\n {\n displayText: \"catch|<err>|\",\n description: \"Executed with the err of the rejected promise.\",\n snippet: \"catch|${1:err}|\",\n descriptionMoreURL: \"https://markojs.com/docs/core-tags/#await\"\n }\n ]\n },\n \"<placeholder>\": {\n autocomplete: [\n {\n description: \"A placeholder to display while the promise is pending.\",\n descriptionMoreURL: \"https://markojs.com/docs/core-tags/#await\"\n }\n ]\n },\n autocomplete: [\n {\n displayText: \"await(<promise>)\",\n description:\n \"Used to render a template asynchronously with the results of a Promise\",\n snippet: \"await(${1:promise})\",\n descriptionMoreURL: \"https://markojs.com/docs/core-tags/#await\"\n }\n ]\n },\n \"<await-reorderer>\": {\n \"code-generator\": translateServerOnly,\n renderer: \"marko/src/core-tags/core/await/reorderer-renderer.js\",\n autocomplete: [\n {\n snippet: \"await-reorderer\",\n descriptionMoreURL:\n \"http://markojs.com/docs/marko/async-taglib/#<code><await-reorderer><code>\"\n }\n ]\n },\n \"<__flush_here_and_after__>\": {\n \"code-generator\": translateServerOnly,\n renderer: \"marko/src/core-tags/core/__flush_here_and_after__.js\"\n },\n \"<module-code>\": {\n \"node-factory\": parseModuleCode,\n \"parse-options\": {\n rootOnly: true,\n rawOpenTag: true,\n openTagOnly: true,\n ignoreAttributes: true,\n relaxRequireCommas: true\n }\n },\n \"<*>\": {\n \"@key\": {\n type: \"string\",\n \"preserve-name\": true,\n autocomplete: [\n {\n displayText: 'key=\"<method>\"',\n snippet: 'key=\"${1:method}\"',\n descriptionMoreURL:\n \"http://markojs.com/docs/marko-components/get-started/#referencing-nested-components\"\n },\n {\n descriptionMoreURL:\n \"http://markojs.com/docs/marko-components/get-started/#referencing-nested-components\"\n }\n ]\n },\n \"@on*\": {\n pattern: true,\n type: \"statement\",\n \"allow-expressions\": true,\n \"preserve-name\": true,\n \"set-flag\": \"hasComponentEvents\",\n autocomplete: [\n {\n displayText: 'on<event>(\"<method>\")',\n snippet: 'on${1:Click}(\"handle${2:Button}${1:Click}\")',\n descriptionMoreURL:\n \"https://markojs.com/docs/components/#attaching-dom-event-listeners\"\n }\n ]\n },\n \"@once*\": {\n pattern: true,\n type: \"statement\",\n \"allow-expressions\": true,\n \"preserve-name\": true,\n \"set-flag\": \"hasComponentEvents\",\n autocomplete: {\n displayText: 'once<event>(\"<method>\")',\n snippet: 'once${1:Click}(\"handle${2:Button}${1:Click}\")',\n descriptionMoreURL:\n \"https://markojs.com/docs/components/#attaching-dom-event-listeners\"\n }\n },\n \"@no-update\": {\n type: \"flag\",\n \"preserve-name\": true,\n autocomplete: [\n {\n descriptionMoreURL:\n \"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render\"\n }\n ]\n },\n \"@no-update-body\": {\n type: \"flag\",\n \"preserve-name\": true,\n autocomplete: [\n {\n descriptionMoreURL:\n \"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render\"\n }\n ]\n },\n \"@no-update-if\": {\n \"preserve-name\": true,\n autocomplete: [\n {\n snippet: \"no-update-if(${1:condition})\",\n descriptionMoreURL:\n \"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render\"\n }\n ]\n },\n \"@no-update-body-if\": {\n \"preserve-name\": true,\n autocomplete: [\n {\n snippet: \"no-update-body-if(${1:condition})\",\n descriptionMoreURL:\n \"http://markojs.com/docs/marko-components/#preserving-dom-nodes-during-re-render\"\n }\n ]\n }\n }\n};\n"],"file":"index.js"}
|
package/dist/taglib/index.js
CHANGED
@@ -1,4 +1,6 @@
|
|
1
|
-
"use strict";exports.__esModule = true;exports.default = void 0;var
|
2
|
-
|
3
|
-
[
|
1
|
+
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");exports.__esModule = true;exports.default = void 0;var _core = _interopRequireDefault(require("./core"));
|
2
|
+
var _migrate = _interopRequireDefault(require("./migrate"));var _default =
|
3
|
+
[
|
4
|
+
["marko/core", _core.default],
|
5
|
+
["marko/migrate", _migrate.default]];exports.default = _default;
|
4
6
|
//# sourceMappingURL=index.js.map
|
package/dist/taglib/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../src/taglib/index.js"],"names":["
|
1
|
+
{"version":3,"sources":["../../src/taglib/index.js"],"names":["coreTaglib","migrateTaglib"],"mappings":"qJAAA;AACA,4D;AACe;AACb,CAAC,YAAD,EAAeA,aAAf,CADa;AAEb,CAAC,eAAD,EAAkBC,gBAAlB,CAFa,C","sourcesContent":["import coreTaglib from \"./core\";\nimport migrateTaglib from \"./migrate\";\nexport default [\n [\"marko/core\", coreTaglib],\n [\"marko/migrate\", migrateTaglib]\n];\n"],"file":"index.js"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
"use strict";exports.__esModule = true;exports.default = void 0;var migrateAllTemplates = _interopRequireWildcard(require("./all-templates"));function _getRequireWildcardCache(nodeInterop) {if (typeof WeakMap !== "function") return null;var cacheBabelInterop = new WeakMap();var cacheNodeInterop = new WeakMap();return (_getRequireWildcardCache = function (nodeInterop) {return nodeInterop ? cacheNodeInterop : cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj, nodeInterop) {if (!nodeInterop && obj && obj.__esModule) {return obj;}if (obj === null || typeof obj !== "object" && typeof obj !== "function") {return { default: obj };}var cache = _getRequireWildcardCache(nodeInterop);if (cache && cache.has(obj)) {return cache.get(obj);}var newObj = {};var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;for (var key in obj) {if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;if (desc && (desc.get || desc.set)) {Object.defineProperty(newObj, key, desc);} else {newObj[key] = obj[key];}}}newObj.default = obj;if (cache) {cache.set(obj, newObj);}return newObj;}var _default =
|
2
|
+
{
|
3
|
+
"taglib-id": "marko-default-migrate",
|
4
|
+
migrator: migrateAllTemplates };exports.default = _default;
|
5
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"sources":["../../../src/taglib/migrate/index.js"],"names":["migrator","migrateAllTemplates"],"mappings":"gEAAA,8E;AACe;AACb,eAAa,uBADA;AAEbA,EAAAA,QAAQ,EAAEC,mBAFG,E","sourcesContent":["import * as migrateAllTemplates from \"./all-templates\";\nexport default {\n \"taglib-id\": \"marko-default-migrate\",\n migrator: migrateAllTemplates\n};\n"],"file":"index.js"}
|
package/package.json
CHANGED
@@ -1,19 +1,19 @@
|
|
1
1
|
{
|
2
2
|
"name": "@marko/translator-default",
|
3
3
|
"description": "Translates Marko templates to the default Marko runtime.",
|
4
|
-
"version": "5.20.
|
4
|
+
"version": "5.20.3",
|
5
5
|
"author": "Dylan Piercey <dpiercey@ebay.com>",
|
6
6
|
"bugs": "https://github.com/marko-js/marko/issues/new?template=Bug_report.md",
|
7
7
|
"dependencies": {
|
8
8
|
"@babel/runtime": "^7.16.0",
|
9
|
-
"@marko/babel-utils": "^5.20.
|
9
|
+
"@marko/babel-utils": "^5.20.3",
|
10
10
|
"escape-string-regexp": "^4.0.0",
|
11
11
|
"magic-string": "^0.25.7",
|
12
12
|
"self-closing-tags": "^1.0.1"
|
13
13
|
},
|
14
14
|
"devDependencies": {
|
15
|
-
"@marko/compiler": "^5.20.
|
16
|
-
"marko": "^5.
|
15
|
+
"@marko/compiler": "^5.20.3",
|
16
|
+
"marko": "^5.20.3"
|
17
17
|
},
|
18
18
|
"files": [
|
19
19
|
"dist"
|
@@ -42,5 +42,5 @@
|
|
42
42
|
"type": "git",
|
43
43
|
"url": "https://github.com/marko-js/marko/tree/master/packages/translator-default"
|
44
44
|
},
|
45
|
-
"gitHead": "
|
45
|
+
"gitHead": "19f0a44a1e33e865ecf04eb5b9acfb8b610e51bd"
|
46
46
|
}
|
@@ -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
|
-
}
|