@fusion.dev/helix-headless 0.212.1 → 0.213.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/types/vue.d.ts CHANGED
@@ -10292,10 +10292,28 @@ export type HelixHeadlessLogLineVueProps = {
10292
10292
  at?: (HelixHeadlessLogLine["at"]) | undefined;
10293
10293
  /** How much the line matters. Absent is `info`. */
10294
10294
  level?: (HelixHeadlessLogLine["level"]) | undefined;
10295
+ /** What a screen reader hears before the text of a line at each level, for a
10296
+ page in another language, keyed by level, such as `{ warn: 'Warnung:' }`.
10297
+ A line at `info` or `log` hears nothing extra, and nor does a line whose
10298
+ text already starts with its words, such as `Error: Cannot find module`.
10299
+ As an attribute it is that object as JSON. */
10300
+ "level-words"?: (HelixHeadlessLogLine["levelWords"]) | undefined;
10301
+ /** What a screen reader hears before the text of a line at each level, for a
10302
+ page in another language, keyed by level, such as `{ warn: 'Warnung:' }`.
10303
+ A line at `info` or `log` hears nothing extra, and nor does a line whose
10304
+ text already starts with its words, such as `Error: Cannot find module`.
10305
+ As an attribute it is that object as JSON. */
10306
+ levelWords?: (HelixHeadlessLogLine["levelWords"]) | undefined;
10295
10307
  /** What a screen reader hears for the link on a line's number. `{number}` is the number. */
10296
10308
  "line-label"?: (HelixHeadlessLogLine["lineLabel"]) | undefined;
10297
10309
  /** What a screen reader hears for the link on a line's number. `{number}` is the number. */
10298
10310
  lineLabel?: (HelixHeadlessLogLine["lineLabel"]) | undefined;
10311
+ /** What a screen reader hears after a line written more than once in a row.
10312
+ `{count}` is how many times, in the locale. */
10313
+ "times-label"?: (HelixHeadlessLogLine["timesLabel"]) | undefined;
10314
+ /** What a screen reader hears after a line written more than once in a row.
10315
+ `{count}` is how many times, in the locale. */
10316
+ timesLabel?: (HelixHeadlessLogLine["timesLabel"]) | undefined;
10299
10317
  };
10300
10318
 
10301
10319
  export type HelixHeadlessLogLineVueEvents = {};
@@ -10322,6 +10340,11 @@ export type HelixHeadlessLogHelixSelectedElementEvent =
10322
10340
  HelixHeadlessLogElementEvent<HelixSelectedEvent>;
10323
10341
 
10324
10342
  export type HelixHeadlessLogVueProps = {
10343
+ /** Folds a line written again straight after itself into it, with a count,
10344
+ as a browser's console does, so a loop writing one warning a thousand
10345
+ times is one line. For lines written or given as data, read as they
10346
+ arrive; numbers, `line-href` and the selection count a folded line once. */
10347
+ collapse?: (HelixHeadlessLog["collapse"]) | undefined;
10325
10348
  /** Whether the log opens following its newest line, when `pinned` is not set.
10326
10349
  `default-pinned="false"` opens it where it starts. */
10327
10350
  "default-pinned"?: (HelixHeadlessLog["defaultPinned"]) | undefined;
@@ -10368,6 +10391,11 @@ the step's heading and `{status}` is `done` or `failed`. */
10368
10391
  groupLabel?: (HelixHeadlessLog["groupLabel"]) | undefined;
10369
10392
  /** The log's name, read by screen readers. */
10370
10393
  label?: (HelixHeadlessLog["label"]) | undefined;
10394
+ /** The quietest level shown: `info` hides `debug` and `log` lines, `warn`
10395
+ shows warnings and errors, and `error` errors only. Unset shows every line.
10396
+ Lines it hides are kept, so lowering it shows them again, and a step shows
10397
+ while it holds a line that shows. */
10398
+ level?: (HelixHeadlessLog["level"]) | undefined;
10371
10399
  /** The most lines kept, or 0 to keep them all. Past it the oldest lines are
10372
10400
  let go, and the line above the log says how many. */
10373
10401
  limit?: (HelixHeadlessLog["limit"]) | undefined;
@@ -17570,10 +17598,24 @@ exit code, written as the process gave it, and code `0` is a clean exit. */
17570
17598
  "find-controls-label"?: (HelixHeadlessTerminal["findControlsLabel"]) | undefined;
17571
17599
  /** The name of the find bar's row of buttons, read by screen readers. */
17572
17600
  findControlsLabel?: (HelixHeadlessTerminal["findControlsLabel"]) | undefined;
17601
+ /** What the find bar says when its regular expression cannot be read. */
17602
+ "find-invalid-label"?: (HelixHeadlessTerminal["findInvalidLabel"]) | undefined;
17603
+ /** What the find bar says when its regular expression cannot be read. */
17604
+ findInvalidLabel?: (HelixHeadlessTerminal["findInvalidLabel"]) | undefined;
17573
17605
  /** The find button's label, and the find field's name and placeholder. */
17574
17606
  "find-label"?: (HelixHeadlessTerminal["findLabel"]) | undefined;
17575
17607
  /** The find button's label, and the find field's name and placeholder. */
17576
17608
  findLabel?: (HelixHeadlessTerminal["findLabel"]) | undefined;
17609
+ /** Whether the find bar matches case, so "Error" does not find "error". The
17610
+ reader turns it on and off from the bar. */
17611
+ "find-match-case"?: (HelixHeadlessTerminal["findMatchCase"]) | undefined;
17612
+ /** Whether the find bar matches case, so "Error" does not find "error". The
17613
+ reader turns it on and off from the bar. */
17614
+ findMatchCase?: (HelixHeadlessTerminal["findMatchCase"]) | undefined;
17615
+ /** The match case button's label. */
17616
+ "find-match-case-label"?: (HelixHeadlessTerminal["findMatchCaseLabel"]) | undefined;
17617
+ /** The match case button's label. */
17618
+ findMatchCaseLabel?: (HelixHeadlessTerminal["findMatchCaseLabel"]) | undefined;
17577
17619
  /** The next match button's label. */
17578
17620
  "find-next-label"?: (HelixHeadlessTerminal["findNextLabel"]) | undefined;
17579
17621
  /** The next match button's label. */
@@ -17582,6 +17624,24 @@ exit code, written as the process gave it, and code `0` is a clean exit. */
17582
17624
  "find-previous-label"?: (HelixHeadlessTerminal["findPreviousLabel"]) | undefined;
17583
17625
  /** The previous match button's label. */
17584
17626
  findPreviousLabel?: (HelixHeadlessTerminal["findPreviousLabel"]) | undefined;
17627
+ /** Whether the find bar reads what the reader types as a regular expression,
17628
+ in JavaScript's syntax. The reader turns it on and off from the bar. */
17629
+ "find-regex"?: (HelixHeadlessTerminal["findRegex"]) | undefined;
17630
+ /** Whether the find bar reads what the reader types as a regular expression,
17631
+ in JavaScript's syntax. The reader turns it on and off from the bar. */
17632
+ findRegex?: (HelixHeadlessTerminal["findRegex"]) | undefined;
17633
+ /** The regular expression button's label. */
17634
+ "find-regex-label"?: (HelixHeadlessTerminal["findRegexLabel"]) | undefined;
17635
+ /** The regular expression button's label. */
17636
+ findRegexLabel?: (HelixHeadlessTerminal["findRegexLabel"]) | undefined;
17637
+ /** Whether the find bar matches whole words only. The reader turns it on and off from the bar. */
17638
+ "find-whole-word"?: (HelixHeadlessTerminal["findWholeWord"]) | undefined;
17639
+ /** Whether the find bar matches whole words only. The reader turns it on and off from the bar. */
17640
+ findWholeWord?: (HelixHeadlessTerminal["findWholeWord"]) | undefined;
17641
+ /** The whole word button's label. */
17642
+ "find-whole-word-label"?: (HelixHeadlessTerminal["findWholeWordLabel"]) | undefined;
17643
+ /** The whole word button's label. */
17644
+ findWholeWordLabel?: (HelixHeadlessTerminal["findWholeWordLabel"]) | undefined;
17585
17645
  /** The fullscreen button's label. */
17586
17646
  "fullscreen-label"?: (HelixHeadlessTerminal["fullscreenLabel"]) | undefined;
17587
17647
  /** The fullscreen button's label. */
@@ -21464,7 +21524,7 @@ export interface WcToolkitVueGlobalComponents {
21464
21524
  HelixHeadlessLogGroupVueProps,
21465
21525
  HelixHeadlessLogGroupVueEvents
21466
21526
  >;
21467
- /** Write one for each line of a log you serve whole, inside a 'Log' or a 'Log.Group'. The log numbers each line, counting the lines of every group, and tells it whether to show its number and its time. 'level' says how much a line matters, and the styled tier draws 'warn' and 'error' lines apart. The text is the line's own content, so you can mark it up yourself. */
21527
+ /** Write one for each line of a log you serve whole, inside a 'Log' or a 'Log.Group'. The log numbers each line, counting the lines of every group, and tells it whether to show its number and its time. 'level' says how much a line matters, and the styled tier draws 'warn' and 'error' lines apart. A line at 'debug', 'warn' or 'error' says its level in words before its text, so a reader moving through the log hears it as well as the color shows it. The text is the line's own content, so you can mark it up yourself. */
21468
21528
  "helix-headless-log-line": DefineCustomElement<
21469
21529
  HelixHeadlessLogLine,
21470
21530
  HelixHeadlessLogLineVueProps,
@@ -21890,7 +21950,7 @@ export interface WcToolkitVueGlobalComponents {
21890
21950
  HelixHeadlessTagVueProps,
21891
21951
  HelixHeadlessTagVueEvents
21892
21952
  >;
21893
- /** Wraps a terminal drawn by xterm.js or another emulator. The frame adds a header with the terminal's name and its controls, a find bar, and a status line. 'connectTerminal' in '@fusion.dev/helix-terminal' connects it to the emulator and draws the terminal in the colors the '--terminal-*' properties set, which the styled tier sets from your theme. Helix does not start a process: you connect the stream. Write the program's output with 'write()', send what the reader types to the process from 'helix-terminal-input', and resize the process's pseudo-terminal from 'helix-terminal-resize'. Output written before a renderer is connected is held and written first, so the process can start before the emulator loads. 'write()' resolves once the renderer has parsed the output, which is how a page pauses a process that writes faster than the terminal draws. The controls are a row in the header, and 'controls' names which ones: 'find', 'copy', 'clear', and 'fullscreen'. 'find clear' by default. A control the renderer cannot answer is left out once it is connected. Set 'exit-code' when the process exits: the frame says how it exited, stops sending input, and shows a Restart button that sends 'helix-terminal-restart'. **Keyboard.** Every key goes to the program, Tab, Shift+Tab, and Escape included, except these: - Control+Shift+F, or Command+F on a Mac, opens the find bar. Enter and Shift+Enter move between the matches, and Escape closes the bar and returns focus to the terminal. - Control+Shift+C copies the selection. On a Mac, Command+C does. - Control+M, or Control+Shift+M on a Mac, switches Tab between typing in the terminal and moving focus out of it. The status line says when Tab moves focus, and the terminal's input describes the key to a screen reader. **Screen readers.** A terminal draws its grid as a picture of text, so a screen reader reads nothing in it by default. Set 'screen-reader-mode' to have the renderer keep the grid as lines a screen reader can move through and announce new output as it arrives, which xterm.js calls screen reader mode. It costs time on every write, so it is off by default: connect it to a setting your reader can turn on. */
21953
+ /** Wraps a terminal drawn by xterm.js or another emulator. The frame adds a header with the terminal's name and its controls, a find bar, and a status line. 'connectTerminal' in '@fusion.dev/helix-terminal' connects it to the emulator and draws the terminal in the colors the '--terminal-*' properties set, which the styled tier sets from your theme. Helix does not start a process: you connect the stream. Write the program's output with 'write()', send what the reader types to the process from 'helix-terminal-input', and resize the process's pseudo-terminal from 'helix-terminal-resize'. Output written before a renderer is connected is held and written first, so the process can start before the emulator loads. 'write()' resolves once the renderer has parsed the output, which is how a page pauses a process that writes faster than the terminal draws. The controls are a row in the header, and 'controls' names which ones: 'find', 'copy', 'clear', and 'fullscreen'. 'find clear' by default. A control the renderer cannot answer is left out once it is connected. Set 'exit-code' when the process exits: the frame says how it exited, stops sending input, and shows a Restart button that sends 'helix-terminal-restart'. **Keyboard.** Every key goes to the program, Tab, Shift+Tab, and Escape included, except these: - Control+Shift+F, or Command+F on a Mac, opens the find bar. Enter and Shift+Enter move between the matches, and Escape closes the bar and returns focus to the terminal. - Control+Shift+C copies the selection. On a Mac, Command+C does. - Control+Shift+V pastes, as it does in the browser, and the program reads it as typed text. On a Mac, Command+V does. - Control+M, or Control+Shift+M on a Mac, switches Tab between typing in the terminal and moving focus out of it. The status line says when Tab moves focus, and the terminal's input describes the key to a screen reader. **Screen readers.** A terminal draws its grid as a picture of text, so a screen reader reads nothing in it by default. Set 'screen-reader-mode' to have the renderer keep the grid as lines a screen reader can move through and announce new output as it arrives, which xterm.js calls screen reader mode. It costs time on every write, so it is off by default: connect it to a setting your reader can turn on. */
21894
21954
  "helix-headless-terminal": DefineCustomElement<
21895
21955
  HelixHeadlessTerminal,
21896
21956
  HelixHeadlessTerminalVueProps,
package/types/words.d.ts CHANGED
@@ -2366,6 +2366,16 @@ declare module '@fusion.dev/helix-core' {
2366
2366
  * English: `{status, select, failed {{heading} failed} other {{heading} finished}}`
2367
2367
  */
2368
2368
  groupLabel: Message
2369
+ /**
2370
+ * What a screen reader hears before the text of a line at each level, for a
2371
+ * page in another language, keyed by level, such as `{ warn: 'Warnung:' }`.
2372
+ * A line at `info` or `log` hears nothing extra, and nor does a line whose
2373
+ * text already starts with its words, such as `Error: Cannot find module`.
2374
+ * As an attribute it is that object as JSON.
2375
+ *
2376
+ * English: `{ debug: 'Debug:', error: 'Error:', warn: 'Warning:', }`
2377
+ */
2378
+ levelWords: MessageTable
2369
2379
  /**
2370
2380
  * What a screen reader hears for the link on a line's number. `{number}` is the number.
2371
2381
  *
@@ -2397,6 +2407,13 @@ declare module '@fusion.dev/helix-core' {
2397
2407
  * English: `{status, select, pending {waiting} running {running} done {finished} failed {failed} skipped {skipped} other {}}`
2398
2408
  */
2399
2409
  statusLabel: Message
2410
+ /**
2411
+ * What a screen reader hears after a line written more than once in a row.
2412
+ * `{count}` is how many times, in the locale.
2413
+ *
2414
+ * English: `{count} times`
2415
+ */
2416
+ timesLabel: Message
2400
2417
  }
2401
2418
  'helix-map': {
2402
2419
  /**
@@ -4029,12 +4046,24 @@ declare module '@fusion.dev/helix-core' {
4029
4046
  * English: `Find controls`
4030
4047
  */
4031
4048
  findControlsLabel: Message
4049
+ /**
4050
+ * What the find bar says when its regular expression cannot be read.
4051
+ *
4052
+ * English: `Not a valid regular expression`
4053
+ */
4054
+ findInvalidLabel: Message
4032
4055
  /**
4033
4056
  * The find button's label, and the find field's name and placeholder.
4034
4057
  *
4035
4058
  * English: `Find`
4036
4059
  */
4037
4060
  findLabel: Message
4061
+ /**
4062
+ * The match case button's label.
4063
+ *
4064
+ * English: `Match case`
4065
+ */
4066
+ findMatchCaseLabel: Message
4038
4067
  /**
4039
4068
  * The next match button's label.
4040
4069
  *
@@ -4047,6 +4076,18 @@ declare module '@fusion.dev/helix-core' {
4047
4076
  * English: `Previous match`
4048
4077
  */
4049
4078
  findPreviousLabel: Message
4079
+ /**
4080
+ * The regular expression button's label.
4081
+ *
4082
+ * English: `Use regular expression`
4083
+ */
4084
+ findRegexLabel: Message
4085
+ /**
4086
+ * The whole word button's label.
4087
+ *
4088
+ * English: `Match whole word`
4089
+ */
4090
+ findWholeWordLabel: Message
4050
4091
  /**
4051
4092
  * The fullscreen button's label.
4052
4093
  *