@fusion.dev/helix 0.46.1 → 0.47.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types/vue.d.ts CHANGED
@@ -612,17 +612,23 @@ are interpolations, so a larger number extrapolates rather than
612
612
  exaggerating, and a streak whose length has passed through zero is drawn
613
613
  as a bar across the whole frame.
614
614
 
615
- Read by four of the eleven shapes, the ones made of many similar things,
615
+ Read by six of the eleven shapes, the ones made of many similar things,
616
616
  whether those are counted or continuous: `streaks`, whose lanes draw a
617
617
  speed, a length, a width, a spacing and a weight apiece; `particles`, whose
618
- motes draw a size, a brightness and a wander; and `rays` and `aurora`, whose
619
- fan, bundles and folds widen or even out.
620
-
621
- Inert on the other seven, for three different reasons. `braid`, `waves` and
622
- `flow` have a single subject and nothing to vary. `threads` and `lattice`
623
- are even on purpose, a scatter of strands and a regular structure each being
624
- what it is because its members do not differ. `caustics` and `fracture` are
625
- populations this does not reach, which is a gap rather than a refusal. */
618
+ motes draw a size, a brightness and a wander; `rays` and `aurora`, whose
619
+ fan, bundles and folds widen or even out; `caustics`, whose three depths of
620
+ fold close on one scale and one weight while the pool over them flattens to
621
+ an even wash; and `fracture`, whose sites come home to their own cell
622
+ centers, leaving equal territories and no border more contested than
623
+ another.
624
+
625
+ Inert on the other five, and every one of them a refusal. `braid`, `waves`
626
+ and `flow` have a single subject and nothing to vary. `threads` and
627
+ `lattice` are even on purpose, a scatter of strands and a regular structure
628
+ each being what it is because its members do not differ: `threads` gives
629
+ its seven one amplitude, one thickness, one weight and one frequency on
630
+ the argument that alike is what makes a weave read as woven, and a lattice
631
+ whose cells differed would be a scatter with straight lines in it. */
626
632
  variance?: (HelixAura["variance"]) | undefined;
627
633
  /** Which form the light takes. Absent is `braid`.
628
634
 
@@ -1534,6 +1540,27 @@ clamps to the last *slide*, so three of the six indicators point at an
1534
1540
  offset the track has already reached: pressing next walks the dots to the
1535
1541
  end while the slides stop moving a third of the way through.
1536
1542
 
1543
+ **The number is published to the styles rather than enumerated by them**,
1544
+ as `--carousel-per-view` on the track, which is what keeps a width and a
1545
+ count from disagreeing. A sheet can only name a value it wrote a rule for,
1546
+ so the styled tier enumerated `per-view="2"` through `5` and called five a
1547
+ judgment; above it the pane fell back to one across while this file went on
1548
+ counting positions. Measured in Chromium over eight slides, six across gave
1549
+ three dots, a pane taking the whole track and five slides reachable only by
1550
+ dragging. Written from here there is no ceiling to exceed, and a consumer's
1551
+ own sheet reads the same declaration the styled one does. `runEnd` publishes
1552
+ its correction the same way and for the same reason.
1553
+
1554
+ **On the track and not on the host.** A custom property on the host is a
1555
+ reflected attribute by another name: it would arrive on upgrade, and a
1556
+ consumer's server markup never had it. Inside the component's own shadow
1557
+ root it serializes with the rest of the template on the server, and the
1558
+ track's own declaration beats anything a consumer inherits in, so the
1559
+ attribute is the one answer to how wide a pane is.
1560
+
1561
+ A value the track cannot honor is taken to the nearest one it can, by
1562
+ `across`, and both tiers read that rather than this.
1563
+
1537
1564
  No default, because it reflects. A reflected property with a value writes
1538
1565
  its attribute on upgrade, and the host then carries something a consumer's
1539
1566
  server markup never had, which React reports as a mismatch. The one-across
@@ -1550,6 +1577,27 @@ clamps to the last *slide*, so three of the six indicators point at an
1550
1577
  offset the track has already reached: pressing next walks the dots to the
1551
1578
  end while the slides stop moving a third of the way through.
1552
1579
 
1580
+ **The number is published to the styles rather than enumerated by them**,
1581
+ as `--carousel-per-view` on the track, which is what keeps a width and a
1582
+ count from disagreeing. A sheet can only name a value it wrote a rule for,
1583
+ so the styled tier enumerated `per-view="2"` through `5` and called five a
1584
+ judgment; above it the pane fell back to one across while this file went on
1585
+ counting positions. Measured in Chromium over eight slides, six across gave
1586
+ three dots, a pane taking the whole track and five slides reachable only by
1587
+ dragging. Written from here there is no ceiling to exceed, and a consumer's
1588
+ own sheet reads the same declaration the styled one does. `runEnd` publishes
1589
+ its correction the same way and for the same reason.
1590
+
1591
+ **On the track and not on the host.** A custom property on the host is a
1592
+ reflected attribute by another name: it would arrive on upgrade, and a
1593
+ consumer's server markup never had it. Inside the component's own shadow
1594
+ root it serializes with the rest of the template on the server, and the
1595
+ track's own declaration beats anything a consumer inherits in, so the
1596
+ attribute is the one answer to how wide a pane is.
1597
+
1598
+ A value the track cannot honor is taken to the nearest one it can, by
1599
+ `across`, and both tiers read that rather than this.
1600
+
1553
1601
  No default, because it reflects. A reflected property with a value writes
1554
1602
  its attribute on upgrade, and the host then carries something a consumer's
1555
1603
  server markup never had, which React reports as a mismatch. The one-across
@@ -8482,7 +8530,20 @@ on the column it sizes, which is the more particular statement, and it is
8482
8530
  where a resize lands: a reader dragging a column's edge writes `width`, so
8483
8531
  were this list to win, the drag would move the separator and leave the
8484
8532
  track where the list put it. This is the table's default for its columns,
8485
- and each column may say otherwise. */
8533
+ and each column may say otherwise.
8534
+
8535
+ **It is also the only track list a server can send.** The shim has no tree
8536
+ to walk, so a render there knows of no columns and this attribute is the
8537
+ whole answer: a table given one lays its grid out in the first paint, and a
8538
+ table sized only by its columns is one track wide until it upgrades.
8539
+
8540
+ **`helix-data-table` has none of this, and should not.** Its columns are
8541
+ its schema rather than an option, so there is always a column to write a
8542
+ `width` on and a list here would be a second way to say what that says.
8543
+ This table's cells are markup, and a table written as rows of cells with no
8544
+ `helix-table-column` in it has nowhere else to be sized from. Both families
8545
+ take the same CSS hook, `--table-columns` and `--data-table-columns`, which
8546
+ wins over whichever list the element worked out. */
8486
8547
  columns?: (HelixTable["columns"]) | undefined;
8487
8548
  /** Accessible name for the table. */
8488
8549
  label?: (HelixTable["label"]) | undefined;
@@ -9792,13 +9853,6 @@ Unset by default, and unreflected: a tree of choosable nodes is not a tree
9792
9853
  of links, and an empty `href` written onto every row would be a link to the
9793
9854
  current page on every item a consumer never asked to be one. */
9794
9855
  href?: (HelixTreeItem["href"]) | undefined;
9795
- /** Depth from the root, set by the tree so indentation needs no CSS nesting.
9796
-
9797
- Not reflected. The tree assigns this after it upgrades, so an attribute
9798
- here would be a change to markup the consumer rendered and hydration would
9799
- report it. The indent it drives is written onto the row instead, inside the
9800
- shadow root, which is not part of the tree React hydrates. */
9801
- level?: (HelixTreeItem["level"]) | undefined;
9802
9856
  /** What the link declares about where it goes.
9803
9857
 
9804
9858
  Set by the consumer rather than derived from `target`: `noreferrer` is a
@@ -9808,7 +9862,7 @@ this library supports implies it for `target="_blank"` already. */
9808
9862
  rel?: (HelixTreeItem["rel"]) | undefined;
9809
9863
  /** Whether this item is the current one.
9810
9864
 
9811
- Not reflected, for the reason `level` below gives in full: the tree assigns
9865
+ Not reflected, for the reason `level` above gives in full: the tree assigns
9812
9866
  this after it upgrades, so the attribute would be a change to markup the
9813
9867
  consumer rendered and hydration would report it. Mirroring to
9814
9868
  `data-selected` on the host instead is the same fault under another name.
@@ -9820,6 +9874,24 @@ row is not part of the tree React hydrates. */
9820
9874
  target?: (HelixTreeItem["target"]) | undefined;
9821
9875
  /** Identifies the item to the consumer, carried in `helix-select`. */
9822
9876
  value?: (HelixTreeItem["value"]) | undefined;
9877
+ /** Depth from the root, counted by the tree so indentation needs no CSS nesting.
9878
+
9879
+ **Read rather than written, and no attribute at all.** The tree counts the
9880
+ items a row sits inside and assigns this on every sync, so a value declared
9881
+ here is overwritten before the first paint: measured at `level="2"` on three
9882
+ rows of a flat list, all three back to 1 with `--tree-level: 1` on every
9883
+ row. It carried an attribute and a shipped example setting it for as long as
9884
+ both existed, which is a depth a consumer could state and nothing would
9885
+ honor. Depth in this tree is where a row is, not what it claims: a branch's
9886
+ children go in its `children` slot, and that nesting is also what decides
9887
+ which rows a shut branch hides and which row the outward arrow moves to.
9888
+
9889
+ Not reflected either. The tree assigns this after it upgrades, so an
9890
+ attribute here would be a change to markup the consumer rendered and
9891
+ hydration would report it. The indent it drives is written onto the row
9892
+ instead, inside the shadow root, which is not part of the tree React
9893
+ hydrates. */
9894
+ level?: (HelixTreeItem["level"]) | undefined;
9823
9895
  /** Whether this item holds the tree's single tab stop. */
9824
9896
  focusable?: (HelixTreeItem["focusable"]) | undefined;
9825
9897
  };
@@ -10553,6 +10625,8 @@ export type CustomCssProperties = {
10553
10625
  "--carousel-gap"?: (string) | undefined;
10554
10626
  /** The size one pane is laid out at. A sheet sets it and the component measures the run with it. */
10555
10627
  "--carousel-pane"?: (string) | undefined;
10628
+ /** How many slides go across, written onto the track by the component so a sheet divides the track by the same number the positions are counted from. Read it rather than selecting on `per-view`, which cannot be enumerated without a ceiling. See `perView`. */
10629
+ "--carousel-per-view"?: (string) | undefined;
10556
10630
  /** How far short of a whole pixel the run ends, on the last slide alone, for a sheet to take up as `margin-inline-end`. See `runEnd`. */
10557
10631
  "--carousel-run-end"?: (string) | undefined;
10558
10632
  /** Fill behind the composer. */
@@ -11299,7 +11373,7 @@ export type CustomCssProperties = {
11299
11373
  "--switch-thumb-color"?: (string) | undefined;
11300
11374
  /** The edge the column this cell sits under is set to, `start`, `center` or `end`, and unset under a column that sets none. Written by the table around it, since the cell is the consumer's markup and nothing is written onto it; read by the sheet that draws the cell, where `justify-content` and `text-align` both take it as it comes and both follow the writing direction. */
11301
11375
  "--table-cell-align"?: (string) | undefined;
11302
- /** Track list for the columns. */
11376
+ /** Track list for the columns, which wins over the one the columns worked out. */
11303
11377
  "--table-columns"?: (string) | undefined;
11304
11378
  /** The column track list this element worked out from the columns declared in it. Written by the component, read by the sheet that paints: a stylesheet takes it to lay the grid out, and setting it does nothing, because the component writes it inline on the very element that reads it and an inline declaration beats any sheet. `--table-columns` is the one to set. */
11305
11379
  "--table-template"?: (string) | undefined;
@@ -11545,7 +11619,7 @@ export interface WcToolkitVueGlobalComponents {
11545
11619
  HelixCardVueProps,
11546
11620
  HelixCardVueEvents
11547
11621
  >;
11548
- /** The track scroll-snaps, so a drag and a trackpad swipe move it with the browser's own momentum and the controls only have to scroll. Slides take the full track by default. 'per-view' fits more than one across, up to five, and is declared on the tier below because it decides how many positions the track has rather than only how wide a slide is, which is what a run of cards wants rather than a run of full-width panels. */
11622
+ /** The track scroll-snaps, so a drag and a trackpad swipe move it with the browser's own momentum and the controls only have to scroll. Slides take the full track by default. 'per-view' fits more than one across, at any count, and is declared on the tier below because it decides how many positions the track has rather than only how wide a slide is, which is what a run of cards wants rather than a run of full-width panels. This sheet divides the track by the number that tier publishes rather than enumerating the values it will answer for, so there is no count it silently draws one across. */
11549
11623
  "helix-carousel": DefineCustomElement<
11550
11624
  HelixCarousel,
11551
11625
  HelixCarouselVueProps,