@fusion.dev/helix 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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@fusion.dev/helix",
3
3
  "description": "Styled component tier. Extends the headless tier with token-driven presentation.",
4
- "version": "0.203.0",
4
+ "version": "0.204.0",
5
5
  "license": "MIT",
6
6
  "author": "Ross Sheppard <ross.sheppard@fusion.dev>",
7
7
  "repository": {
@@ -60,14 +60,14 @@
60
60
  },
61
61
  "bugs": "https://github.com/project-fusion/fusion/issues",
62
62
  "dependencies": {
63
- "@fusion.dev/helix-core": "0.203.0",
64
- "@fusion.dev/helix-headless": "0.203.0",
65
- "@fusion.dev/helix-styles": "0.203.0",
63
+ "@fusion.dev/helix-core": "0.204.0",
64
+ "@fusion.dev/helix-headless": "0.204.0",
65
+ "@fusion.dev/helix-styles": "0.204.0",
66
66
  "tslib": "^2.8.1"
67
67
  },
68
68
  "devDependencies": {
69
- "@fusion.dev/helix-cem": "0.203.0",
70
- "@fusion.dev/helix-testing": "0.203.0",
69
+ "@fusion.dev/helix-cem": "0.204.0",
70
+ "@fusion.dev/helix-testing": "0.204.0",
71
71
  "@fusion.dev/scripts": "0.0.0-dev",
72
72
  "@happy-dom/global-registrator": "^20.14.5",
73
73
  "@lit-labs/ssr": "^4.1.0",
@@ -2,12 +2,12 @@
2
2
  name: helix
3
3
  description: Writes and checks pages built with Helix, the web components in @fusion.dev/helix. Use when building or reviewing any user interface in a project that installs @fusion.dev/helix, and when code has helix- elements, Helix tokens, or the helix command line.
4
4
  metadata:
5
- version: "0.203.0"
5
+ version: "0.204.0"
6
6
  ---
7
7
 
8
8
  # Helix
9
9
 
10
- This guide is for @fusion.dev/helix 0.203.0, the version installed beside it.
10
+ This guide is for @fusion.dev/helix 0.204.0, the version installed beside it.
11
11
 
12
12
  ## Using Helix with an agent
13
13
 
package/types/jsx.d.ts CHANGED
@@ -22510,6 +22510,12 @@ export type HelixLogHelixExpandElementEvent =
22510
22510
  HelixLogElementEvent<HelixExpandEvent>;
22511
22511
  /** `helix-pin` event type */
22512
22512
  export type HelixLogHelixPinElementEvent = HelixLogElementEvent<HelixPinEvent>;
22513
+ /** `helix-select` event type */
22514
+ export type HelixLogHelixSelectElementEvent =
22515
+ HelixLogElementEvent<HelixSelectEvent>;
22516
+ /** `helix-selected` event type */
22517
+ export type HelixLogHelixSelectedElementEvent =
22518
+ HelixLogElementEvent<HelixSelectedEvent>;
22513
22519
 
22514
22520
  export type HelixLogProps = {
22515
22521
  /** The text shown and announced when there are no rows and none are loading. */
@@ -22555,6 +22561,11 @@ many arrived together and `{text}` is the first of them. */
22555
22561
  "fallback-label"?: (HelixLog["fallbackLabel"]) | undefined;
22556
22562
  /** The log's name, read by screen readers, where `label` is empty. */
22557
22563
  fallbackLabel?: (HelixLog["fallbackLabel"]) | undefined;
22564
+ /** The format written text is in, read with a parser Helix ships:
22565
+ `github-actions` reads a GitHub Actions log's workflow commands into steps
22566
+ and levels, and `vercel` a Vercel build log's phases and warnings. Absent
22567
+ reads none. `parse` wins over it. */
22568
+ format?: (HelixLog["format"]) | undefined;
22558
22569
  /** What a screen reader hears when a step finishes or fails. `{heading}` is
22559
22570
  the step's heading and `{status}` is `done` or `failed`. */
22560
22571
  "group-label"?: (HelixLog["groupLabel"]) | undefined;
@@ -22603,6 +22614,16 @@ true would write the attribute on upgrade. */
22603
22614
  "resume-label"?: (HelixLog["resumeLabel"]) | undefined;
22604
22615
  /** The words on the button that returns to the newest line, where `resume` is empty. */
22605
22616
  resumeLabel?: (HelixLog["resumeLabel"]) | undefined;
22617
+ /** Whether pressing a line's number selects the line, and pressing another
22618
+ with Shift selects every line between them. Each number is then a
22619
+ button, or a link with `line-href`, and the arrow keys move between them. */
22620
+ selectable?: (HelixLog["selectable"]) | undefined;
22621
+ /** The lines selected, as a number or a range such as `12-20`. Empty selects
22622
+ none. A reader's press asks first: `helix-select` is cancelable. */
22623
+ "selected-lines"?: (HelixLog["selectedLines"]) | undefined;
22624
+ /** The lines selected, as a number or a range such as `12-20`. Empty selects
22625
+ none. A reader's press asks first: `helix-select` is cancelable. */
22626
+ selectedLines?: (HelixLog["selectedLines"]) | undefined;
22606
22627
  /** How near the newest line still counts as being at it, in pixels. */
22607
22628
  threshold?: (HelixLog["threshold"]) | undefined;
22608
22629
  /** How each line shows its `at`: `absolute` on the clock, `relative` as the
@@ -22623,8 +22644,8 @@ Replaced rather than mutated: setting it starts the log over with these
22623
22644
  lines, and `write` adds to them. Set it or write children, not both. */
22624
22645
  lines?: (HelixLog["lines"]) | undefined;
22625
22646
  /** Reads each finished line of written text: return the fields to set, such
22626
- as `level` or `group`, or `null` to drop the line. Lines in `lines` are
22627
- taken as they are. */
22647
+ as `level`, `open` or `close` to start or end a step, or `null` to drop
22648
+ the line. Lines in `lines` are taken as they are. Wins over `format`. */
22628
22649
  parse?: (HelixLog["parse"]) | undefined;
22629
22650
  /** Text to read as it arrives, to the end: a `ReadableStream` of text or
22630
22651
  bytes, such as a `fetch` response's body, or an async iterable. Bytes are
@@ -22634,10 +22655,14 @@ reading the last one. */
22634
22655
 
22635
22656
  /** Fired when the reader leaves the newest line by scrolling, or comes back to it. Cancelable. */
22636
22657
  "onhelix-before-pin"?: ((e: HelixLogHelixBeforePinElementEvent) => void) | undefined;
22637
- /** Fired after a reader opens or closes a group drawn from `groups`, with the `id` of every open group in `detail.value`, separated by commas. */
22658
+ /** 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. */
22638
22659
  "onhelix-expand"?: ((e: HelixLogHelixExpandElementEvent) => void) | undefined;
22639
22660
  /** Fired after the log follows the newest line or lets go of it, with `true` or `false` in `detail.value`. */
22640
22661
  "onhelix-pin"?: ((e: HelixLogHelixPinElementEvent) => void) | undefined;
22662
+ /** Fired when a reader presses a number to change the selection, with the lines asked for in `detail.value`. Cancelable. */
22663
+ "onhelix-select"?: ((e: HelixLogHelixSelectElementEvent) => void) | undefined;
22664
+ /** Fired after the selection changes, with the lines now selected in `detail.value`, such as `12-20`. */
22665
+ "onhelix-selected"?: ((e: HelixLogHelixSelectedElementEvent) => void) | undefined;
22641
22666
  };
22642
22667
 
22643
22668
  export type HelixLogSolidJsProps = {
@@ -22684,6 +22709,11 @@ many arrived together and `{text}` is the first of them. */
22684
22709
  "attr:fallback-label"?: (HelixLog["fallbackLabel"]) | undefined;
22685
22710
  /** The log's name, read by screen readers, where `label` is empty. */
22686
22711
  "prop:fallbackLabel"?: (HelixLog["fallbackLabel"]) | undefined;
22712
+ /** The format written text is in, read with a parser Helix ships:
22713
+ `github-actions` reads a GitHub Actions log's workflow commands into steps
22714
+ and levels, and `vercel` a Vercel build log's phases and warnings. Absent
22715
+ reads none. `parse` wins over it. */
22716
+ "prop:format"?: (HelixLog["format"]) | undefined;
22687
22717
  /** What a screen reader hears when a step finishes or fails. `{heading}` is
22688
22718
  the step's heading and `{status}` is `done` or `failed`. */
22689
22719
  "attr:group-label"?: (HelixLog["groupLabel"]) | undefined;
@@ -22732,6 +22762,16 @@ true would write the attribute on upgrade. */
22732
22762
  "attr:resume-label"?: (HelixLog["resumeLabel"]) | undefined;
22733
22763
  /** The words on the button that returns to the newest line, where `resume` is empty. */
22734
22764
  "prop:resumeLabel"?: (HelixLog["resumeLabel"]) | undefined;
22765
+ /** Whether pressing a line's number selects the line, and pressing another
22766
+ with Shift selects every line between them. Each number is then a
22767
+ button, or a link with `line-href`, and the arrow keys move between them. */
22768
+ "prop:selectable"?: (HelixLog["selectable"]) | undefined;
22769
+ /** The lines selected, as a number or a range such as `12-20`. Empty selects
22770
+ none. A reader's press asks first: `helix-select` is cancelable. */
22771
+ "attr:selected-lines"?: (HelixLog["selectedLines"]) | undefined;
22772
+ /** The lines selected, as a number or a range such as `12-20`. Empty selects
22773
+ none. A reader's press asks first: `helix-select` is cancelable. */
22774
+ "prop:selectedLines"?: (HelixLog["selectedLines"]) | undefined;
22735
22775
  /** How near the newest line still counts as being at it, in pixels. */
22736
22776
  "prop:threshold"?: (HelixLog["threshold"]) | undefined;
22737
22777
  /** How each line shows its `at`: `absolute` on the clock, `relative` as the
@@ -22752,8 +22792,8 @@ Replaced rather than mutated: setting it starts the log over with these
22752
22792
  lines, and `write` adds to them. Set it or write children, not both. */
22753
22793
  "prop:lines"?: (HelixLog["lines"]) | undefined;
22754
22794
  /** Reads each finished line of written text: return the fields to set, such
22755
- as `level` or `group`, or `null` to drop the line. Lines in `lines` are
22756
- taken as they are. */
22795
+ as `level`, `open` or `close` to start or end a step, or `null` to drop
22796
+ the line. Lines in `lines` are taken as they are. Wins over `format`. */
22757
22797
  "prop:parse"?: (HelixLog["parse"]) | undefined;
22758
22798
  /** Text to read as it arrives, to the end: a `ReadableStream` of text or
22759
22799
  bytes, such as a `fetch` response's body, or an async iterable. Bytes are
@@ -22762,10 +22802,14 @@ reading the last one. */
22762
22802
  "prop:source"?: (HelixLog["source"]) | undefined;
22763
22803
  /** Fired when the reader leaves the newest line by scrolling, or comes back to it. Cancelable. */
22764
22804
  "on:helix-before-pin"?: ((e: HelixLogHelixBeforePinElementEvent) => void) | undefined;
22765
- /** Fired after a reader opens or closes a group drawn from `groups`, with the `id` of every open group in `detail.value`, separated by commas. */
22805
+ /** 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. */
22766
22806
  "on:helix-expand"?: ((e: HelixLogHelixExpandElementEvent) => void) | undefined;
22767
22807
  /** Fired after the log follows the newest line or lets go of it, with `true` or `false` in `detail.value`. */
22768
22808
  "on:helix-pin"?: ((e: HelixLogHelixPinElementEvent) => void) | undefined;
22809
+ /** Fired when a reader presses a number to change the selection, with the lines asked for in `detail.value`. Cancelable. */
22810
+ "on:helix-select"?: ((e: HelixLogHelixSelectElementEvent) => void) | undefined;
22811
+ /** Fired after the selection changes, with the lines now selected in `detail.value`, such as `12-20`. */
22812
+ "on:helix-selected"?: ((e: HelixLogHelixSelectedElementEvent) => void) | undefined;
22769
22813
 
22770
22814
  /** Set the innerHTML of the element */
22771
22815
  innerHTML?: (string) | undefined;
@@ -59773,6 +59817,7 @@ export type CustomElements = {
59773
59817
  * - `--log-error-color`: The color of a line at `error`, and of the band behind it. Defaults to the danger color.
59774
59818
  * - `--log-mark-background-color`: The band behind a line `mark-lines` names.
59775
59819
  * - `--log-match-background-color`: The fill behind text that matches the log's `query`.
59820
+ * - `--log-selected-background-color`: The band behind a selected line, on a `selectable` log.
59776
59821
  * - `--log-warn-color`: The color of a line at `warn`, and of the band behind it. Defaults to the warning color.
59777
59822
  * - `--log-run-background-color`: Written on a `run` with a background, in the same form as `--log-run-color`.
59778
59823
  * - `--log-run-color`: Written on a `run` with a text color: one of the sixteen `--log-ansi-*` colors the log publishes, or the color itself.
@@ -59785,9 +59830,10 @@ export type CustomElements = {
59785
59830
  * - `line-debug`: The row of a line at `debug`.
59786
59831
  * - `line-error`: The row of a line at `error`.
59787
59832
  * - `line-marked`: The row of a line `mark-lines` names on the log.
59833
+ * - `line-selected`: The row of a line in the log's selection.
59788
59834
  * - `line-warn`: The row of a line at `warn`.
59789
59835
  * - `match`: Text that matches the log's `query`, in a line the log draws from data.
59790
- * - `number`: The line's number, shown with `line-numbers`, and a link with `line-href`.
59836
+ * - `number`: The line's number, shown with `line-numbers`: a link with `line-href`, and a button on a `selectable` log.
59791
59837
  * - `run`: A stretch of text drawn in an ANSI style, in a line the log draws from data. Its color is `--log-run-color` and its background `--log-run-background-color`.
59792
59838
  * - `run-bold`: A run drawn bold.
59793
59839
  * - `run-dim`: A run drawn faint.
@@ -59844,6 +59890,10 @@ export type CustomElements = {
59844
59890
  * - `error-label`/`errorLabel`: What a screen reader hears when lines at `error` arrive. `{count}` is how
59845
59891
  * many arrived together and `{text}` is the first of them.
59846
59892
  * - `fallback-label`/`fallbackLabel`: The log's name, read by screen readers, where `label` is empty.
59893
+ * - `format`: The format written text is in, read with a parser Helix ships:
59894
+ * `github-actions` reads a GitHub Actions log's workflow commands into steps
59895
+ * and levels, and `vercel` a Vercel build log's phases and warnings. Absent
59896
+ * reads none. `parse` wins over it.
59847
59897
  * - `group-label`/`groupLabel`: What a screen reader hears when a step finishes or fails. `{heading}` is
59848
59898
  * the step's heading and `{status}` is `done` or `failed`.
59849
59899
  * - `label`: The log's name, read by screen readers.
@@ -59864,6 +59914,11 @@ export type CustomElements = {
59864
59914
  * true would write the attribute on upgrade.
59865
59915
  * - `query`: Text a line has to hold to be shown, ignoring case. Empty shows every line.
59866
59916
  * - `resume-label`/`resumeLabel`: The words on the button that returns to the newest line, where `resume` is empty.
59917
+ * - `selectable`: Whether pressing a line's number selects the line, and pressing another
59918
+ * with Shift selects every line between them. Each number is then a
59919
+ * button, or a link with `line-href`, and the arrow keys move between them.
59920
+ * - `selected-lines`/`selectedLines`: The lines selected, as a number or a range such as `12-20`. Empty selects
59921
+ * none. A reader's press asks first: `helix-select` is cancelable.
59867
59922
  * - `threshold`: How near the newest line still counts as being at it, in pixels.
59868
59923
  * - `timestamps`: How each line shows its `at`: `absolute` on the clock, `relative` as the
59869
59924
  * time since the first line. Absent shows no time.
@@ -59879,8 +59934,8 @@ export type CustomElements = {
59879
59934
  * Replaced rather than mutated: setting it starts the log over with these
59880
59935
  * lines, and `write` adds to them. Set it or write children, not both. (property only)
59881
59936
  * - `parse`: Reads each finished line of written text: return the fields to set, such
59882
- * as `level` or `group`, or `null` to drop the line. Lines in `lines` are
59883
- * taken as they are. (property only)
59937
+ * as `level`, `open` or `close` to start or end a step, or `null` to drop
59938
+ * the line. Lines in `lines` are taken as they are. Wins over `format`. (property only)
59884
59939
  * - `source`: Text to read as it arrives, to the end: a `ReadableStream` of text or
59885
59940
  * bytes, such as a `fetch` response's body, or an async iterable. Bytes are
59886
59941
  * read as UTF-8. The log sets `done` when it ends, and a new source stops
@@ -59913,8 +59968,10 @@ export type CustomElements = {
59913
59968
  * Events that will be emitted by the component.
59914
59969
  *
59915
59970
  * - `helix-before-pin`: Fired when the reader leaves the newest line by scrolling, or comes back to it. Cancelable.
59916
- * - `helix-expand`: Fired after a reader opens or closes a group drawn from `groups`, with the `id` of every open group in `detail.value`, separated by commas.
59971
+ * - `helix-expand`: 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.
59917
59972
  * - `helix-pin`: Fired after the log follows the newest line or lets go of it, with `true` or `false` in `detail.value`.
59973
+ * - `helix-select`: Fired when a reader presses a number to change the selection, with the lines asked for in `detail.value`. Cancelable.
59974
+ * - `helix-selected`: Fired after the selection changes, with the lines now selected in `detail.value`, such as `12-20`.
59918
59975
  *
59919
59976
  * ## Slots
59920
59977
  *
@@ -60004,6 +60061,7 @@ export type CustomElements = {
60004
60061
  * - `line-run-italic`: A run drawn italic.
60005
60062
  * - `line-run-strike`: A run drawn struck through.
60006
60063
  * - `line-run-underline`: A run drawn underlined.
60064
+ * - `line-selected`: The row of a line drawn from data that is selected.
60007
60065
  * - `line-text`: The text of a line drawn from data.
60008
60066
  * - `line-time`: The time of a line drawn from data.
60009
60067
  * - `line-warn`: The row of a line drawn from data at `warn`.
@@ -91925,6 +91983,7 @@ export type CustomElementsSolidJs = {
91925
91983
  * - `--log-error-color`: The color of a line at `error`, and of the band behind it. Defaults to the danger color.
91926
91984
  * - `--log-mark-background-color`: The band behind a line `mark-lines` names.
91927
91985
  * - `--log-match-background-color`: The fill behind text that matches the log's `query`.
91986
+ * - `--log-selected-background-color`: The band behind a selected line, on a `selectable` log.
91928
91987
  * - `--log-warn-color`: The color of a line at `warn`, and of the band behind it. Defaults to the warning color.
91929
91988
  * - `--log-run-background-color`: Written on a `run` with a background, in the same form as `--log-run-color`.
91930
91989
  * - `--log-run-color`: Written on a `run` with a text color: one of the sixteen `--log-ansi-*` colors the log publishes, or the color itself.
@@ -91937,9 +91996,10 @@ export type CustomElementsSolidJs = {
91937
91996
  * - `line-debug`: The row of a line at `debug`.
91938
91997
  * - `line-error`: The row of a line at `error`.
91939
91998
  * - `line-marked`: The row of a line `mark-lines` names on the log.
91999
+ * - `line-selected`: The row of a line in the log's selection.
91940
92000
  * - `line-warn`: The row of a line at `warn`.
91941
92001
  * - `match`: Text that matches the log's `query`, in a line the log draws from data.
91942
- * - `number`: The line's number, shown with `line-numbers`, and a link with `line-href`.
92002
+ * - `number`: The line's number, shown with `line-numbers`: a link with `line-href`, and a button on a `selectable` log.
91943
92003
  * - `run`: A stretch of text drawn in an ANSI style, in a line the log draws from data. Its color is `--log-run-color` and its background `--log-run-background-color`.
91944
92004
  * - `run-bold`: A run drawn bold.
91945
92005
  * - `run-dim`: A run drawn faint.
@@ -91999,6 +92059,10 @@ export type CustomElementsSolidJs = {
91999
92059
  * - `error-label`/`errorLabel`: What a screen reader hears when lines at `error` arrive. `{count}` is how
92000
92060
  * many arrived together and `{text}` is the first of them.
92001
92061
  * - `fallback-label`/`fallbackLabel`: The log's name, read by screen readers, where `label` is empty.
92062
+ * - `format`: The format written text is in, read with a parser Helix ships:
92063
+ * `github-actions` reads a GitHub Actions log's workflow commands into steps
92064
+ * and levels, and `vercel` a Vercel build log's phases and warnings. Absent
92065
+ * reads none. `parse` wins over it.
92002
92066
  * - `group-label`/`groupLabel`: What a screen reader hears when a step finishes or fails. `{heading}` is
92003
92067
  * the step's heading and `{status}` is `done` or `failed`.
92004
92068
  * - `label`: The log's name, read by screen readers.
@@ -92019,6 +92083,11 @@ export type CustomElementsSolidJs = {
92019
92083
  * true would write the attribute on upgrade.
92020
92084
  * - `query`: Text a line has to hold to be shown, ignoring case. Empty shows every line.
92021
92085
  * - `resume-label`/`resumeLabel`: The words on the button that returns to the newest line, where `resume` is empty.
92086
+ * - `selectable`: Whether pressing a line's number selects the line, and pressing another
92087
+ * with Shift selects every line between them. Each number is then a
92088
+ * button, or a link with `line-href`, and the arrow keys move between them.
92089
+ * - `selected-lines`/`selectedLines`: The lines selected, as a number or a range such as `12-20`. Empty selects
92090
+ * none. A reader's press asks first: `helix-select` is cancelable.
92022
92091
  * - `threshold`: How near the newest line still counts as being at it, in pixels.
92023
92092
  * - `timestamps`: How each line shows its `at`: `absolute` on the clock, `relative` as the
92024
92093
  * time since the first line. Absent shows no time.
@@ -92034,8 +92103,8 @@ export type CustomElementsSolidJs = {
92034
92103
  * Replaced rather than mutated: setting it starts the log over with these
92035
92104
  * lines, and `write` adds to them. Set it or write children, not both. (property only)
92036
92105
  * - `parse`: Reads each finished line of written text: return the fields to set, such
92037
- * as `level` or `group`, or `null` to drop the line. Lines in `lines` are
92038
- * taken as they are. (property only)
92106
+ * as `level`, `open` or `close` to start or end a step, or `null` to drop
92107
+ * the line. Lines in `lines` are taken as they are. Wins over `format`. (property only)
92039
92108
  * - `source`: Text to read as it arrives, to the end: a `ReadableStream` of text or
92040
92109
  * bytes, such as a `fetch` response's body, or an async iterable. Bytes are
92041
92110
  * read as UTF-8. The log sets `done` when it ends, and a new source stops
@@ -92068,8 +92137,10 @@ export type CustomElementsSolidJs = {
92068
92137
  * Events that will be emitted by the component.
92069
92138
  *
92070
92139
  * - `helix-before-pin`: Fired when the reader leaves the newest line by scrolling, or comes back to it. Cancelable.
92071
- * - `helix-expand`: Fired after a reader opens or closes a group drawn from `groups`, with the `id` of every open group in `detail.value`, separated by commas.
92140
+ * - `helix-expand`: 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.
92072
92141
  * - `helix-pin`: Fired after the log follows the newest line or lets go of it, with `true` or `false` in `detail.value`.
92142
+ * - `helix-select`: Fired when a reader presses a number to change the selection, with the lines asked for in `detail.value`. Cancelable.
92143
+ * - `helix-selected`: Fired after the selection changes, with the lines now selected in `detail.value`, such as `12-20`.
92073
92144
  *
92074
92145
  * ## Slots
92075
92146
  *
@@ -92159,6 +92230,7 @@ export type CustomElementsSolidJs = {
92159
92230
  * - `line-run-italic`: A run drawn italic.
92160
92231
  * - `line-run-strike`: A run drawn struck through.
92161
92232
  * - `line-run-underline`: A run drawn underlined.
92233
+ * - `line-selected`: The row of a line drawn from data that is selected.
92162
92234
  * - `line-text`: The text of a line drawn from data.
92163
92235
  * - `line-time`: The time of a line drawn from data.
92164
92236
  * - `line-warn`: The row of a line drawn from data at `warn`.
@@ -110627,6 +110699,8 @@ export type CustomCssProperties = {
110627
110699
  "--log-mark-background-color"?: (string) | undefined;
110628
110700
  /** The fill behind text that matches the log's `query`. */
110629
110701
  "--log-match-background-color"?: (string) | undefined;
110702
+ /** The band behind a selected line, on a `selectable` log. */
110703
+ "--log-selected-background-color"?: (string) | undefined;
110630
110704
  /** The color of a line at `warn`, and of the band behind it. Defaults to the warning color. */
110631
110705
  "--log-warn-color"?: (string) | undefined;
110632
110706
  /** Written on a `run` with a background, in the same form as `--log-run-color`. */
package/types/vue.d.ts CHANGED
@@ -11532,6 +11532,12 @@ export type HelixLogHelixExpandElementEvent =
11532
11532
  HelixLogElementEvent<HelixExpandEvent>;
11533
11533
  /** `helix-pin` event type */
11534
11534
  export type HelixLogHelixPinElementEvent = HelixLogElementEvent<HelixPinEvent>;
11535
+ /** `helix-select` event type */
11536
+ export type HelixLogHelixSelectElementEvent =
11537
+ HelixLogElementEvent<HelixSelectEvent>;
11538
+ /** `helix-selected` event type */
11539
+ export type HelixLogHelixSelectedElementEvent =
11540
+ HelixLogElementEvent<HelixSelectedEvent>;
11535
11541
 
11536
11542
  export type HelixLogVueProps = {
11537
11543
  /** The text shown and announced when there are no rows and none are loading. */
@@ -11577,6 +11583,11 @@ many arrived together and `{text}` is the first of them. */
11577
11583
  "fallback-label"?: (HelixLog["fallbackLabel"]) | undefined;
11578
11584
  /** The log's name, read by screen readers, where `label` is empty. */
11579
11585
  fallbackLabel?: (HelixLog["fallbackLabel"]) | undefined;
11586
+ /** The format written text is in, read with a parser Helix ships:
11587
+ `github-actions` reads a GitHub Actions log's workflow commands into steps
11588
+ and levels, and `vercel` a Vercel build log's phases and warnings. Absent
11589
+ reads none. `parse` wins over it. */
11590
+ format?: (HelixLog["format"]) | undefined;
11580
11591
  /** What a screen reader hears when a step finishes or fails. `{heading}` is
11581
11592
  the step's heading and `{status}` is `done` or `failed`. */
11582
11593
  "group-label"?: (HelixLog["groupLabel"]) | undefined;
@@ -11625,6 +11636,16 @@ true would write the attribute on upgrade. */
11625
11636
  "resume-label"?: (HelixLog["resumeLabel"]) | undefined;
11626
11637
  /** The words on the button that returns to the newest line, where `resume` is empty. */
11627
11638
  resumeLabel?: (HelixLog["resumeLabel"]) | undefined;
11639
+ /** Whether pressing a line's number selects the line, and pressing another
11640
+ with Shift selects every line between them. Each number is then a
11641
+ button, or a link with `line-href`, and the arrow keys move between them. */
11642
+ selectable?: (HelixLog["selectable"]) | undefined;
11643
+ /** The lines selected, as a number or a range such as `12-20`. Empty selects
11644
+ none. A reader's press asks first: `helix-select` is cancelable. */
11645
+ "selected-lines"?: (HelixLog["selectedLines"]) | undefined;
11646
+ /** The lines selected, as a number or a range such as `12-20`. Empty selects
11647
+ none. A reader's press asks first: `helix-select` is cancelable. */
11648
+ selectedLines?: (HelixLog["selectedLines"]) | undefined;
11628
11649
  /** How near the newest line still counts as being at it, in pixels. */
11629
11650
  threshold?: (HelixLog["threshold"]) | undefined;
11630
11651
  /** How each line shows its `at`: `absolute` on the clock, `relative` as the
@@ -11645,8 +11666,8 @@ Replaced rather than mutated: setting it starts the log over with these
11645
11666
  lines, and `write` adds to them. Set it or write children, not both. */
11646
11667
  lines?: (HelixLog["lines"]) | undefined;
11647
11668
  /** Reads each finished line of written text: return the fields to set, such
11648
- as `level` or `group`, or `null` to drop the line. Lines in `lines` are
11649
- taken as they are. */
11669
+ as `level`, `open` or `close` to start or end a step, or `null` to drop
11670
+ the line. Lines in `lines` are taken as they are. Wins over `format`. */
11650
11671
  parse?: (HelixLog["parse"]) | undefined;
11651
11672
  /** Text to read as it arrives, to the end: a `ReadableStream` of text or
11652
11673
  bytes, such as a `fetch` response's body, or an async iterable. Bytes are
@@ -11658,10 +11679,14 @@ reading the last one. */
11658
11679
  export type HelixLogVueEvents = {
11659
11680
  /** Fired when the reader leaves the newest line by scrolling, or comes back to it. Cancelable. */
11660
11681
  "helix-before-pin": HelixLogHelixBeforePinElementEvent;
11661
- /** Fired after a reader opens or closes a group drawn from `groups`, with the `id` of every open group in `detail.value`, separated by commas. */
11682
+ /** 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. */
11662
11683
  "helix-expand": HelixLogHelixExpandElementEvent;
11663
11684
  /** Fired after the log follows the newest line or lets go of it, with `true` or `false` in `detail.value`. */
11664
11685
  "helix-pin": HelixLogHelixPinElementEvent;
11686
+ /** Fired when a reader presses a number to change the selection, with the lines asked for in `detail.value`. Cancelable. */
11687
+ "helix-select": HelixLogHelixSelectElementEvent;
11688
+ /** Fired after the selection changes, with the lines now selected in `detail.value`, such as `12-20`. */
11689
+ "helix-selected": HelixLogHelixSelectedElementEvent;
11665
11690
  };
11666
11691
 
11667
11692
  /** `HelixMapArea` component event */
@@ -24281,6 +24306,8 @@ export type CustomCssProperties = {
24281
24306
  "--log-mark-background-color"?: (string) | undefined;
24282
24307
  /** The fill behind text that matches the log's `query`. */
24283
24308
  "--log-match-background-color"?: (string) | undefined;
24309
+ /** The band behind a selected line, on a `selectable` log. */
24310
+ "--log-selected-background-color"?: (string) | undefined;
24284
24311
  /** The color of a line at `warn`, and of the band behind it. Defaults to the warning color. */
24285
24312
  "--log-warn-color"?: (string) | undefined;
24286
24313
  /** Written on a `run` with a background, in the same form as `--log-run-color`. */