@fusion.dev/helix 0.199.0 → 0.200.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 +4824 -226
- package/dist/element-events.generated.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/log/group/log-group.css.d.ts +1 -0
- package/dist/log/group/log-group.css.js +2 -0
- package/dist/log/group/log-group.d.ts +24 -0
- package/dist/log/group/log-group.js +12 -0
- package/dist/log/index.d.ts +3 -0
- package/dist/log/index.js +3 -0
- package/dist/log/line/log-line.css.d.ts +1 -0
- package/dist/log/line/log-line.css.js +2 -0
- package/dist/log/line/log-line.d.ts +28 -0
- package/dist/log/line/log-line.js +12 -0
- package/dist/log/root/log-root.css.d.ts +1 -0
- package/dist/log/root/log-root.css.js +2 -0
- package/dist/log/root/log-root.d.ts +47 -0
- package/dist/log/root/log-root.js +16 -0
- package/dist/orb/root/orb-root.css.js +1 -1
- package/dist/orb/root/orb-root.d.ts +8 -0
- package/dist/orb/root/orb-root.js +7 -0
- package/dist/sandbox/index.d.ts +1 -0
- package/dist/sandbox/preview/sandbox-preview.d.ts +35 -1
- package/dist/sandbox/preview/sandbox-preview.js +40 -0
- package/dist/sandbox/relay.d.ts +74 -0
- package/dist/sandbox/relay.js +72 -0
- package/examples.json +1 -1
- package/lint.json +1 -1
- package/package.json +6 -6
- package/skills/helix/SKILL.md +2 -2
- package/types/jsx.d.ts +1329 -0
- package/types/svelte.d.ts +3 -0
- package/types/vue.d.ts +306 -1
- package/types/words.d.ts +48 -0
package/types/svelte.d.ts
CHANGED
|
@@ -98,6 +98,9 @@ declare module 'svelte/elements' {
|
|
|
98
98
|
'helix-list': Helix<'helix-list'>
|
|
99
99
|
'helix-listbox': Helix<'helix-listbox'>
|
|
100
100
|
'helix-loader': Helix<'helix-loader'>
|
|
101
|
+
'helix-log-group': Helix<'helix-log-group'>
|
|
102
|
+
'helix-log-line': Helix<'helix-log-line'>
|
|
103
|
+
'helix-log': Helix<'helix-log'>
|
|
101
104
|
'helix-map-area': Helix<'helix-map-area'>
|
|
102
105
|
'helix-map-buildings': Helix<'helix-map-buildings'>
|
|
103
106
|
'helix-map-contours': Helix<'helix-map-contours'>
|
package/types/vue.d.ts
CHANGED
|
@@ -68,6 +68,9 @@ import type {
|
|
|
68
68
|
HelixList,
|
|
69
69
|
HelixListbox,
|
|
70
70
|
HelixLoader,
|
|
71
|
+
HelixLogGroup,
|
|
72
|
+
HelixLogLine,
|
|
73
|
+
HelixLog,
|
|
71
74
|
HelixMapArea,
|
|
72
75
|
HelixMapBuildings,
|
|
73
76
|
HelixMapContours,
|
|
@@ -11451,6 +11454,214 @@ progress. */
|
|
|
11451
11454
|
|
|
11452
11455
|
export type HelixLoaderVueEvents = {};
|
|
11453
11456
|
|
|
11457
|
+
/** `HelixLogGroup` component event */
|
|
11458
|
+
export type HelixLogGroupElementEvent<E = Event> = TypedEvent<HelixLogGroup, E>;
|
|
11459
|
+
/** `toggle` event type */
|
|
11460
|
+
export type HelixLogGroupToggleElementEvent =
|
|
11461
|
+
HelixLogGroupElementEvent<ToggleEvent>;
|
|
11462
|
+
/** `helix-before-close` event type */
|
|
11463
|
+
export type HelixLogGroupHelixBeforeCloseElementEvent =
|
|
11464
|
+
HelixLogGroupElementEvent<HelixBeforeCloseEvent>;
|
|
11465
|
+
/** `helix-before-open` event type */
|
|
11466
|
+
export type HelixLogGroupHelixBeforeOpenElementEvent =
|
|
11467
|
+
HelixLogGroupElementEvent<HelixBeforeOpenEvent>;
|
|
11468
|
+
|
|
11469
|
+
export type HelixLogGroupVueProps = {
|
|
11470
|
+
/** Whether the element starts open. Ignored once `open` is written. */
|
|
11471
|
+
"default-open"?: (HelixLogGroup["defaultOpen"]) | undefined;
|
|
11472
|
+
/** Whether the element starts open. Ignored once `open` is written. */
|
|
11473
|
+
defaultOpen?: (HelixLogGroup["defaultOpen"]) | undefined;
|
|
11474
|
+
/** Whether the element is open.
|
|
11475
|
+
|
|
11476
|
+
One property, not two, so `dialog.open` answers the question anyone
|
|
11477
|
+
asking it meant. Writing always applies; `<helix-dialog open>` is the
|
|
11478
|
+
same statement in markup.
|
|
11479
|
+
|
|
11480
|
+
**Not reflected, and that is required rather than tidy.** Reflection
|
|
11481
|
+
writes the resolved state back as an attribute, so an element that opened
|
|
11482
|
+
itself would put `open` on its own host: cloned, serialized for
|
|
11483
|
+
hydration, or diffed by a framework, it comes back holding whatever the
|
|
11484
|
+
last reader did rather than what the author wrote. `:state(open)` carries
|
|
11485
|
+
the resolved state for stylesheets, which is what the mirror is for. */
|
|
11486
|
+
open?: (HelixLogGroup["open"]) | undefined;
|
|
11487
|
+
/** How long the step took, as it should read, such as `12s`. */
|
|
11488
|
+
duration?: (HelixLogGroup["duration"]) | undefined;
|
|
11489
|
+
/** What the step is called. The `heading` slot replaces it. */
|
|
11490
|
+
heading?: (HelixLogGroup["heading"]) | undefined;
|
|
11491
|
+
/** Where the step stands, which draws a mark before the heading. */
|
|
11492
|
+
status?: (HelixLogGroup["status"]) | undefined;
|
|
11493
|
+
/** What a screen reader hears for the status, after the heading.
|
|
11494
|
+
`{status}` is one of `pending`, `running`, `done`, `failed`, and `skipped`. */
|
|
11495
|
+
"status-label"?: (HelixLogGroup["statusLabel"]) | undefined;
|
|
11496
|
+
/** What a screen reader hears for the status, after the heading.
|
|
11497
|
+
`{status}` is one of `pending`, `running`, `done`, `failed`, and `skipped`. */
|
|
11498
|
+
statusLabel?: (HelixLogGroup["statusLabel"]) | undefined;
|
|
11499
|
+
};
|
|
11500
|
+
|
|
11501
|
+
export type HelixLogGroupVueEvents = {
|
|
11502
|
+
/** Fired after the group opens or closes, with `newState` and `oldState`. */
|
|
11503
|
+
toggle: HelixLogGroupToggleElementEvent;
|
|
11504
|
+
/** Fired before the group closes. Cancelable. */
|
|
11505
|
+
"helix-before-close": HelixLogGroupHelixBeforeCloseElementEvent;
|
|
11506
|
+
/** Fired before the group opens. Cancelable. */
|
|
11507
|
+
"helix-before-open": HelixLogGroupHelixBeforeOpenElementEvent;
|
|
11508
|
+
};
|
|
11509
|
+
|
|
11510
|
+
export type HelixLogLineVueProps = {
|
|
11511
|
+
/** When the line was written: milliseconds since the epoch, or anything `Date` parses. */
|
|
11512
|
+
at?: (HelixLogLine["at"]) | undefined;
|
|
11513
|
+
/** How much the line matters. Absent is `info`. */
|
|
11514
|
+
level?: (HelixLogLine["level"]) | undefined;
|
|
11515
|
+
/** What a screen reader hears for the link on a line's number. `{number}` is the number. */
|
|
11516
|
+
"line-label"?: (HelixLogLine["lineLabel"]) | undefined;
|
|
11517
|
+
/** What a screen reader hears for the link on a line's number. `{number}` is the number. */
|
|
11518
|
+
lineLabel?: (HelixLogLine["lineLabel"]) | undefined;
|
|
11519
|
+
};
|
|
11520
|
+
|
|
11521
|
+
export type HelixLogLineVueEvents = {};
|
|
11522
|
+
|
|
11523
|
+
/** `HelixLog` component event */
|
|
11524
|
+
export type HelixLogElementEvent<E = Event> = TypedEvent<HelixLog, E>;
|
|
11525
|
+
/** `helix-before-pin` event type */
|
|
11526
|
+
export type HelixLogHelixBeforePinElementEvent =
|
|
11527
|
+
HelixLogElementEvent<HelixBeforePinEvent>;
|
|
11528
|
+
/** `helix-expand` event type */
|
|
11529
|
+
export type HelixLogHelixExpandElementEvent =
|
|
11530
|
+
HelixLogElementEvent<HelixExpandEvent>;
|
|
11531
|
+
/** `helix-pin` event type */
|
|
11532
|
+
export type HelixLogHelixPinElementEvent = HelixLogElementEvent<HelixPinEvent>;
|
|
11533
|
+
|
|
11534
|
+
export type HelixLogVueProps = {
|
|
11535
|
+
/** The text shown and announced when there are no rows and none are loading. */
|
|
11536
|
+
"empty-text"?: (HelixLog["emptyText"]) | undefined;
|
|
11537
|
+
/** The text shown and announced when there are no rows and none are loading. */
|
|
11538
|
+
emptyText?: (HelixLog["emptyText"]) | undefined;
|
|
11539
|
+
/** Whether the rows are still loading.
|
|
11540
|
+
|
|
11541
|
+
Reflected, because a stylesheet needs it: the rows that are already there
|
|
11542
|
+
are dimmed rather than removed while a new set arrives, and only CSS can
|
|
11543
|
+
say that without the component knowing what a row looks like. */
|
|
11544
|
+
loading?: (HelixLog["loading"]) | undefined;
|
|
11545
|
+
/** The text shown and announced while the rows load. */
|
|
11546
|
+
"loading-text"?: (HelixLog["loadingText"]) | undefined;
|
|
11547
|
+
/** The text shown and announced while the rows load. */
|
|
11548
|
+
loadingText?: (HelixLog["loadingText"]) | undefined;
|
|
11549
|
+
/** Whether the log opens following its newest line, when `pinned` is not set.
|
|
11550
|
+
`default-pinned="false"` opens it where it starts. */
|
|
11551
|
+
"default-pinned"?: (HelixLog["defaultPinned"]) | undefined;
|
|
11552
|
+
/** Whether the log opens following its newest line, when `pinned` is not set.
|
|
11553
|
+
`default-pinned="false"` opens it where it starts. */
|
|
11554
|
+
defaultPinned?: (HelixLog["defaultPinned"]) | undefined;
|
|
11555
|
+
/** Whether the run is over, which a screen reader is told once.
|
|
11556
|
+
|
|
11557
|
+
Set it when output you `write` is complete. A `source` sets it when the
|
|
11558
|
+
stream ends. */
|
|
11559
|
+
done?: (HelixLog["done"]) | undefined;
|
|
11560
|
+
/** What a screen reader hears when the run is over. */
|
|
11561
|
+
"done-label"?: (HelixLog["doneLabel"]) | undefined;
|
|
11562
|
+
/** What a screen reader hears when the run is over. */
|
|
11563
|
+
doneLabel?: (HelixLog["doneLabel"]) | undefined;
|
|
11564
|
+
/** What the line above the log says once `limit` has let lines go. `{count}` is how many. */
|
|
11565
|
+
"dropped-label"?: (HelixLog["droppedLabel"]) | undefined;
|
|
11566
|
+
/** What the line above the log says once `limit` has let lines go. `{count}` is how many. */
|
|
11567
|
+
droppedLabel?: (HelixLog["droppedLabel"]) | undefined;
|
|
11568
|
+
/** What a screen reader hears when lines at `error` arrive. `{count}` is how
|
|
11569
|
+
many arrived together and `{text}` is the first of them. */
|
|
11570
|
+
"error-label"?: (HelixLog["errorLabel"]) | undefined;
|
|
11571
|
+
/** What a screen reader hears when lines at `error` arrive. `{count}` is how
|
|
11572
|
+
many arrived together and `{text}` is the first of them. */
|
|
11573
|
+
errorLabel?: (HelixLog["errorLabel"]) | undefined;
|
|
11574
|
+
/** The log's name, read by screen readers, where `label` is empty. */
|
|
11575
|
+
"fallback-label"?: (HelixLog["fallbackLabel"]) | undefined;
|
|
11576
|
+
/** The log's name, read by screen readers, where `label` is empty. */
|
|
11577
|
+
fallbackLabel?: (HelixLog["fallbackLabel"]) | undefined;
|
|
11578
|
+
/** What a screen reader hears when a step finishes or fails. `{heading}` is
|
|
11579
|
+
the step's heading and `{status}` is `done` or `failed`. */
|
|
11580
|
+
"group-label"?: (HelixLog["groupLabel"]) | undefined;
|
|
11581
|
+
/** What a screen reader hears when a step finishes or fails. `{heading}` is
|
|
11582
|
+
the step's heading and `{status}` is `done` or `failed`. */
|
|
11583
|
+
groupLabel?: (HelixLog["groupLabel"]) | undefined;
|
|
11584
|
+
/** The log's name, read by screen readers. */
|
|
11585
|
+
label?: (HelixLog["label"]) | undefined;
|
|
11586
|
+
/** The most lines kept, or 0 to keep them all. Past it the oldest lines are
|
|
11587
|
+
let go, and the line above the log says how many. */
|
|
11588
|
+
limit?: (HelixLog["limit"]) | undefined;
|
|
11589
|
+
/** A link for each line number, with `{n}` where the number goes, such as
|
|
11590
|
+
`#L{n}`. Empty leaves the numbers as text. */
|
|
11591
|
+
"line-href"?: (HelixLog["lineHref"]) | undefined;
|
|
11592
|
+
/** A link for each line number, with `{n}` where the number goes, such as
|
|
11593
|
+
`#L{n}`. Empty leaves the numbers as text. */
|
|
11594
|
+
lineHref?: (HelixLog["lineHref"]) | undefined;
|
|
11595
|
+
/** What a screen reader hears for the link on a line's number, handed to each
|
|
11596
|
+
line the log draws. `{number}` is the number. */
|
|
11597
|
+
"line-label"?: (HelixLog["lineLabel"]) | undefined;
|
|
11598
|
+
/** What a screen reader hears for the link on a line's number, handed to each
|
|
11599
|
+
line the log draws. `{number}` is the number. */
|
|
11600
|
+
lineLabel?: (HelixLog["lineLabel"]) | undefined;
|
|
11601
|
+
/** Whether each line shows its number. */
|
|
11602
|
+
"line-numbers"?: (HelixLog["lineNumbers"]) | undefined;
|
|
11603
|
+
/** Whether each line shows its number. */
|
|
11604
|
+
lineNumbers?: (HelixLog["lineNumbers"]) | undefined;
|
|
11605
|
+
/** Lines to mark, as numbers and ranges such as `12, 40-44`. */
|
|
11606
|
+
"mark-lines"?: (HelixLog["markLines"]) | undefined;
|
|
11607
|
+
/** Lines to mark, as numbers and ranges such as `12, 40-44`. */
|
|
11608
|
+
markLines?: (HelixLog["markLines"]) | undefined;
|
|
11609
|
+
/** What a screen reader hears when `query` changes. `{count}` is how many lines match. */
|
|
11610
|
+
"matches-label"?: (HelixLog["matchesLabel"]) | undefined;
|
|
11611
|
+
/** What a screen reader hears when `query` changes. `{count}` is how many lines match. */
|
|
11612
|
+
matchesLabel?: (HelixLog["matchesLabel"]) | undefined;
|
|
11613
|
+
/** Whether the log follows its newest line.
|
|
11614
|
+
|
|
11615
|
+
The reader's scrolling asks first: `helix-before-pin` is cancelable, so a
|
|
11616
|
+
consumer refusing it takes the decision and assigns their own value. Not
|
|
11617
|
+
reflected, for the reason `Chat` gives at its own `pinned`: a default of
|
|
11618
|
+
true would write the attribute on upgrade. */
|
|
11619
|
+
pinned?: (HelixLog["pinned"]) | undefined;
|
|
11620
|
+
/** Text a line has to hold to be shown, ignoring case. Empty shows every line. */
|
|
11621
|
+
query?: (HelixLog["query"]) | undefined;
|
|
11622
|
+
/** The words on the button that returns to the newest line, where `resume` is empty. */
|
|
11623
|
+
"resume-label"?: (HelixLog["resumeLabel"]) | undefined;
|
|
11624
|
+
/** The words on the button that returns to the newest line, where `resume` is empty. */
|
|
11625
|
+
resumeLabel?: (HelixLog["resumeLabel"]) | undefined;
|
|
11626
|
+
/** How near the newest line still counts as being at it, in pixels. */
|
|
11627
|
+
threshold?: (HelixLog["threshold"]) | undefined;
|
|
11628
|
+
/** How each line shows its `at`: `absolute` on the clock, `relative` as the
|
|
11629
|
+
time since the first line. Absent shows no time. */
|
|
11630
|
+
timestamps?: (HelixLog["timestamps"]) | undefined;
|
|
11631
|
+
/** Whether a line longer than the box wraps onto the next row. Otherwise the log scrolls sideways. */
|
|
11632
|
+
wrap?: (HelixLog["wrap"]) | undefined;
|
|
11633
|
+
/** The steps the lines from data name in `group`. A step stands where its
|
|
11634
|
+
first line is, and one with no line yet stands at the end.
|
|
11635
|
+
|
|
11636
|
+
Replaced rather than mutated, as `lines` is: a step finishing is a new
|
|
11637
|
+
array with its `status` changed. */
|
|
11638
|
+
groups?: (HelixLog["groups"]) | undefined;
|
|
11639
|
+
/** The lines as data. Reading it gives every line kept, oldest first, with
|
|
11640
|
+
the line still being written left out.
|
|
11641
|
+
|
|
11642
|
+
Replaced rather than mutated: setting it starts the log over with these
|
|
11643
|
+
lines, and `write` adds to them. Set it or write children, not both. */
|
|
11644
|
+
lines?: (HelixLog["lines"]) | undefined;
|
|
11645
|
+
/** Reads each finished line of written text: return the fields to set, such
|
|
11646
|
+
as `level` or `group`, or `null` to drop the line. Lines in `lines` are
|
|
11647
|
+
taken as they are. */
|
|
11648
|
+
parse?: (HelixLog["parse"]) | undefined;
|
|
11649
|
+
/** Text to read as it arrives, to the end: a `ReadableStream` of text or
|
|
11650
|
+
bytes, such as a `fetch` response's body, or an async iterable. Bytes are
|
|
11651
|
+
read as UTF-8. The log sets `done` when it ends, and a new source stops
|
|
11652
|
+
reading the last one. */
|
|
11653
|
+
source?: (HelixLog["source"]) | undefined;
|
|
11654
|
+
};
|
|
11655
|
+
|
|
11656
|
+
export type HelixLogVueEvents = {
|
|
11657
|
+
/** Fired when the reader leaves the newest line by scrolling, or comes back to it. Cancelable. */
|
|
11658
|
+
"helix-before-pin": HelixLogHelixBeforePinElementEvent;
|
|
11659
|
+
/** 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. */
|
|
11660
|
+
"helix-expand": HelixLogHelixExpandElementEvent;
|
|
11661
|
+
/** Fired after the log follows the newest line or lets go of it, with `true` or `false` in `detail.value`. */
|
|
11662
|
+
"helix-pin": HelixLogHelixPinElementEvent;
|
|
11663
|
+
};
|
|
11664
|
+
|
|
11454
11665
|
/** `HelixMapArea` component event */
|
|
11455
11666
|
export type HelixMapAreaElementEvent<E = Event> = TypedEvent<HelixMapArea, E>;
|
|
11456
11667
|
/** `helix-map-part-change` event type */
|
|
@@ -15419,6 +15630,10 @@ document, each path, such as `utils.js`, to its source. Not read where
|
|
|
15419
15630
|
/** The name of the button that opens the example in a new tab, under
|
|
15420
15631
|
`controls`. */
|
|
15421
15632
|
openLabel?: (HelixSandboxPreview["openLabel"]) | undefined;
|
|
15633
|
+
/** Path prefixes the frame may ask this page to fetch for it, separated by
|
|
15634
|
+
spaces, each starting and ending with a slash, such as `/sandbox/ /fonts/`.
|
|
15635
|
+
Empty relays nothing. */
|
|
15636
|
+
relay?: (HelixSandboxPreview["relay"]) | undefined;
|
|
15422
15637
|
/** The name of the button that reloads the frame's document, under
|
|
15423
15638
|
`controls`. */
|
|
15424
15639
|
"reload-label"?: (HelixSandboxPreview["reloadLabel"]) | undefined;
|
|
@@ -24058,6 +24273,78 @@ export type CustomCssProperties = {
|
|
|
24058
24273
|
"--loader-track-color"?: (string) | undefined;
|
|
24059
24274
|
/** Width of the arc and the circle behind it, in units of a 24-unit drawing. Defaults to 2. */
|
|
24060
24275
|
"--loader-track-width"?: (string) | undefined;
|
|
24276
|
+
/** The color of a line at `error`, and of the band behind it. Defaults to the danger color. */
|
|
24277
|
+
"--log-error-color"?: (string) | undefined;
|
|
24278
|
+
/** The band behind a line `mark-lines` names. */
|
|
24279
|
+
"--log-mark-background-color"?: (string) | undefined;
|
|
24280
|
+
/** The fill behind text that matches the log's `query`. */
|
|
24281
|
+
"--log-match-background-color"?: (string) | undefined;
|
|
24282
|
+
/** The color of a line at `warn`, and of the band behind it. Defaults to the warning color. */
|
|
24283
|
+
"--log-warn-color"?: (string) | undefined;
|
|
24284
|
+
/** Written on a `run` with a background, in the same form as `--log-run-color`. */
|
|
24285
|
+
"--log-run-background-color"?: (string) | undefined;
|
|
24286
|
+
/** Written on a `run` with a text color: one of the sixteen `--log-ansi-*` colors the log publishes, or the color itself. */
|
|
24287
|
+
"--log-run-color"?: (string) | undefined;
|
|
24288
|
+
/** The fill behind the lines. Defaults to the page background. */
|
|
24289
|
+
"--log-background-color"?: (string) | undefined;
|
|
24290
|
+
/** The edge around the log and the rules inside it. */
|
|
24291
|
+
"--log-border-color"?: (string) | undefined;
|
|
24292
|
+
/** The text color of the lines. */
|
|
24293
|
+
"--log-color"?: (string) | undefined;
|
|
24294
|
+
/** The face of the lines. Defaults to the monospaced face. */
|
|
24295
|
+
"--log-font-family"?: (string) | undefined;
|
|
24296
|
+
/** The size of the lines. Defaults to the small text step. */
|
|
24297
|
+
"--log-font-size"?: (string) | undefined;
|
|
24298
|
+
/** The height of one line. */
|
|
24299
|
+
"--log-line-height"?: (string) | undefined;
|
|
24300
|
+
/** How tall the log may get before the lines scroll. Defaults to 30rem. */
|
|
24301
|
+
"--log-max-block-size"?: (string) | undefined;
|
|
24302
|
+
/** Space either side of every line and heading. */
|
|
24303
|
+
"--log-padding-inline"?: (string) | undefined;
|
|
24304
|
+
/** The corners of the log. */
|
|
24305
|
+
"--log-radius"?: (string) | undefined;
|
|
24306
|
+
/** The thumb of the scrollbar. Defaults to `--helix-scrollbar-thumb-color`. */
|
|
24307
|
+
"--log-scrollbar-thumb-color"?: (string) | undefined;
|
|
24308
|
+
/** The track of the scrollbar. Defaults to `--helix-scrollbar-track-color`. */
|
|
24309
|
+
"--log-scrollbar-track-color"?: (string) | undefined;
|
|
24310
|
+
/** The background a run takes where ANSI swaps the colors and named none. Defaults to the log's own background on the styled tier. */
|
|
24311
|
+
"--log-ansi-background"?: (string) | undefined;
|
|
24312
|
+
/** The ANSI color black, which codes `30` and `40` draw. */
|
|
24313
|
+
"--log-ansi-black"?: (string) | undefined;
|
|
24314
|
+
/** The ANSI color blue, which codes `34` and `44` draw. */
|
|
24315
|
+
"--log-ansi-blue"?: (string) | undefined;
|
|
24316
|
+
/** The ANSI color bright black, which codes `90` and `100` draw. */
|
|
24317
|
+
"--log-ansi-bright-black"?: (string) | undefined;
|
|
24318
|
+
/** The ANSI color bright blue, which codes `94` and `104` draw. */
|
|
24319
|
+
"--log-ansi-bright-blue"?: (string) | undefined;
|
|
24320
|
+
/** The ANSI color bright cyan, which codes `96` and `106` draw. */
|
|
24321
|
+
"--log-ansi-bright-cyan"?: (string) | undefined;
|
|
24322
|
+
/** The ANSI color bright green, which codes `92` and `102` draw. */
|
|
24323
|
+
"--log-ansi-bright-green"?: (string) | undefined;
|
|
24324
|
+
/** The ANSI color bright magenta, which codes `95` and `105` draw. */
|
|
24325
|
+
"--log-ansi-bright-magenta"?: (string) | undefined;
|
|
24326
|
+
/** The ANSI color bright red, which codes `91` and `101` draw. */
|
|
24327
|
+
"--log-ansi-bright-red"?: (string) | undefined;
|
|
24328
|
+
/** The ANSI color bright white, which codes `97` and `107` draw. */
|
|
24329
|
+
"--log-ansi-bright-white"?: (string) | undefined;
|
|
24330
|
+
/** The ANSI color bright yellow, which codes `93` and `103` draw. */
|
|
24331
|
+
"--log-ansi-bright-yellow"?: (string) | undefined;
|
|
24332
|
+
/** The ANSI color cyan, which codes `36` and `46` draw. */
|
|
24333
|
+
"--log-ansi-cyan"?: (string) | undefined;
|
|
24334
|
+
/** The text color a run takes where ANSI swaps the colors and named none. Defaults to the log's own text color on the styled tier. */
|
|
24335
|
+
"--log-ansi-foreground"?: (string) | undefined;
|
|
24336
|
+
/** The ANSI color green, which codes `32` and `42` draw. */
|
|
24337
|
+
"--log-ansi-green"?: (string) | undefined;
|
|
24338
|
+
/** The ANSI color magenta, which codes `35` and `45` draw. */
|
|
24339
|
+
"--log-ansi-magenta"?: (string) | undefined;
|
|
24340
|
+
/** The ANSI color red, which codes `31` and `41` draw. */
|
|
24341
|
+
"--log-ansi-red"?: (string) | undefined;
|
|
24342
|
+
/** The ANSI color white, which codes `37` and `47` draw. */
|
|
24343
|
+
"--log-ansi-white"?: (string) | undefined;
|
|
24344
|
+
/** The ANSI color yellow, which codes `33` and `43` draw. */
|
|
24345
|
+
"--log-ansi-yellow"?: (string) | undefined;
|
|
24346
|
+
/** Written on the `log`: how many digits the largest line number has, while `line-numbers` is set, so a stylesheet can size the column of numbers. */
|
|
24347
|
+
"--log-digits"?: (string) | undefined;
|
|
24061
24348
|
/** The area's color when no tone is set. */
|
|
24062
24349
|
"--map-area-color"?: (string) | undefined;
|
|
24063
24350
|
/** The buildings' color when no tone is set. */
|
|
@@ -25836,6 +26123,24 @@ export interface WcToolkitVueGlobalComponents {
|
|
|
25836
26123
|
HelixLoaderVueProps,
|
|
25837
26124
|
HelixLoaderVueEvents
|
|
25838
26125
|
>;
|
|
26126
|
+
/** The heading is a row in the sans face with a caret, the status mark in its color, the heading, and the duration at the far end. A step that is 'done' takes the success color, one that 'failed' the danger color, and one that is 'running' the info color. */
|
|
26127
|
+
"helix-log-group": DefineCustomElement<
|
|
26128
|
+
HelixLogGroup,
|
|
26129
|
+
HelixLogGroupVueProps,
|
|
26130
|
+
HelixLogGroupVueEvents
|
|
26131
|
+
>;
|
|
26132
|
+
/** A row with the number, the time, and the text side by side. A line at 'warn' or 'error' takes a band of its color, and a line 'mark-lines' names takes the band 'Code Block' draws behind a marked line. */
|
|
26133
|
+
"helix-log-line": DefineCustomElement<
|
|
26134
|
+
HelixLogLine,
|
|
26135
|
+
HelixLogLineVueProps,
|
|
26136
|
+
HelixLogLineVueEvents
|
|
26137
|
+
>;
|
|
26138
|
+
/** A bordered box in the monospaced face, at the size of the page's small text, that scrolls after 30rem ('--log-max-block-size'). Lines keep their spaces and run past the edge of the box, which scrolls sideways, until 'wrap' is set. The sixteen ANSI colors come from your theme: red is the danger color, green success, yellow warning, and blue info. Set '--log-ansi-red' and its siblings on the log to choose them yourself. Put a search field or the controls for the log in the 'toolbar' slot, in one element such as a 'Toolbar' or a 'Flex'. It sits above the lines with a rule under it. */
|
|
26139
|
+
"helix-log": DefineCustomElement<
|
|
26140
|
+
HelixLog,
|
|
26141
|
+
HelixLogVueProps,
|
|
26142
|
+
HelixLogVueEvents
|
|
26143
|
+
>;
|
|
25839
26144
|
/** Fills the area in your theme's colors. Uses your primary color unless 'tone' sets another. */
|
|
25840
26145
|
"helix-map-area": DefineCustomElement<
|
|
25841
26146
|
HelixMapArea,
|
|
@@ -26070,7 +26375,7 @@ export interface WcToolkitVueGlobalComponents {
|
|
|
26070
26375
|
HelixRatingVueProps,
|
|
26071
26376
|
HelixRatingVueEvents
|
|
26072
26377
|
>;
|
|
26073
|
-
/** A sandboxed '<iframe>' that loads 'src', a document you provide. That document imports what the examples need, listens for a render message, and writes the markup into itself. **Without 'src', the frame loads a built-in document**, so a sandbox renders with nothing to host. It runs HTML, CSS, and scripts, and reports the console, uncaught errors, its height, and presses as a frame on 'servePreview' does. It defines no element, so an example that uses Helix components needs a 'src' that imports them. **'imports' lets an example import packages by name** in the built-in document, as an import map: each name maps to the address of an ES module, such as '{"canvas-confetti": "https://esm.sh/canvas-confetti@1.9.3"}', and 'import confetti from 'canvas-confetti'' in the 'js' pane then loads it. A CDN that serves npm packages as modules, such as esm.sh or jsDelivr's '+esm', gives every package an address. A new map loads the document again, since a browser reads one only as a document starts. A 'src' document declares its own. **'dependencies' names packages by version instead**, as a 'package.json' does: '{"canvas-confetti": "^1.9"}' loads 'canvas-confetti' and the paths under it from 'cdn', 'https://esm.sh/' by default, at the version or range given. An address in 'imports' wins over a package of the same name. **'modules' holds files the example imports by a relative path**: each path, such as 'utils.js', to its source, and 'import { add } from './utils.js'' in the 'js' pane or in another module loads it. A sandbox writes each pane named for a module file here. **A module in TypeScript or JSX runs too**: a path ending in '.ts', '.tsx' or '.jsx' is compiled to JavaScript first, and imported by its path or by its path without the extension. The compiler, Sucrase, loads from 'cdn' the first time a module needs it, so the package carries none and a preview with no such module loads none. JSX compiles to the automatic runtime, 'react/jsx-runtime', from 'dependencies', or to the one a '@jsxImportSource' comment names. What fails to compile shows in the 'error' part as an error the example threw, when the example imports it. **Examples render in a frame**, so an example's styles and scripts do not affect the page around the sandbox, and 'position: fixed' stays inside the pane. The frame starts empty, with its own stylesheets and its own custom element registry, so 'src' must load the styles and components the examples use. **The source is untrusted, and the frame keeps it isolated.** The frame uses 'sandbox="allow-scripts"' and never 'allow-same-origin'. Together, the two let a document on the same origin remove its own sandbox, which is the same as having none. **A preview says where it is.** It is ':state(loading)' from the moment it has a 'src' until that document can take the example, and again through 'reload()'. It is ':state(failed)' once the example throws an error it does not catch, until the next source is sent, which a frame on 'servePreview' reports. A page draws its own spinner or message from either, such as a sibling shown by 'helix-sandbox-preview:state(failed) + .message'. **A failed preview shows the error over the example**, in the 'error' part, until the next source is sent. The terminal says it too, so the part is not announced, and it is the frame's description while it shows, so a screen reader reads it with the frame. Hide it with '::part(error) { display: none }' where the page draws its own. **'controls' draws two buttons in the preview's corner**: one reloads the frame's document, as 'reload()' does, and one opens the example in a new tab, as 'open()' does. The tab runs it in a frame sandboxed as this one is. */
|
|
26378
|
+
/** A sandboxed '<iframe>' that loads 'src', a document you provide. That document imports what the examples need, listens for a render message, and writes the markup into itself. **Without 'src', the frame loads a built-in document**, so a sandbox renders with nothing to host. It runs HTML, CSS, and scripts, and reports the console, uncaught errors, its height, and presses as a frame on 'servePreview' does. It defines no element, so an example that uses Helix components needs a 'src' that imports them. **'imports' lets an example import packages by name** in the built-in document, as an import map: each name maps to the address of an ES module, such as '{"canvas-confetti": "https://esm.sh/canvas-confetti@1.9.3"}', and 'import confetti from 'canvas-confetti'' in the 'js' pane then loads it. A CDN that serves npm packages as modules, such as esm.sh or jsDelivr's '+esm', gives every package an address. A new map loads the document again, since a browser reads one only as a document starts. A 'src' document declares its own. **'dependencies' names packages by version instead**, as a 'package.json' does: '{"canvas-confetti": "^1.9"}' loads 'canvas-confetti' and the paths under it from 'cdn', 'https://esm.sh/' by default, at the version or range given. An address in 'imports' wins over a package of the same name. **'modules' holds files the example imports by a relative path**: each path, such as 'utils.js', to its source, and 'import { add } from './utils.js'' in the 'js' pane or in another module loads it. A sandbox writes each pane named for a module file here. **A module in TypeScript or JSX runs too**: a path ending in '.ts', '.tsx' or '.jsx' is compiled to JavaScript first, and imported by its path or by its path without the extension. The compiler, Sucrase, loads from 'cdn' the first time a module needs it, so the package carries none and a preview with no such module loads none. JSX compiles to the automatic runtime, 'react/jsx-runtime', from 'dependencies', or to the one a '@jsxImportSource' comment names. What fails to compile shows in the 'error' part as an error the example threw, when the example imports it. **Examples render in a frame**, so an example's styles and scripts do not affect the page around the sandbox, and 'position: fixed' stays inside the pane. The frame starts empty, with its own stylesheets and its own custom element registry, so 'src' must load the styles and components the examples use. **The source is untrusted, and the frame keeps it isolated.** The frame uses 'sandbox="allow-scripts"' and never 'allow-same-origin'. Together, the two let a document on the same origin remove its own sandbox, which is the same as having none. **A preview says where it is.** It is ':state(loading)' from the moment it has a 'src' until that document can take the example, and again through 'reload()'. It is ':state(failed)' once the example throws an error it does not catch, until the next source is sent, which a frame on 'servePreview' reports. A page draws its own spinner or message from either, such as a sibling shown by 'helix-sandbox-preview:state(failed) + .message'. **A failed preview shows the error over the example**, in the 'error' part, until the next source is sent. The terminal says it too, so the part is not announced, and it is the frame's description while it shows, so a screen reader reads it with the frame. Hide it with '::part(error) { display: none }' where the page draws its own. **'relay' lets a frame on a login-protected site load its own files.** The frame's opaque origin makes every request it sends cross-site, and a login cookie is not sent on one, so behind a login such as a Vercel preview the frame's script and stylesheet come back as the login page. With 'relay' set to path prefixes, such as '/sandbox/ /fonts/', the frame can ask this element for a file under them and gets the body back, fetched from this page with its cookies. The page fetches only a 'GET' on its own origin, under those prefixes, in plain characters, following no redirect, and it passes on only a script, a stylesheet, a font, a model, or an image of up to 8 MB. Name only prefixes that hold files the site serves to anyone: an example in the frame is untrusted, and it can ask too. Empty, the default, relays nothing. A frame asks only while its own origin is opaque, so a page elsewhere that frames the same document without a sandbox cannot use the answer to run script on the site. **'controls' draws two buttons in the preview's corner**: one reloads the frame's document, as 'reload()' does, and one opens the example in a new tab, as 'open()' does. The tab runs it in a frame sandboxed as this one is. */
|
|
26074
26379
|
"helix-sandbox-preview": DefineCustomElement<
|
|
26075
26380
|
HelixSandboxPreview,
|
|
26076
26381
|
HelixSandboxPreviewVueProps,
|
package/types/words.d.ts
CHANGED
|
@@ -153,6 +153,12 @@ declare module '@fusion.dev/helix-core' {
|
|
|
153
153
|
* English: `Dismiss`
|
|
154
154
|
*/
|
|
155
155
|
dismissLabel: Message
|
|
156
|
+
/**
|
|
157
|
+
* What a screen reader hears when the run is over.
|
|
158
|
+
*
|
|
159
|
+
* English: `Finished`
|
|
160
|
+
*/
|
|
161
|
+
doneLabel: Message
|
|
156
162
|
/**
|
|
157
163
|
* What screen readers hear when a row is dropped, with `reorderable-rows`.
|
|
158
164
|
*
|
|
@@ -188,6 +194,13 @@ declare module '@fusion.dev/helix-core' {
|
|
|
188
194
|
* English: `No readings`
|
|
189
195
|
*/
|
|
190
196
|
emptyText: Message
|
|
197
|
+
/**
|
|
198
|
+
* What a screen reader hears when lines at `error` arrive. `{count}` is how
|
|
199
|
+
* many arrived together and `{text}` is the first of them.
|
|
200
|
+
*
|
|
201
|
+
* English: `{count, plural, one {Error} other {# errors}}: {text}`
|
|
202
|
+
*/
|
|
203
|
+
errorLabel: Message
|
|
191
204
|
/**
|
|
192
205
|
* The name of the heading over the disclosure buttons.
|
|
193
206
|
*
|
|
@@ -259,6 +272,13 @@ declare module '@fusion.dev/helix-core' {
|
|
|
259
272
|
* English: `Skip to page {page}`
|
|
260
273
|
*/
|
|
261
274
|
gapLabel: Message
|
|
275
|
+
/**
|
|
276
|
+
* What a screen reader hears when a step finishes or fails. `{heading}` is
|
|
277
|
+
* the step's heading and `{status}` is `done` or `failed`.
|
|
278
|
+
*
|
|
279
|
+
* English: `{status, select, failed {{heading} failed} other {{heading} finished}}`
|
|
280
|
+
*/
|
|
281
|
+
groupLabel: Message
|
|
262
282
|
/**
|
|
263
283
|
* The name the summary gives each series' highest reading, `{highestLabel}`
|
|
264
284
|
* in `summary-label`.
|
|
@@ -320,6 +340,13 @@ declare module '@fusion.dev/helix-core' {
|
|
|
320
340
|
* English: `Groups`
|
|
321
341
|
*/
|
|
322
342
|
legendLabel: Message
|
|
343
|
+
/**
|
|
344
|
+
* What a screen reader hears for the link on a line's number, handed to each
|
|
345
|
+
* line the log draws. `{number}` is the number.
|
|
346
|
+
*
|
|
347
|
+
* English: `Line {number}`
|
|
348
|
+
*/
|
|
349
|
+
lineLabel: Message
|
|
323
350
|
/**
|
|
324
351
|
* What screen readers hear when a walk along the links reaches a note that
|
|
325
352
|
* has no link to follow, or goes back to a note: `{note}` for its name and
|
|
@@ -397,6 +424,12 @@ declare module '@fusion.dev/helix-core' {
|
|
|
397
424
|
* English: `Mark all as read`
|
|
398
425
|
*/
|
|
399
426
|
markAllLabel: Message
|
|
427
|
+
/**
|
|
428
|
+
* What a screen reader hears when `query` changes. `{count}` is how many lines match.
|
|
429
|
+
*
|
|
430
|
+
* English: `{count, plural, =0 {No lines match} one {# line matches} other {# lines match}}`
|
|
431
|
+
*/
|
|
432
|
+
matchesLabel: Message
|
|
400
433
|
/**
|
|
401
434
|
* The word a screen reader says for `me` when it names a turn.
|
|
402
435
|
*
|
|
@@ -1837,6 +1870,21 @@ declare module '@fusion.dev/helix-core' {
|
|
|
1837
1870
|
*/
|
|
1838
1871
|
label: Message
|
|
1839
1872
|
}
|
|
1873
|
+
'helix-log': {
|
|
1874
|
+
/**
|
|
1875
|
+
* What a screen reader hears for the link on a line's number. `{number}` is the number.
|
|
1876
|
+
*
|
|
1877
|
+
* English: `Line {number}`
|
|
1878
|
+
*/
|
|
1879
|
+
lineLabel: Message
|
|
1880
|
+
/**
|
|
1881
|
+
* What a screen reader hears for the status, after the heading.
|
|
1882
|
+
* `{status}` is one of `pending`, `running`, `done`, `failed`, and `skipped`.
|
|
1883
|
+
*
|
|
1884
|
+
* English: `{status, select, pending {waiting} running {running} done {finished} failed {failed} skipped {skipped} other {}}`
|
|
1885
|
+
*/
|
|
1886
|
+
statusLabel: Message
|
|
1887
|
+
}
|
|
1840
1888
|
'helix-map-area': {
|
|
1841
1889
|
/**
|
|
1842
1890
|
* The area's name, used in the frame's list and its tile in the layers
|