courthive-components 4.5.0 → 6.0.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.
@@ -821,7 +821,7 @@ var oe = class {
821
821
  if (Array.isArray(e) && e.length > 0) return !e.map((e) => E(e, t, n)).some((e) => e === !1);
822
822
  if (typeof e == "string" || typeof e == "number") {
823
823
  let i = E(e, t, n), a = r?.map(Number).includes(Number(e));
824
- return !!(i && !a);
824
+ return !(!i || a);
825
825
  }
826
826
  }
827
827
  }, de = class {
@@ -2033,7 +2033,7 @@ var z = class {
2033
2033
  }
2034
2034
  setBgColorToCircleWithMinutesTips() {
2035
2035
  let e = this.core.getMinutes(), t = this.core.getCircle();
2036
- if (!(!e || !t) && e.value && v.includes(e.value)) {
2036
+ if (e && t && e.value && v.includes(e.value)) {
2037
2037
  let e = getComputedStyle(t).getPropertyValue("--timepicker-primary").trim();
2038
2038
  e && (t.style.backgroundColor = e), t.classList.remove("small-circle");
2039
2039
  }
package/dist/types.d.ts CHANGED
@@ -1,3 +1,5 @@
1
+ import { SideExitProvenance } from 'tods-competition-factory';
2
+ export type { SideExitProvenance, SideExitProvenanceEntry } from 'tods-competition-factory';
1
3
  export interface MatchUp {
2
4
  matchUpId: string;
3
5
  matchUpType?: 'SINGLES' | 'DOUBLES' | 'TEAM' | 'HYBRID';
@@ -25,6 +27,7 @@ export interface MatchUp {
25
27
  score?: Score;
26
28
  schedule?: Schedule;
27
29
  readyToScore?: boolean;
30
+ sideExitProvenance?: SideExitProvenance;
28
31
  [key: string]: any;
29
32
  }
30
33
  export interface Side {
@@ -39,6 +42,16 @@ export interface Side {
39
42
  score?: SideScore;
40
43
  seedNumber?: number;
41
44
  seedValue?: string | number;
45
+ /**
46
+ * Why the seed was awarded, as distinct from `seedValue`, which says only where it sits.
47
+ *
48
+ * Arrives on the side for free: the factory's `getSideValue` does `Object.assign(side, seeding)`,
49
+ * spreading the whole `SeedAssignment`. Measured — a side carrying seed 9 on a protected ranking
50
+ * reads `{ seedValue: 9, seedNumber: 9, seedingBasis: 'PROTECTED_RANKING' }`.
51
+ *
52
+ * Absent means the ordinary basis (`RANKING`), not "unknown".
53
+ */
54
+ seedingBasis?: string;
42
55
  }
43
56
  export interface Participant {
44
57
  participantId: string;
@@ -156,6 +169,14 @@ export interface Configuration {
156
169
  matchUpFooter?: boolean;
157
170
  showAddress?: boolean;
158
171
  seedingElement?: 'sup' | 'span';
172
+ /**
173
+ * Mark a seed awarded on a non-ordinary basis, and title it with that basis. Default `true`.
174
+ *
175
+ * On by default because the on-screen draw is the ONLY surface that carries the fact — unlike the
176
+ * printed sheet, which has a seedings table to footnote and therefore leaves the bracket alone.
177
+ * Set `false` where a consumer renders its own explanation elsewhere.
178
+ */
179
+ seedingBasisMarker?: boolean;
159
180
  matchUpHover?: boolean | string;
160
181
  participantDetail?: string;
161
182
  inlineAssignment?: boolean;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "courthive-components",
3
- "packageManager": "pnpm@12.3.4",
4
- "version": "4.5.0",
3
+ "packageManager": "pnpm@12.5.1",
4
+ "version": "6.0.0",
5
5
  "engines": {
6
6
  "node": ">=22"
7
7
  },
@@ -70,8 +70,8 @@
70
70
  },
71
71
  "devDependencies": {
72
72
  "@chromatic-com/storybook": "^5.0.0",
73
- "@commitlint/cli": "21.2.2",
74
- "@commitlint/config-conventional": "21.2.2",
73
+ "@commitlint/cli": "21.2.3",
74
+ "@commitlint/config-conventional": "21.2.3",
75
75
  "@eslint/js": "^10.0.1",
76
76
  "@fortawesome/fontawesome-free": "^7.2.0",
77
77
  "@storybook/addon-docs": "^10.2.17",
@@ -80,27 +80,27 @@
80
80
  "@types/d3": "^7.4.3",
81
81
  "@types/leaflet": "^1.9.12",
82
82
  "@types/vanillajs-datepicker": "^1.3.5",
83
- "@typescript-eslint/eslint-plugin": "8.69.0",
84
- "@typescript-eslint/parser": "8.69.0",
83
+ "@typescript-eslint/eslint-plugin": "8.70.0",
84
+ "@typescript-eslint/parser": "8.70.0",
85
85
  "@vitest/coverage-v8": "^5.0.0",
86
86
  "@vitest/ui": "^5.0.0",
87
- "eslint": "10.10.0",
88
- "eslint-plugin-sonarjs": "4.2.0",
87
+ "eslint": "10.11.0",
88
+ "eslint-plugin-sonarjs": "4.2.1",
89
89
  "eslint-plugin-storybook": "^10.2.17",
90
90
  "gh-pages": "6.3.0",
91
91
  "globals": "^17.3.0",
92
92
  "happy-dom": "^20.8.3",
93
93
  "husky": "9.1.7",
94
94
  "leaflet": "1.9.4",
95
- "lint-staged": "17.4.1",
95
+ "lint-staged": "17.5.1",
96
96
  "playwright": "^1.57.0",
97
97
  "prettier": "^3.8.1",
98
98
  "semver": "7.8.5",
99
99
  "storybook": "^10.2.17",
100
- "tabulator-tables": "6.5.2",
101
- "tods-competition-factory": "6.38.0",
100
+ "tabulator-tables": "6.5.3",
101
+ "tods-competition-factory": "^7.1.0",
102
102
  "typescript": "^6.0.2",
103
- "vite": "8.2.2",
103
+ "vite": "8.3.0",
104
104
  "vite-plugin-dts": "^5.0.0",
105
105
  "vitest": "^5.0.0"
106
106
  },
@@ -123,7 +123,7 @@
123
123
  "vanillajs-datepicker": "1.3.4"
124
124
  },
125
125
  "peerDependencies": {
126
- "tods-competition-factory": "^6.0.0",
126
+ "tods-competition-factory": "^7.1.0",
127
127
  "leaflet": "^1.9.4"
128
128
  },
129
129
  "peerDependenciesMeta": {