courthive-components 6.4.2 → 6.5.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.
@@ -72,5 +72,41 @@ export interface ViewConfig {
72
72
  combinedPoints?: CombinedPointsConfig;
73
73
  }
74
74
  export declare const CUSTOM = "Custom";
75
+ /**
76
+ * The picker's own words, in English. A consumer translates them through `config.labels` (CA, 2026-10-11):
77
+ * `what` holds the singular set-type names and `whatPlural` the plural ones, and a label that carries a
78
+ * number is a template with `{n}`, so a language can put the number where its word order needs it. Each
79
+ * key falls back to English on its own, so a consumer that translates some keys keeps the rest.
80
+ */
81
+ export declare const DEFAULT_LABELS: {
82
+ what: {
83
+ sets: string;
84
+ tiebreaks: string;
85
+ timedSets: string;
86
+ outs: string;
87
+ pointsTotal: string;
88
+ };
89
+ whatPlural: {
90
+ sets: string;
91
+ tiebreaks: string;
92
+ timedSets: string;
93
+ outs: string;
94
+ pointsTotal: string;
95
+ };
96
+ advantage: {
97
+ ad: string;
98
+ noAd: string;
99
+ };
100
+ matchRoots: Record<string, string>;
101
+ setTo: string;
102
+ tiebreakTo: string;
103
+ winBy: string;
104
+ minutes: string;
105
+ outs: string;
106
+ maxMinutes: string;
107
+ pointsTotal: string;
108
+ tieAllowed: string;
109
+ consecutive: string;
110
+ };
75
111
  export declare function gameFormatText(gameFormat: GameFormat | undefined, labels?: any): string;
76
112
  export declare function deriveView(state: EditorState, config: ViewConfig): EditorView;
@@ -31,15 +31,46 @@ export interface MatchUpFormatConfig {
31
31
  bestOf?: string;
32
32
  exactly?: string;
33
33
  };
34
+ /** The set-type names, singular ("Best of 1 Set"). */
34
35
  what?: {
35
36
  sets?: string;
36
37
  tiebreaks?: string;
37
38
  timedSets?: string;
39
+ outs?: string;
40
+ pointsTotal?: string;
41
+ };
42
+ /** The set-type names, plural ("Best of 3 Sets"). */
43
+ whatPlural?: {
44
+ sets?: string;
45
+ tiebreaks?: string;
46
+ timedSets?: string;
47
+ outs?: string;
48
+ pointsTotal?: string;
38
49
  };
39
50
  advantage?: {
40
51
  ad?: string;
41
52
  noAd?: string;
42
53
  };
54
+ /** Match-root names by code (SET, HAL, QTR, PER, INN, RND, FRM, MAP). */
55
+ matchRoots?: Record<string, string>;
56
+ /** 'to {n}': games to win a set. */
57
+ setTo?: string;
58
+ /** 'TB to {n}': points to win a tiebreak. */
59
+ tiebreakTo?: string;
60
+ /** 'Win by {n}': a margin to win (a tiebreak, a set, or a points total after a tie). */
61
+ winBy?: string;
62
+ /** '{n} Minutes': a timed set's length. */
63
+ minutes?: string;
64
+ /** '{n} outs': outs per side. */
65
+ outs?: string;
66
+ /** '{n} min': the match time limit. */
67
+ maxMinutes?: string;
68
+ /** '{n} points': a points total. */
69
+ pointsTotal?: string;
70
+ /** '{n} consecutive': a game format without its own consecutive2-4 label. */
71
+ consecutive?: string;
72
+ /** A points total whose tie stands as the result. */
73
+ tieAllowed?: string;
43
74
  };
44
75
  options?: {
45
76
  bestOf?: number[];