courthive-components 6.5.0 → 6.6.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/dist/components/inline-scoring/inlineScoringManager.d.ts +1 -1
- package/dist/components/inline-scoring/inlineScoringTypes.d.ts +2 -1
- package/dist/components/matchUpFormat/machine/options.d.ts +21 -0
- package/dist/components/scoring/logic/combinedPointTie.d.ts +10 -0
- package/dist/components/scoring/logic/dynamicSetsLogic.d.ts +2 -2
- package/dist/courthive-components.es.js +5959 -5929
- package/dist/courthive-components.umd.js +30 -30
- package/package.json +2 -2
- package/dist/components/matchUpFormat/matchUpFormatLogic.d.ts +0 -112
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { MatchUp } from '../../types';
|
|
2
1
|
import { InlineScoringCallbacks, InlineScoringEngineState } from './inlineScoringTypes';
|
|
2
|
+
import { MatchUp } from '../../types';
|
|
3
3
|
/**
|
|
4
4
|
* Manages ScoringEngine instances for inline scoring in draw brackets.
|
|
5
5
|
* One engine per matchUpId; lazily created on first interaction.
|
|
@@ -16,9 +16,10 @@ export interface InlineScoringCallbacks {
|
|
|
16
16
|
matchUp: MatchUp;
|
|
17
17
|
engine: any;
|
|
18
18
|
}) => void;
|
|
19
|
+
/** `winningSide` is absent when a combined-point total ends level (a tie is a finished result). */
|
|
19
20
|
onMatchComplete?: (params: {
|
|
20
21
|
matchUpId: string;
|
|
21
|
-
winningSide
|
|
22
|
+
winningSide?: number;
|
|
22
23
|
engine: any;
|
|
23
24
|
}) => void;
|
|
24
25
|
onEndMatch?: (params: {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What the picker offers for a match root and a set's tiebreak point. Moved unchanged from the retired
|
|
3
|
+
* `matchUpFormatLogic.ts`, whose other exports served the modal the state machine replaced.
|
|
4
|
+
*/
|
|
5
|
+
export declare const MATCH_ROOTS: readonly ["SET", "HAL", "QTR", "PER", "INN", "RND", "FRM", "MAP"];
|
|
6
|
+
export declare const MATCH_ROOT_LABELS: Record<string, string>;
|
|
7
|
+
/**
|
|
8
|
+
* Returns valid bestOf options for a given match root.
|
|
9
|
+
* SET root: [1,3,5,7,9] — odd counts; the factory parses any best-of count (#5136)
|
|
10
|
+
* Other roots: [1..12] (wide range for cross-sport)
|
|
11
|
+
*/
|
|
12
|
+
export declare function getBestOfOptionsForRoot(matchRoot?: string): number[];
|
|
13
|
+
/**
|
|
14
|
+
* Calculate valid tiebreakAt options based on setTo value
|
|
15
|
+
*/
|
|
16
|
+
export declare function getTiebreakAtOptions(setTo: number): number[];
|
|
17
|
+
/**
|
|
18
|
+
* Auto-adjust tiebreakAt when setTo changes
|
|
19
|
+
* Returns the new tiebreakAt value that should be used
|
|
20
|
+
*/
|
|
21
|
+
export declare function autoAdjustTiebreakAt(newSetTo: number, currentTiebreakAt: number): number;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SetScore } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* A combined-point total that allows a tie (`SET1-S:P32`) can end level, 16–16: COMPLETED with no winner
|
|
4
|
+
* (CA, 2026-10-11: ties are valid). The score dialogs otherwise finish a match only on a winner.
|
|
5
|
+
*
|
|
6
|
+
* The factory decides whether the set is over (`checkSetIsComplete` hands a combined-point set to its own
|
|
7
|
+
* `analyzeCombinedPointSet`); this adds only that the format lets a tie stand and the totals are level. A
|
|
8
|
+
* deciding-point or win-by format (`P32DP`, `P32WB2`) never ends level, so it is never a completed tie.
|
|
9
|
+
*/
|
|
10
|
+
export declare function isCompletedCombinedPointTie(sets: SetScore[], matchUpFormat?: string): boolean;
|
|
@@ -15,8 +15,8 @@ import { SetScore } from '../types';
|
|
|
15
15
|
* of 7, and a low of 5 in `S:6NOAD` completed to **7** instead of 6 — a 7-5 in a format where first to
|
|
16
16
|
* six wins.
|
|
17
17
|
*
|
|
18
|
-
* Every OTHER reader of this flag in the package had it right — `freeScore.ts
|
|
19
|
-
* `
|
|
18
|
+
* Every OTHER reader of this flag in the package had it right — `freeScore.ts` and the format picker
|
|
19
|
+
* (`matchUpFormat/machine/codec.ts`) both read `.NoAD`. This one type was the outlier, which
|
|
20
20
|
* is the shape the architectural standards call mock divergence: a hand-written mirror that renames a
|
|
21
21
|
* field and then certifies the rename.
|
|
22
22
|
*/
|