@fusion.dev/helix-headless 0.203.0 → 0.204.0
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/api.json +1 -1
- package/custom-elements.json +586 -33
- package/dist/element-events.generated.js +7 -1
- package/dist/log/buffer.d.ts +52 -4
- package/dist/log/buffer.js +88 -4
- package/dist/log/index.d.ts +2 -1
- package/dist/log/index.js +1 -0
- package/dist/log/line/log-line.d.ts +19 -5
- package/dist/log/line/log-line.js +31 -9
- package/dist/log/parsers.d.ts +36 -0
- package/dist/log/parsers.js +101 -0
- package/dist/log/root/log-root.d.ts +114 -6
- package/dist/log/root/log-root.js +243 -17
- package/lint.json +1 -1
- package/package.json +5 -5
- package/types/jsx.d.ts +126 -18
- package/types/vue.d.ts +29 -5
package/custom-elements.json
CHANGED
|
@@ -101459,9 +101459,45 @@
|
|
|
101459
101459
|
"kind": "javascript-module",
|
|
101460
101460
|
"path": "src/log/buffer.ts",
|
|
101461
101461
|
"declarations": [
|
|
101462
|
+
{
|
|
101463
|
+
"kind": "function",
|
|
101464
|
+
"name": "stepDuration",
|
|
101465
|
+
"return": {
|
|
101466
|
+
"type": {
|
|
101467
|
+
"text": "string"
|
|
101468
|
+
}
|
|
101469
|
+
},
|
|
101470
|
+
"parameters": [
|
|
101471
|
+
{
|
|
101472
|
+
"name": "seconds",
|
|
101473
|
+
"type": {
|
|
101474
|
+
"text": "number"
|
|
101475
|
+
}
|
|
101476
|
+
}
|
|
101477
|
+
],
|
|
101478
|
+
"description": "`seconds` as a step's duration reads: `12s`, `1m 12s`, or `1h 2m`."
|
|
101479
|
+
},
|
|
101480
|
+
{
|
|
101481
|
+
"kind": "function",
|
|
101482
|
+
"name": "timeOf",
|
|
101483
|
+
"return": {
|
|
101484
|
+
"type": {
|
|
101485
|
+
"text": "number | undefined"
|
|
101486
|
+
}
|
|
101487
|
+
},
|
|
101488
|
+
"parameters": [
|
|
101489
|
+
{
|
|
101490
|
+
"name": "at",
|
|
101491
|
+
"type": {
|
|
101492
|
+
"text": "number | string | undefined"
|
|
101493
|
+
}
|
|
101494
|
+
}
|
|
101495
|
+
],
|
|
101496
|
+
"description": "Milliseconds since the epoch for `at`, or undefined where it names no time."
|
|
101497
|
+
},
|
|
101462
101498
|
{
|
|
101463
101499
|
"kind": "class",
|
|
101464
|
-
"description": "The text of a run, kept as lines.\n\n**Written text arrives in pieces that do not end at line breaks**, so the\nline still being written is held apart and shown as it stands, the way a\nterminal shows a prompt or a progress bar before its line ends. A line is\nfinished by `\\n` or `\\r\\n`.\n\n**A carriage return on its own starts the line over.** A progress bar is\none line rewritten a hundred times, and drawing each rewrite as a line of\nits own is the failure every log viewer is judged by. The text after the\nlast `\\r` replaces the line. A terminal overwrites only as many characters\nas were written, so `abc\\rxy` reads `xyc` there and `xy` here; a program\nthat redraws a line writes the whole line, which reads the same in both.\n\n**Color carries from line to line**, as it does in a terminal, so a block\nthat opens with green and closes many lines later is green throughout. It\ncarries through text a carriage return replaced as well.",
|
|
101500
|
+
"description": "The text of a run, kept as lines.\n\n**Written text arrives in pieces that do not end at line breaks**, so the\nline still being written is held apart and shown as it stands, the way a\nterminal shows a prompt or a progress bar before its line ends. A line is\nfinished by `\\n` or `\\r\\n`.\n\n**A carriage return on its own starts the line over.** A progress bar is\none line rewritten a hundred times, and drawing each rewrite as a line of\nits own is the failure every log viewer is judged by. The text after the\nlast `\\r` replaces the line. A terminal overwrites only as many characters\nas were written, so `abc\\rxy` reads `xyc` there and `xy` here; a program\nthat redraws a line writes the whole line, which reads the same in both.\n\n**Color carries from line to line**, as it does in a terminal, so a block\nthat opens with green and closes many lines later is green throughout. It\ncarries through text a carriage return replaced as well.\n\n**Steps a parser opens are kept here**, in `steps`, each a new object\nwhenever it changes, so a log can compare one set with the next and see a\nstep finish.",
|
|
101465
101501
|
"name": "LogBuffer",
|
|
101466
101502
|
"members": [
|
|
101467
101503
|
{
|
|
@@ -101500,6 +101536,44 @@
|
|
|
101500
101536
|
"default": "undefined",
|
|
101501
101537
|
"description": "Reads each finished line of written text."
|
|
101502
101538
|
},
|
|
101539
|
+
{
|
|
101540
|
+
"kind": "field",
|
|
101541
|
+
"name": "steps",
|
|
101542
|
+
"type": {
|
|
101543
|
+
"text": "LogGroup[]"
|
|
101544
|
+
},
|
|
101545
|
+
"default": "[]",
|
|
101546
|
+
"description": "The steps `parse` opened, in order, replaced as a whole when one changes."
|
|
101547
|
+
},
|
|
101548
|
+
{
|
|
101549
|
+
"kind": "field",
|
|
101550
|
+
"name": "openStep",
|
|
101551
|
+
"type": {
|
|
101552
|
+
"text": "number | undefined"
|
|
101553
|
+
},
|
|
101554
|
+
"privacy": "private",
|
|
101555
|
+
"default": "undefined",
|
|
101556
|
+
"description": "The step that is open, by its place in `steps`."
|
|
101557
|
+
},
|
|
101558
|
+
{
|
|
101559
|
+
"kind": "field",
|
|
101560
|
+
"name": "stepFailed",
|
|
101561
|
+
"type": {
|
|
101562
|
+
"text": "boolean"
|
|
101563
|
+
},
|
|
101564
|
+
"privacy": "private",
|
|
101565
|
+
"default": "false",
|
|
101566
|
+
"description": "Whether a line in the open step was at `error`, and when the step began."
|
|
101567
|
+
},
|
|
101568
|
+
{
|
|
101569
|
+
"kind": "field",
|
|
101570
|
+
"name": "stepStarted",
|
|
101571
|
+
"type": {
|
|
101572
|
+
"text": "number | undefined"
|
|
101573
|
+
},
|
|
101574
|
+
"privacy": "private",
|
|
101575
|
+
"default": "undefined"
|
|
101576
|
+
},
|
|
101503
101577
|
{
|
|
101504
101578
|
"kind": "field",
|
|
101505
101579
|
"name": "partial",
|
|
@@ -101633,6 +101707,66 @@
|
|
|
101633
101707
|
},
|
|
101634
101708
|
"description": "Finishes the line being written."
|
|
101635
101709
|
},
|
|
101710
|
+
{
|
|
101711
|
+
"kind": "field",
|
|
101712
|
+
"name": "stepEnded",
|
|
101713
|
+
"type": {
|
|
101714
|
+
"text": "number | undefined"
|
|
101715
|
+
},
|
|
101716
|
+
"privacy": "private",
|
|
101717
|
+
"default": "undefined",
|
|
101718
|
+
"description": "When the open step's latest line was written."
|
|
101719
|
+
},
|
|
101720
|
+
{
|
|
101721
|
+
"kind": "method",
|
|
101722
|
+
"name": "openStepNamed",
|
|
101723
|
+
"privacy": "private",
|
|
101724
|
+
"return": {
|
|
101725
|
+
"type": {
|
|
101726
|
+
"text": "void"
|
|
101727
|
+
}
|
|
101728
|
+
},
|
|
101729
|
+
"parameters": [
|
|
101730
|
+
{
|
|
101731
|
+
"name": "heading",
|
|
101732
|
+
"type": {
|
|
101733
|
+
"text": "string"
|
|
101734
|
+
}
|
|
101735
|
+
},
|
|
101736
|
+
{
|
|
101737
|
+
"name": "at",
|
|
101738
|
+
"type": {
|
|
101739
|
+
"text": "number | undefined"
|
|
101740
|
+
}
|
|
101741
|
+
}
|
|
101742
|
+
],
|
|
101743
|
+
"description": "Opens a step named `heading`, closing the one that is open."
|
|
101744
|
+
},
|
|
101745
|
+
{
|
|
101746
|
+
"kind": "method",
|
|
101747
|
+
"name": "closeStep",
|
|
101748
|
+
"privacy": "private",
|
|
101749
|
+
"return": {
|
|
101750
|
+
"type": {
|
|
101751
|
+
"text": "void"
|
|
101752
|
+
}
|
|
101753
|
+
},
|
|
101754
|
+
"parameters": [
|
|
101755
|
+
{
|
|
101756
|
+
"name": "close",
|
|
101757
|
+
"type": {
|
|
101758
|
+
"text": "NonNullable<LogParsed['close']>"
|
|
101759
|
+
}
|
|
101760
|
+
},
|
|
101761
|
+
{
|
|
101762
|
+
"name": "at",
|
|
101763
|
+
"type": {
|
|
101764
|
+
"text": "number | undefined"
|
|
101765
|
+
}
|
|
101766
|
+
}
|
|
101767
|
+
],
|
|
101768
|
+
"description": "Closes the open step: failed where one of its lines was at `error`, done\notherwise, timed from its first line to `at`, and folded unless it failed,\nas a CI page folds a step that passed."
|
|
101769
|
+
},
|
|
101636
101770
|
{
|
|
101637
101771
|
"kind": "method",
|
|
101638
101772
|
"name": "trim",
|
|
@@ -101649,6 +101783,22 @@
|
|
|
101649
101783
|
}
|
|
101650
101784
|
],
|
|
101651
101785
|
"exports": [
|
|
101786
|
+
{
|
|
101787
|
+
"kind": "js",
|
|
101788
|
+
"name": "stepDuration",
|
|
101789
|
+
"declaration": {
|
|
101790
|
+
"name": "stepDuration",
|
|
101791
|
+
"module": "src/log/buffer.ts"
|
|
101792
|
+
}
|
|
101793
|
+
},
|
|
101794
|
+
{
|
|
101795
|
+
"kind": "js",
|
|
101796
|
+
"name": "timeOf",
|
|
101797
|
+
"declaration": {
|
|
101798
|
+
"name": "timeOf",
|
|
101799
|
+
"module": "src/log/buffer.ts"
|
|
101800
|
+
}
|
|
101801
|
+
},
|
|
101652
101802
|
{
|
|
101653
101803
|
"kind": "js",
|
|
101654
101804
|
"name": "LogBuffer",
|
|
@@ -102449,6 +102599,14 @@
|
|
|
102449
102599
|
"module": "./buffer.js"
|
|
102450
102600
|
}
|
|
102451
102601
|
},
|
|
102602
|
+
{
|
|
102603
|
+
"kind": "js",
|
|
102604
|
+
"name": "LogParsed",
|
|
102605
|
+
"declaration": {
|
|
102606
|
+
"name": "LogParsed",
|
|
102607
|
+
"module": "./buffer.js"
|
|
102608
|
+
}
|
|
102609
|
+
},
|
|
102452
102610
|
{
|
|
102453
102611
|
"kind": "js",
|
|
102454
102612
|
"name": "LogParser",
|
|
@@ -102489,6 +102647,22 @@
|
|
|
102489
102647
|
"module": "./line/log-line.js"
|
|
102490
102648
|
}
|
|
102491
102649
|
},
|
|
102650
|
+
{
|
|
102651
|
+
"kind": "js",
|
|
102652
|
+
"name": "parseGitHubActions",
|
|
102653
|
+
"declaration": {
|
|
102654
|
+
"name": "parseGitHubActions",
|
|
102655
|
+
"module": "./parsers.js"
|
|
102656
|
+
}
|
|
102657
|
+
},
|
|
102658
|
+
{
|
|
102659
|
+
"kind": "js",
|
|
102660
|
+
"name": "parseVercel",
|
|
102661
|
+
"declaration": {
|
|
102662
|
+
"name": "parseVercel",
|
|
102663
|
+
"module": "./parsers.js"
|
|
102664
|
+
}
|
|
102665
|
+
},
|
|
102492
102666
|
{
|
|
102493
102667
|
"kind": "js",
|
|
102494
102668
|
"name": "HelixHeadlessLog",
|
|
@@ -102519,24 +102693,6 @@
|
|
|
102519
102693
|
"kind": "javascript-module",
|
|
102520
102694
|
"path": "src/log/line/log-line.ts",
|
|
102521
102695
|
"declarations": [
|
|
102522
|
-
{
|
|
102523
|
-
"kind": "function",
|
|
102524
|
-
"name": "timeOf",
|
|
102525
|
-
"return": {
|
|
102526
|
-
"type": {
|
|
102527
|
-
"text": "number | undefined"
|
|
102528
|
-
}
|
|
102529
|
-
},
|
|
102530
|
-
"parameters": [
|
|
102531
|
-
{
|
|
102532
|
-
"name": "at",
|
|
102533
|
-
"type": {
|
|
102534
|
-
"text": "number | string | undefined"
|
|
102535
|
-
}
|
|
102536
|
-
}
|
|
102537
|
-
],
|
|
102538
|
-
"description": "Milliseconds since the epoch for `at`, or undefined where it names no time."
|
|
102539
|
-
},
|
|
102540
102696
|
{
|
|
102541
102697
|
"kind": "class",
|
|
102542
102698
|
"description": "Write one for each line of a log you serve whole, inside a `Log` or a\n`Log.Group`. The log numbers each line, counting the lines of every group,\nand tells it whether to show its number and its time.\n\n`level` says how much a line matters, and the styled tier draws `warn` and\n`error` lines apart. The text is the line's own content, so you can mark it\nup yourself.",
|
|
@@ -102568,6 +102724,10 @@
|
|
|
102568
102724
|
"description": "The row of a line `mark-lines` names on the log.",
|
|
102569
102725
|
"name": "line-marked"
|
|
102570
102726
|
},
|
|
102727
|
+
{
|
|
102728
|
+
"description": "The row of a line in the log's selection.",
|
|
102729
|
+
"name": "line-selected"
|
|
102730
|
+
},
|
|
102571
102731
|
{
|
|
102572
102732
|
"description": "The row of a line at `warn`.",
|
|
102573
102733
|
"name": "line-warn"
|
|
@@ -102577,7 +102737,7 @@
|
|
|
102577
102737
|
"name": "match"
|
|
102578
102738
|
},
|
|
102579
102739
|
{
|
|
102580
|
-
"description": "The line's number, shown with `line-numbers
|
|
102740
|
+
"description": "The line's number, shown with `line-numbers`: a link with `line-href`, and a button on a `selectable` log.",
|
|
102581
102741
|
"name": "number"
|
|
102582
102742
|
},
|
|
102583
102743
|
{
|
|
@@ -102672,7 +102832,7 @@
|
|
|
102672
102832
|
"text": "TemplateResult | typeof nothing"
|
|
102673
102833
|
}
|
|
102674
102834
|
},
|
|
102675
|
-
"description": "The number
|
|
102835
|
+
"description": "The number: a link where the log gave `line-href`, a button where the log\nis `selectable`, and otherwise text a screen reader skips.\n\n**One number in the log is a tab stop, and the rest are reached with the\narrow keys**, so a log of a thousand lines is one stop on the way through\nthe page. The log says which, with `logStop`."
|
|
102676
102836
|
},
|
|
102677
102837
|
{
|
|
102678
102838
|
"kind": "method",
|
|
@@ -103124,14 +103284,6 @@
|
|
|
103124
103284
|
}
|
|
103125
103285
|
],
|
|
103126
103286
|
"exports": [
|
|
103127
|
-
{
|
|
103128
|
-
"kind": "js",
|
|
103129
|
-
"name": "timeOf",
|
|
103130
|
-
"declaration": {
|
|
103131
|
-
"name": "timeOf",
|
|
103132
|
-
"module": "src/log/line/log-line.ts"
|
|
103133
|
-
}
|
|
103134
|
-
},
|
|
103135
103287
|
{
|
|
103136
103288
|
"kind": "js",
|
|
103137
103289
|
"name": "HelixHeadlessLogLine",
|
|
@@ -103150,13 +103302,80 @@
|
|
|
103150
103302
|
}
|
|
103151
103303
|
]
|
|
103152
103304
|
},
|
|
103305
|
+
{
|
|
103306
|
+
"kind": "javascript-module",
|
|
103307
|
+
"path": "src/log/parsers.ts",
|
|
103308
|
+
"declarations": [
|
|
103309
|
+
{
|
|
103310
|
+
"kind": "function",
|
|
103311
|
+
"name": "parseGitHubActions",
|
|
103312
|
+
"parameters": [
|
|
103313
|
+
{
|
|
103314
|
+
"name": "raw"
|
|
103315
|
+
}
|
|
103316
|
+
],
|
|
103317
|
+
"description": "Reads a GitHub Actions log: the workflow commands a step writes, such as\n`::group::Install` and `::error file=app.ts,line=3::Missing`, and the\n`##[group]` form and leading times of a log downloaded from a run.\n\n- `group` and `endgroup` open and close a step, which folds once it passes\n and stays open where a line in it is an error.\n- `error`, `warning`, `notice` and `debug` set the line's level, with the\n file, line, column and title in front of the message.\n- `command`, the line GitHub writes for each command a step runs, stays as\n it is.\n- `add-mask`, `set-output` and the other commands GitHub never shows are\n dropped. Text after `stop-commands` is read as commands still.\n- A leading time becomes the line's `at`, which times each step and which\n `timestamps` shows.",
|
|
103318
|
+
"type": {
|
|
103319
|
+
"text": "LogParser"
|
|
103320
|
+
}
|
|
103321
|
+
},
|
|
103322
|
+
{
|
|
103323
|
+
"kind": "function",
|
|
103324
|
+
"name": "parseVercel",
|
|
103325
|
+
"parameters": [
|
|
103326
|
+
{
|
|
103327
|
+
"name": "raw"
|
|
103328
|
+
}
|
|
103329
|
+
],
|
|
103330
|
+
"description": "Reads a Vercel build log, as the CLI prints it with `vercel inspect --logs`\nand the dashboard shows it: a time and two spaces in front of each line.\n\n- `Running \"…\"` opens a step named for what it runs, and the line is its\n first. `Build Completed in …` closes it and stands after it.\n- `Deploying outputs…` opens a step named for it, and `Deployment\n completed` closes it.\n- A line starting `Error`, `Failed` or `npm ERR!`, or holding `error:`, is\n at `error`, and one starting `Warning` or `warn` is at `warn`.\n- The leading time becomes the line's `at`, which times each step.",
|
|
103331
|
+
"type": {
|
|
103332
|
+
"text": "LogParser"
|
|
103333
|
+
}
|
|
103334
|
+
},
|
|
103335
|
+
{
|
|
103336
|
+
"kind": "variable",
|
|
103337
|
+
"name": "LOG_FORMATS",
|
|
103338
|
+
"type": {
|
|
103339
|
+
"text": "object"
|
|
103340
|
+
},
|
|
103341
|
+
"default": "{ 'github-actions': parseGitHubActions, vercel: parseVercel, }",
|
|
103342
|
+
"description": "The parsers `format` names."
|
|
103343
|
+
}
|
|
103344
|
+
],
|
|
103345
|
+
"exports": [
|
|
103346
|
+
{
|
|
103347
|
+
"kind": "js",
|
|
103348
|
+
"name": "parseGitHubActions",
|
|
103349
|
+
"declaration": {
|
|
103350
|
+
"name": "parseGitHubActions",
|
|
103351
|
+
"module": "src/log/parsers.ts"
|
|
103352
|
+
}
|
|
103353
|
+
},
|
|
103354
|
+
{
|
|
103355
|
+
"kind": "js",
|
|
103356
|
+
"name": "parseVercel",
|
|
103357
|
+
"declaration": {
|
|
103358
|
+
"name": "parseVercel",
|
|
103359
|
+
"module": "src/log/parsers.ts"
|
|
103360
|
+
}
|
|
103361
|
+
},
|
|
103362
|
+
{
|
|
103363
|
+
"kind": "js",
|
|
103364
|
+
"name": "LOG_FORMATS",
|
|
103365
|
+
"declaration": {
|
|
103366
|
+
"name": "LOG_FORMATS",
|
|
103367
|
+
"module": "src/log/parsers.ts"
|
|
103368
|
+
}
|
|
103369
|
+
}
|
|
103370
|
+
]
|
|
103371
|
+
},
|
|
103153
103372
|
{
|
|
103154
103373
|
"kind": "javascript-module",
|
|
103155
103374
|
"path": "src/log/root/log-root.ts",
|
|
103156
103375
|
"declarations": [
|
|
103157
103376
|
{
|
|
103158
103377
|
"kind": "class",
|
|
103159
|
-
"description": "A log holds lines in the order they were written and keeps the reader at\nthe newest one, until they scroll up to read. It stays where they left it\nwhile lines keep arriving, and a button returns them to the end\n(`resume-label`, \"Jump to latest\").\n\n**Lines arrive two ways.** For a log you serve whole, write `Log.Line`\nelements as children, inside `Log.Group` elements for the steps. For a log\nthat is still being written, hand it text: `write(chunk)` takes text as it\narrives, in pieces that need not end at a line break, and `source` takes a\n`ReadableStream` or an async iterable and reads it to the end. `lines` takes\nthe lines as data. Text drawn from data is drawn one window at a time, so a\nlog of a hundred thousand lines holds a screenful of elements, and the log\nneeds a block size of its own. Do not use both ways at once.\n\n**Written text is read the way a terminal shows it.** A carriage return\nstarts the line over, so a progress bar stays one line, and the line still\nbeing written is shown as it stands. ANSI colors and weights are drawn, in\nthe sixteen colors the styled tier takes from your theme, and every other\nescape code is dropped.
|
|
103378
|
+
"description": "A log holds lines in the order they were written and keeps the reader at\nthe newest one, until they scroll up to read. It stays where they left it\nwhile lines keep arriving, and a button returns them to the end\n(`resume-label`, \"Jump to latest\").\n\n**Lines arrive two ways.** For a log you serve whole, write `Log.Line`\nelements as children, inside `Log.Group` elements for the steps. For a log\nthat is still being written, hand it text: `write(chunk)` takes text as it\narrives, in pieces that need not end at a line break, and `source` takes a\n`ReadableStream` or an async iterable and reads it to the end. `lines` takes\nthe lines as data. Text drawn from data is drawn one window at a time, so a\nlog of a hundred thousand lines holds a screenful of elements, and the log\nneeds a block size of its own. Do not use both ways at once.\n\n**Written text is read the way a terminal shows it.** A carriage return\nstarts the line over, so a progress bar stays one line, and the line still\nbeing written is shown as it stands. ANSI colors and weights are drawn, in\nthe sixteen colors the styled tier takes from your theme, and every other\nescape code is dropped.\n\n**Read a CI log's own markers with `format`.** `github-actions` reads the\nworkflow commands a step writes, `::group::` and `::error::` among them,\nand the times at the start of a downloaded log. `vercel` reads a Vercel\nbuild log's phases and its warnings. Each step opens as it starts, folds\nonce it passes, stays open where it failed, and is timed from its lines.\nFor any other log, give `parse` a function that reads each finished line:\nit returns a level, a group, or `open` and `close` to start and end a step.\n\n**Steps fold.** Lines that name a group in `groups` stand under its heading,\nwhich shows its status and how long it took and opens and closes the lines.\nA group a reader opens or closes fires `helix-expand` with every open group.\n\n**Search with `query`.** The log shows only the lines that hold it, marks\neach match, opens the groups that hold one, and says how many lines match.\n\n`line-numbers` numbers the lines from the first ever written, so a number\nstill names its line once `limit` has let older lines go, and `line-href`\nmakes each number a link, such as `#L{n}`. `scrollToLine(n)` takes a reader\nto one. `timestamps` shows each line's `at`, on the clock or as the time\ninto the run. `mark-lines` marks lines, such as `12, 40-44`.\n\n**`selectable` lets a reader select lines**, as a code host does: pressing a\nnumber selects its line, and pressing another with Shift selects every line\nbetween them. `selected-lines` holds the selection, such as `12-20`, and\n`helix-select` asks before it changes. With a `line-href` that is a\nfragment, the address follows the selection, `#L12` or `#L12-L20`, and a\npage opened at one selects it and scrolls to it.\n\n**The numbers are one tab stop.** Where they are links or buttons, Tab\nreaches the one a reader last used, or the first selected, and the arrow\nkeys move between them, with Home and End for the first and the last. With\nShift on a `selectable` log, the selection follows.\n\n**What a screen reader hears.** The log is a `log` and stays quiet as lines\narrive, since reading a build aloud line by line helps nobody. A separate\nstatus region says each line at `error` once it arrives, each step once it\nfinishes or fails, and the end of the run once `done` is set or `source`\nends. Set `done` yourself when output you `write` is complete.\n\nThe log scrolls on this tier. It carries `data-scroller`, so following the\nnewest line and drawing a window work with no stylesheet. Give the log a\nblock size, such as `helix-headless-log::part(log) { block-size: 20rem }`.\n\n```js\nimport '@fusion.dev/helix/log'\n```",
|
|
103160
103379
|
"name": "HelixHeadlessLog",
|
|
103161
103380
|
"cssProperties": [
|
|
103162
103381
|
{
|
|
@@ -103345,6 +103564,10 @@
|
|
|
103345
103564
|
"description": "A run drawn underlined.",
|
|
103346
103565
|
"name": "line-run-underline"
|
|
103347
103566
|
},
|
|
103567
|
+
{
|
|
103568
|
+
"description": "The row of a line drawn from data that is selected.",
|
|
103569
|
+
"name": "line-selected"
|
|
103570
|
+
},
|
|
103348
103571
|
{
|
|
103349
103572
|
"description": "The text of a line drawn from data.",
|
|
103350
103573
|
"name": "line-text"
|
|
@@ -103533,6 +103756,15 @@
|
|
|
103533
103756
|
"words": true
|
|
103534
103757
|
}
|
|
103535
103758
|
},
|
|
103759
|
+
{
|
|
103760
|
+
"kind": "field",
|
|
103761
|
+
"name": "format",
|
|
103762
|
+
"type": {
|
|
103763
|
+
"text": "'github-actions' | 'vercel' | undefined"
|
|
103764
|
+
},
|
|
103765
|
+
"description": "The format written text is in, read with a parser Helix ships:\n`github-actions` reads a GitHub Actions log's workflow commands into steps\nand levels, and `vercel` a Vercel build log's phases and warnings. Absent\nreads none. `parse` wins over it.",
|
|
103766
|
+
"attribute": "format"
|
|
103767
|
+
},
|
|
103536
103768
|
{
|
|
103537
103769
|
"kind": "field",
|
|
103538
103770
|
"name": "groupLabel",
|
|
@@ -103645,7 +103877,7 @@
|
|
|
103645
103877
|
"type": {
|
|
103646
103878
|
"text": "LogParser | undefined"
|
|
103647
103879
|
},
|
|
103648
|
-
"description": "Reads each finished line of written text: return the fields to set, such\nas `level` or `
|
|
103880
|
+
"description": "Reads each finished line of written text: return the fields to set, such\nas `level`, `open` or `close` to start or end a step, or `null` to drop\nthe line. Lines in `lines` are taken as they are. Wins over `format`."
|
|
103649
103881
|
},
|
|
103650
103882
|
{
|
|
103651
103883
|
"kind": "field",
|
|
@@ -103679,6 +103911,26 @@
|
|
|
103679
103911
|
"words": true
|
|
103680
103912
|
}
|
|
103681
103913
|
},
|
|
103914
|
+
{
|
|
103915
|
+
"kind": "field",
|
|
103916
|
+
"name": "selectable",
|
|
103917
|
+
"type": {
|
|
103918
|
+
"text": "boolean"
|
|
103919
|
+
},
|
|
103920
|
+
"default": "false",
|
|
103921
|
+
"description": "Whether pressing a line's number selects the line, and pressing another\nwith Shift selects every line between them. Each number is then a\nbutton, or a link with `line-href`, and the arrow keys move between them.",
|
|
103922
|
+
"attribute": "selectable"
|
|
103923
|
+
},
|
|
103924
|
+
{
|
|
103925
|
+
"kind": "field",
|
|
103926
|
+
"name": "selectedLines",
|
|
103927
|
+
"type": {
|
|
103928
|
+
"text": "string"
|
|
103929
|
+
},
|
|
103930
|
+
"default": "''",
|
|
103931
|
+
"description": "The lines selected, as a number or a range such as `12-20`. Empty selects\nnone. A reader's press asks first: `helix-select` is cancelable.",
|
|
103932
|
+
"attribute": "selected-lines"
|
|
103933
|
+
},
|
|
103682
103934
|
{
|
|
103683
103935
|
"kind": "field",
|
|
103684
103936
|
"name": "source",
|
|
@@ -103726,6 +103978,54 @@
|
|
|
103726
103978
|
"privacy": "private",
|
|
103727
103979
|
"default": "undefined"
|
|
103728
103980
|
},
|
|
103981
|
+
{
|
|
103982
|
+
"kind": "field",
|
|
103983
|
+
"name": "formatValue",
|
|
103984
|
+
"type": {
|
|
103985
|
+
"text": "'github-actions' | 'vercel' | undefined"
|
|
103986
|
+
},
|
|
103987
|
+
"privacy": "private",
|
|
103988
|
+
"default": "undefined"
|
|
103989
|
+
},
|
|
103990
|
+
{
|
|
103991
|
+
"kind": "field",
|
|
103992
|
+
"name": "parseValue",
|
|
103993
|
+
"type": {
|
|
103994
|
+
"text": "LogParser | undefined"
|
|
103995
|
+
},
|
|
103996
|
+
"privacy": "private",
|
|
103997
|
+
"default": "undefined"
|
|
103998
|
+
},
|
|
103999
|
+
{
|
|
104000
|
+
"kind": "field",
|
|
104001
|
+
"name": "stop",
|
|
104002
|
+
"type": {
|
|
104003
|
+
"text": "number"
|
|
104004
|
+
},
|
|
104005
|
+
"privacy": "private",
|
|
104006
|
+
"default": "0",
|
|
104007
|
+
"description": "The number that is the log's one tab stop among its numbers, or 0 before anyone moved."
|
|
104008
|
+
},
|
|
104009
|
+
{
|
|
104010
|
+
"kind": "field",
|
|
104011
|
+
"name": "selectionAnchor",
|
|
104012
|
+
"type": {
|
|
104013
|
+
"text": "number | undefined"
|
|
104014
|
+
},
|
|
104015
|
+
"privacy": "private",
|
|
104016
|
+
"default": "undefined",
|
|
104017
|
+
"description": "The line a Shift press measures a range from."
|
|
104018
|
+
},
|
|
104019
|
+
{
|
|
104020
|
+
"kind": "field",
|
|
104021
|
+
"name": "lastGroups",
|
|
104022
|
+
"type": {
|
|
104023
|
+
"text": "readonly LogGroup[]"
|
|
104024
|
+
},
|
|
104025
|
+
"privacy": "private",
|
|
104026
|
+
"default": "[]",
|
|
104027
|
+
"description": "The steps the last update saw, which a page's `open` is compared with."
|
|
104028
|
+
},
|
|
103729
104029
|
{
|
|
103730
104030
|
"kind": "field",
|
|
103731
104031
|
"name": "doneState",
|
|
@@ -103936,6 +104236,65 @@
|
|
|
103936
104236
|
"description": "Whether the lines are data rather than children.",
|
|
103937
104237
|
"readonly": true
|
|
103938
104238
|
},
|
|
104239
|
+
{
|
|
104240
|
+
"kind": "field",
|
|
104241
|
+
"name": "formatParser",
|
|
104242
|
+
"type": {
|
|
104243
|
+
"text": "LogParser | undefined"
|
|
104244
|
+
},
|
|
104245
|
+
"privacy": "private",
|
|
104246
|
+
"description": "The parser `format` names.",
|
|
104247
|
+
"readonly": true
|
|
104248
|
+
},
|
|
104249
|
+
{
|
|
104250
|
+
"kind": "field",
|
|
104251
|
+
"name": "allGroups",
|
|
104252
|
+
"type": {
|
|
104253
|
+
"text": "readonly LogGroup[]"
|
|
104254
|
+
},
|
|
104255
|
+
"privacy": "private",
|
|
104256
|
+
"description": "The steps from `groups`, then the steps a parser opened.",
|
|
104257
|
+
"readonly": true
|
|
104258
|
+
},
|
|
104259
|
+
{
|
|
104260
|
+
"kind": "field",
|
|
104261
|
+
"name": "interactive",
|
|
104262
|
+
"type": {
|
|
104263
|
+
"text": "boolean"
|
|
104264
|
+
},
|
|
104265
|
+
"privacy": "private",
|
|
104266
|
+
"description": "Whether the numbers take focus: links with `line-href`, or buttons when `selectable`.",
|
|
104267
|
+
"readonly": true
|
|
104268
|
+
},
|
|
104269
|
+
{
|
|
104270
|
+
"kind": "field",
|
|
104271
|
+
"name": "selection",
|
|
104272
|
+
"type": {
|
|
104273
|
+
"text": "[number, number] | undefined"
|
|
104274
|
+
},
|
|
104275
|
+
"privacy": "private",
|
|
104276
|
+
"description": "The selection as its first and last line, or undefined where there is none.",
|
|
104277
|
+
"readonly": true
|
|
104278
|
+
},
|
|
104279
|
+
{
|
|
104280
|
+
"kind": "method",
|
|
104281
|
+
"name": "selected",
|
|
104282
|
+
"privacy": "private",
|
|
104283
|
+
"return": {
|
|
104284
|
+
"type": {
|
|
104285
|
+
"text": "boolean"
|
|
104286
|
+
}
|
|
104287
|
+
},
|
|
104288
|
+
"parameters": [
|
|
104289
|
+
{
|
|
104290
|
+
"name": "number",
|
|
104291
|
+
"type": {
|
|
104292
|
+
"text": "number"
|
|
104293
|
+
}
|
|
104294
|
+
}
|
|
104295
|
+
],
|
|
104296
|
+
"description": "Whether line `number` is selected."
|
|
104297
|
+
},
|
|
103939
104298
|
{
|
|
103940
104299
|
"kind": "field",
|
|
103941
104300
|
"name": "log",
|
|
@@ -104030,6 +104389,152 @@
|
|
|
104030
104389
|
"text": "scrollToLine(number: number, options: LogScrollOptions = {}) => Promise<boolean>"
|
|
104031
104390
|
}
|
|
104032
104391
|
},
|
|
104392
|
+
{
|
|
104393
|
+
"kind": "method",
|
|
104394
|
+
"name": "requestSelect",
|
|
104395
|
+
"privacy": "private",
|
|
104396
|
+
"return": {
|
|
104397
|
+
"type": {
|
|
104398
|
+
"text": "void"
|
|
104399
|
+
}
|
|
104400
|
+
},
|
|
104401
|
+
"parameters": [
|
|
104402
|
+
{
|
|
104403
|
+
"name": "value",
|
|
104404
|
+
"type": {
|
|
104405
|
+
"text": "string"
|
|
104406
|
+
}
|
|
104407
|
+
}
|
|
104408
|
+
],
|
|
104409
|
+
"description": "Asks to select `value`, a line or a range, and applies it unless refused,\nthen says so and, with a `line-href` that is a fragment such as `#L{n}`,\nputs the selection in the address."
|
|
104410
|
+
},
|
|
104411
|
+
{
|
|
104412
|
+
"kind": "method",
|
|
104413
|
+
"name": "address",
|
|
104414
|
+
"privacy": "private",
|
|
104415
|
+
"return": {
|
|
104416
|
+
"type": {
|
|
104417
|
+
"text": "string | undefined"
|
|
104418
|
+
}
|
|
104419
|
+
},
|
|
104420
|
+
"parameters": [
|
|
104421
|
+
{
|
|
104422
|
+
"name": "value",
|
|
104423
|
+
"type": {
|
|
104424
|
+
"text": "string"
|
|
104425
|
+
}
|
|
104426
|
+
}
|
|
104427
|
+
],
|
|
104428
|
+
"description": "What the address holds for a selection, as `line-href` spells a line:\n`#L12`, and `#L12-L20` for a range. Undefined where `line-href` is not a\nfragment, since a link elsewhere is the page's to follow."
|
|
104429
|
+
},
|
|
104430
|
+
{
|
|
104431
|
+
"kind": "method",
|
|
104432
|
+
"name": "writeAddress",
|
|
104433
|
+
"privacy": "private",
|
|
104434
|
+
"return": {
|
|
104435
|
+
"type": {
|
|
104436
|
+
"text": "void"
|
|
104437
|
+
}
|
|
104438
|
+
},
|
|
104439
|
+
"parameters": [
|
|
104440
|
+
{
|
|
104441
|
+
"name": "value",
|
|
104442
|
+
"type": {
|
|
104443
|
+
"text": "string"
|
|
104444
|
+
}
|
|
104445
|
+
}
|
|
104446
|
+
],
|
|
104447
|
+
"description": "Puts a selection in the address without a new history entry, so the back\nbutton leaves the page rather than walking through every line pressed."
|
|
104448
|
+
},
|
|
104449
|
+
{
|
|
104450
|
+
"kind": "field",
|
|
104451
|
+
"name": "readAddress",
|
|
104452
|
+
"privacy": "private",
|
|
104453
|
+
"readonly": true,
|
|
104454
|
+
"description": "Reads a line or a range out of the address, as `line-href` spells one,\nselects it where the log is `selectable`, and scrolls to it."
|
|
104455
|
+
},
|
|
104456
|
+
{
|
|
104457
|
+
"kind": "method",
|
|
104458
|
+
"name": "reachable",
|
|
104459
|
+
"privacy": "private",
|
|
104460
|
+
"return": {
|
|
104461
|
+
"type": {
|
|
104462
|
+
"text": "number[]"
|
|
104463
|
+
}
|
|
104464
|
+
},
|
|
104465
|
+
"description": "The numbers of the lines a reader can move between, in order: what is\ndrawn from data, or the lines written as children that no query hides\nand no shut group folds away."
|
|
104466
|
+
},
|
|
104467
|
+
{
|
|
104468
|
+
"kind": "method",
|
|
104469
|
+
"name": "stopAmong",
|
|
104470
|
+
"privacy": "private",
|
|
104471
|
+
"return": {
|
|
104472
|
+
"type": {
|
|
104473
|
+
"text": "number"
|
|
104474
|
+
}
|
|
104475
|
+
},
|
|
104476
|
+
"parameters": [
|
|
104477
|
+
{
|
|
104478
|
+
"name": "numbers",
|
|
104479
|
+
"type": {
|
|
104480
|
+
"text": "readonly number[]"
|
|
104481
|
+
}
|
|
104482
|
+
}
|
|
104483
|
+
],
|
|
104484
|
+
"description": "The number that is the tab stop among `numbers`: the one a reader last\nmoved to, else the first selected, else the first."
|
|
104485
|
+
},
|
|
104486
|
+
{
|
|
104487
|
+
"kind": "method",
|
|
104488
|
+
"name": "focusLine",
|
|
104489
|
+
"privacy": "private",
|
|
104490
|
+
"return": {
|
|
104491
|
+
"type": {
|
|
104492
|
+
"text": "Promise<void>"
|
|
104493
|
+
}
|
|
104494
|
+
},
|
|
104495
|
+
"parameters": [
|
|
104496
|
+
{
|
|
104497
|
+
"name": "number",
|
|
104498
|
+
"type": {
|
|
104499
|
+
"text": "number"
|
|
104500
|
+
}
|
|
104501
|
+
}
|
|
104502
|
+
],
|
|
104503
|
+
"description": "Moves focus to line `number`'s number, drawing it first where it is windowed."
|
|
104504
|
+
},
|
|
104505
|
+
{
|
|
104506
|
+
"kind": "method",
|
|
104507
|
+
"name": "numberFrom",
|
|
104508
|
+
"privacy": "private",
|
|
104509
|
+
"return": {
|
|
104510
|
+
"type": {
|
|
104511
|
+
"text": "number | undefined"
|
|
104512
|
+
}
|
|
104513
|
+
},
|
|
104514
|
+
"parameters": [
|
|
104515
|
+
{
|
|
104516
|
+
"name": "path",
|
|
104517
|
+
"type": {
|
|
104518
|
+
"text": "readonly EventTarget[]"
|
|
104519
|
+
}
|
|
104520
|
+
}
|
|
104521
|
+
],
|
|
104522
|
+
"description": "The line a number belongs to, out of an event's path, and its number."
|
|
104523
|
+
},
|
|
104524
|
+
{
|
|
104525
|
+
"kind": "field",
|
|
104526
|
+
"name": "handleClick",
|
|
104527
|
+
"privacy": "private",
|
|
104528
|
+
"readonly": true,
|
|
104529
|
+
"description": "A press on a number selects its line, or with Shift every line from the\nlast one pressed. A link's own navigation is held back while it selects,\nsince the selection writes the address itself."
|
|
104530
|
+
},
|
|
104531
|
+
{
|
|
104532
|
+
"kind": "field",
|
|
104533
|
+
"name": "handleNumberKey",
|
|
104534
|
+
"privacy": "private",
|
|
104535
|
+
"readonly": true,
|
|
104536
|
+
"description": "The arrow keys move between numbers, and Home and End go to the first and\nthe last, from a number with focus. With Shift on a `selectable` log, the\nselection follows."
|
|
104537
|
+
},
|
|
104033
104538
|
{
|
|
104034
104539
|
"kind": "method",
|
|
104035
104540
|
"name": "isOpen",
|
|
@@ -104253,6 +104758,12 @@
|
|
|
104253
104758
|
"type": {
|
|
104254
104759
|
"text": "number | undefined"
|
|
104255
104760
|
}
|
|
104761
|
+
},
|
|
104762
|
+
{
|
|
104763
|
+
"name": "stop",
|
|
104764
|
+
"type": {
|
|
104765
|
+
"text": "number"
|
|
104766
|
+
}
|
|
104256
104767
|
}
|
|
104257
104768
|
],
|
|
104258
104769
|
"description": "One row drawn from data: a line, or a group's heading."
|
|
@@ -104843,7 +105354,7 @@
|
|
|
104843
105354
|
"type": {
|
|
104844
105355
|
"text": "HelixExpandEvent"
|
|
104845
105356
|
},
|
|
104846
|
-
"description": "Fired after a reader opens or closes a
|
|
105357
|
+
"description": "Fired after a reader opens or closes a step drawn from `groups` or opened by a parser, with the `id` of every open group in `detail.value`, separated by commas.",
|
|
104847
105358
|
"name": "helix-expand",
|
|
104848
105359
|
"reactProp": "onhelix-expand"
|
|
104849
105360
|
},
|
|
@@ -104854,6 +105365,22 @@
|
|
|
104854
105365
|
"description": "Fired after the log follows the newest line or lets go of it, with `true` or `false` in `detail.value`.",
|
|
104855
105366
|
"name": "helix-pin",
|
|
104856
105367
|
"reactProp": "onhelix-pin"
|
|
105368
|
+
},
|
|
105369
|
+
{
|
|
105370
|
+
"type": {
|
|
105371
|
+
"text": "HelixSelectEvent"
|
|
105372
|
+
},
|
|
105373
|
+
"description": "Fired when a reader presses a number to change the selection, with the lines asked for in `detail.value`. Cancelable.",
|
|
105374
|
+
"name": "helix-select",
|
|
105375
|
+
"reactProp": "onhelix-select"
|
|
105376
|
+
},
|
|
105377
|
+
{
|
|
105378
|
+
"type": {
|
|
105379
|
+
"text": "HelixSelectedEvent"
|
|
105380
|
+
},
|
|
105381
|
+
"description": "Fired after the selection changes, with the lines now selected in `detail.value`, such as `12-20`.",
|
|
105382
|
+
"name": "helix-selected",
|
|
105383
|
+
"reactProp": "onhelix-selected"
|
|
104857
105384
|
}
|
|
104858
105385
|
],
|
|
104859
105386
|
"attributes": [
|
|
@@ -104923,6 +105450,14 @@
|
|
|
104923
105450
|
"description": "The log's name, read by screen readers, where `label` is empty.",
|
|
104924
105451
|
"fieldName": "fallbackLabel"
|
|
104925
105452
|
},
|
|
105453
|
+
{
|
|
105454
|
+
"name": "format",
|
|
105455
|
+
"type": {
|
|
105456
|
+
"text": "'github-actions' | 'vercel' | undefined"
|
|
105457
|
+
},
|
|
105458
|
+
"description": "The format written text is in, read with a parser Helix ships:\n`github-actions` reads a GitHub Actions log's workflow commands into steps\nand levels, and `vercel` a Vercel build log's phases and warnings. Absent\nreads none. `parse` wins over it.",
|
|
105459
|
+
"fieldName": "format"
|
|
105460
|
+
},
|
|
104926
105461
|
{
|
|
104927
105462
|
"name": "group-label",
|
|
104928
105463
|
"type": {
|
|
@@ -105021,6 +105556,24 @@
|
|
|
105021
105556
|
"description": "The words on the button that returns to the newest line, where `resume` is empty.",
|
|
105022
105557
|
"fieldName": "resumeLabel"
|
|
105023
105558
|
},
|
|
105559
|
+
{
|
|
105560
|
+
"name": "selectable",
|
|
105561
|
+
"type": {
|
|
105562
|
+
"text": "boolean"
|
|
105563
|
+
},
|
|
105564
|
+
"default": "false",
|
|
105565
|
+
"description": "Whether pressing a line's number selects the line, and pressing another\nwith Shift selects every line between them. Each number is then a\nbutton, or a link with `line-href`, and the arrow keys move between them.",
|
|
105566
|
+
"fieldName": "selectable"
|
|
105567
|
+
},
|
|
105568
|
+
{
|
|
105569
|
+
"name": "selected-lines",
|
|
105570
|
+
"type": {
|
|
105571
|
+
"text": "string"
|
|
105572
|
+
},
|
|
105573
|
+
"default": "''",
|
|
105574
|
+
"description": "The lines selected, as a number or a range such as `12-20`. Empty selects\nnone. A reader's press asks first: `helix-select` is cancelable.",
|
|
105575
|
+
"fieldName": "selectedLines"
|
|
105576
|
+
},
|
|
105024
105577
|
{
|
|
105025
105578
|
"name": "threshold",
|
|
105026
105579
|
"type": {
|
|
@@ -219293,6 +219846,6 @@
|
|
|
219293
219846
|
],
|
|
219294
219847
|
"helix": {
|
|
219295
219848
|
"package": "@fusion.dev/helix-headless",
|
|
219296
|
-
"version": "0.
|
|
219849
|
+
"version": "0.204.0"
|
|
219297
219850
|
}
|
|
219298
219851
|
}
|