@ethlete/bracket 0.0.1 → 1.0.0-next.2
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/CHANGELOG.md +31 -0
- package/README.md +7 -1
- package/fesm2022/ethlete-bracket.mjs +3635 -0
- package/fesm2022/ethlete-bracket.mjs.map +1 -0
- package/package.json +18 -6
- package/types/ethlete-bracket.d.ts +1031 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# @ethlete/bracket
|
|
2
|
+
|
|
3
|
+
## 1.0.0-next.2
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- Breaking: an unrelated round or match now has a `{ type: 'none' }` relation instead of a hidden placeholder, `createBracketElement`/`createBracketElementPart` return the value itself, and `isHidden`, `BracketElementType` and `MutableBracketElement` are removed; `ET3414` names a missing card.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Grid fixes: spanned elements respect section padding, a continue column after a folded third place no longer grows the grid, short connectors never run backwards, and a double elimination without lower rounds reports ET3405.
|
|
12
|
+
- `BracketMatchComponent` and `BracketRoundHeaderComponent` now type the optional `bracketRoundSwissGroup` input the bracket already passes, so a custom match or header component can read its round's swiss group without an `any`.
|
|
13
|
+
- Loser feeds no longer draw as connectors, a double elimination with undrawn later lower rounds no longer throws, odd-sized rounds connect every feeder, and a stacked row span keeps both blocks level.
|
|
14
|
+
- `migrateBracketPicks` resolves each round in one walk, and `resolveBracketSlot` no longer re-walks shared feeders below a cycle in malformed provenance.
|
|
15
|
+
- `createBracket` throws ET3403/ET3404 for duplicate round or match ids, and `standingPickStartOrder` drops a pick with a non-integer position.
|
|
16
|
+
- `drawSwissMan` no longer throws ET3408 on a swiss-with-elimination stage whose elimination rounds are not drawn yet.
|
|
17
|
+
|
|
18
|
+
## 1.0.0-next.1
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- Bracket: a relayout now animates, with new `thirdPlaceTopOffset`, `finalRoundHeaderGap`, `alignRoundHeaders` and `focusInset` settings and a `--et-bracket-move-duration` token; `BracketLayout.drawEdges` now returns a `BracketDrawing` instead of an SVG string.
|
|
23
|
+
- Bracket pick card: per-side pick marks, a note line, a `readonly` results mode and slot wording from
|
|
24
|
+
`provideBracketLabels`. **Breaking:** the `unresolvableLabel` and `unavailableLabel` inputs are gone.
|
|
25
|
+
- Bracket: add `migrateBracketPicks()` so a pick follows its participant when a pairing changes, plus `realParticipantOutranksPick` and `keepPickWhileFeederSideIsOpen` on `resolveBracketSlot()`.
|
|
26
|
+
- Bracket: add a framework-free prediction graph and resolver, prediction-aware slot states, an operable pick card, and focused round layout controls.
|
|
27
|
+
- Standings: add `<et-standings-pick>`, a group table a viewer reorders by drag or arrow keys, plus `standingPickOutcome` and `standingPickStartOrder` in `@ethlete/bracket`.
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- Bracket: a stage draws while a later round is empty, a mirrored fold converges for a field that is not a power of two, and swiss rounds past a full table group instead of throwing.
|
package/README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
1
|
# @ethlete/bracket
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Framework-free bracket data linking and prediction resolution for the Ethlete SDK.
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
yarn add @ethlete/bracket
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
See the [bracket compute-core guide](https://ethlete-sdk-docs.web.app/bracket/) for usage.
|