@rohal12/spindle 0.58.0 → 0.59.1
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/pkg/format.js +1 -1
- package/dist/pkg/headless.js +428 -277
- package/dist/pkg/macro-registry.json +29 -11
- package/dist/pkg/story-variables.js +330 -207
- package/package.json +1 -1
- package/src/automation/runner.ts +2 -1
- package/src/code-check.ts +158 -83
- package/src/components/macros/Button.tsx +3 -1
- package/src/components/macros/Checkbox.tsx +4 -1
- package/src/components/macros/Dialog.tsx +1 -1
- package/src/components/macros/MacroLink.tsx +3 -2
- package/src/components/macros/Meter.tsx +6 -2
- package/src/components/macros/Radiobutton.tsx +2 -2
- package/src/components/macros/Watch.tsx +11 -6
- package/src/components/macros/arg-utils.ts +0 -37
- package/src/components/macros/input-macro.ts +4 -1
- package/src/components/macros/macro-args.ts +93 -52
- package/src/components/macros/option-utils.ts +1 -1
- package/src/index.tsx +2 -4
- package/src/js-lexer.ts +19 -0
- package/src/markup/parse.ts +22 -4
- package/src/markup/spindle.peggy +21 -9
- package/src/markup/tokens.ts +3 -0
- package/src/markup/validate.ts +13 -10
- package/src/registry.ts +63 -6
- package/src/saves/storage.ts +14 -1
- package/src/store.ts +29 -7
- package/src/story-variables.ts +31 -65
- package/src/structural.ts +67 -21
- package/src/tooling.ts +15 -16
- package/src/widgets/widget-def.ts +2 -2
- package/types/index.d.ts +23 -0
- package/types/tooling.d.ts +28 -2
|
@@ -69,7 +69,8 @@
|
|
|
69
69
|
},
|
|
70
70
|
{
|
|
71
71
|
"name": "label",
|
|
72
|
-
"type": "string"
|
|
72
|
+
"type": "string",
|
|
73
|
+
"holds": "markup"
|
|
73
74
|
}
|
|
74
75
|
],
|
|
75
76
|
"source": "builtin"
|
|
@@ -135,6 +136,7 @@
|
|
|
135
136
|
{
|
|
136
137
|
"name": "label",
|
|
137
138
|
"type": "text",
|
|
139
|
+
"holds": "markup",
|
|
138
140
|
"required": true
|
|
139
141
|
}
|
|
140
142
|
],
|
|
@@ -150,6 +152,7 @@
|
|
|
150
152
|
{
|
|
151
153
|
"name": "text",
|
|
152
154
|
"type": "string",
|
|
155
|
+
"holds": "markup",
|
|
153
156
|
"required": true
|
|
154
157
|
},
|
|
155
158
|
{
|
|
@@ -220,11 +223,13 @@
|
|
|
220
223
|
{
|
|
221
224
|
"name": "name",
|
|
222
225
|
"type": "text",
|
|
226
|
+
"holds": "text",
|
|
223
227
|
"required": true
|
|
224
228
|
},
|
|
225
229
|
{
|
|
226
230
|
"name": "parameters",
|
|
227
|
-
"type": "text"
|
|
231
|
+
"type": "text",
|
|
232
|
+
"holds": "text"
|
|
228
233
|
}
|
|
229
234
|
],
|
|
230
235
|
"source": "builtin"
|
|
@@ -286,6 +291,7 @@
|
|
|
286
291
|
{
|
|
287
292
|
"name": "label",
|
|
288
293
|
"type": "text",
|
|
294
|
+
"holds": "markup",
|
|
289
295
|
"required": true
|
|
290
296
|
},
|
|
291
297
|
{
|
|
@@ -372,7 +378,8 @@
|
|
|
372
378
|
},
|
|
373
379
|
{
|
|
374
380
|
"name": "placeholder",
|
|
375
|
-
"type": "string"
|
|
381
|
+
"type": "string",
|
|
382
|
+
"holds": "text"
|
|
376
383
|
}
|
|
377
384
|
],
|
|
378
385
|
"source": "builtin"
|
|
@@ -390,7 +397,8 @@
|
|
|
390
397
|
},
|
|
391
398
|
{
|
|
392
399
|
"name": "placeholder",
|
|
393
|
-
"type": "string"
|
|
400
|
+
"type": "string",
|
|
401
|
+
"holds": "text"
|
|
394
402
|
}
|
|
395
403
|
],
|
|
396
404
|
"source": "builtin"
|
|
@@ -408,7 +416,8 @@
|
|
|
408
416
|
},
|
|
409
417
|
{
|
|
410
418
|
"name": "placeholder",
|
|
411
|
-
"type": "string"
|
|
419
|
+
"type": "string",
|
|
420
|
+
"holds": "text"
|
|
412
421
|
}
|
|
413
422
|
],
|
|
414
423
|
"source": "builtin"
|
|
@@ -426,7 +435,8 @@
|
|
|
426
435
|
},
|
|
427
436
|
{
|
|
428
437
|
"name": "label",
|
|
429
|
-
"type": "text"
|
|
438
|
+
"type": "text",
|
|
439
|
+
"holds": "text"
|
|
430
440
|
}
|
|
431
441
|
],
|
|
432
442
|
"source": "builtin"
|
|
@@ -445,11 +455,13 @@
|
|
|
445
455
|
{
|
|
446
456
|
"name": "value",
|
|
447
457
|
"type": "text",
|
|
458
|
+
"holds": "text",
|
|
448
459
|
"required": true
|
|
449
460
|
},
|
|
450
461
|
{
|
|
451
462
|
"name": "label",
|
|
452
|
-
"type": "text"
|
|
463
|
+
"type": "text",
|
|
464
|
+
"holds": "text"
|
|
453
465
|
}
|
|
454
466
|
],
|
|
455
467
|
"source": "builtin"
|
|
@@ -505,6 +517,7 @@
|
|
|
505
517
|
{
|
|
506
518
|
"name": "condition",
|
|
507
519
|
"type": "string",
|
|
520
|
+
"holds": "expression",
|
|
508
521
|
"required": true
|
|
509
522
|
},
|
|
510
523
|
{
|
|
@@ -513,19 +526,23 @@
|
|
|
513
526
|
"parameters": [
|
|
514
527
|
{
|
|
515
528
|
"name": "goto",
|
|
516
|
-
"type": "string"
|
|
529
|
+
"type": "string",
|
|
530
|
+
"holds": "passage"
|
|
517
531
|
},
|
|
518
532
|
{
|
|
519
533
|
"name": "dialog",
|
|
520
|
-
"type": "string"
|
|
534
|
+
"type": "string",
|
|
535
|
+
"holds": "passage"
|
|
521
536
|
},
|
|
522
537
|
{
|
|
523
538
|
"name": "run",
|
|
524
|
-
"type": "string"
|
|
539
|
+
"type": "string",
|
|
540
|
+
"holds": "statements"
|
|
525
541
|
},
|
|
526
542
|
{
|
|
527
543
|
"name": "name",
|
|
528
|
-
"type": "string"
|
|
544
|
+
"type": "string",
|
|
545
|
+
"holds": "text"
|
|
529
546
|
},
|
|
530
547
|
{
|
|
531
548
|
"name": "priority",
|
|
@@ -548,6 +565,7 @@
|
|
|
548
565
|
{
|
|
549
566
|
"name": "name",
|
|
550
567
|
"type": "text",
|
|
568
|
+
"holds": "text",
|
|
551
569
|
"required": true
|
|
552
570
|
}
|
|
553
571
|
],
|