@graph-render/tournament-tree 1.0.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.
Files changed (50) hide show
  1. package/.eslintrc.json +6 -0
  2. package/CHANGELOG.md +23 -0
  3. package/README.md +0 -0
  4. package/dist/index.js +2258 -0
  5. package/dist/src/components/BracketToolbar.d.ts +11 -0
  6. package/dist/src/components/BracketToolbar.d.ts.map +1 -0
  7. package/dist/src/components/SquashNode.d.ts +10 -0
  8. package/dist/src/components/SquashNode.d.ts.map +1 -0
  9. package/dist/src/components/TournamentBracket.d.ts +4 -0
  10. package/dist/src/components/TournamentBracket.d.ts.map +1 -0
  11. package/dist/src/constants/index.d.ts +3 -0
  12. package/dist/src/constants/index.d.ts.map +1 -0
  13. package/dist/src/constants/node.d.ts +127 -0
  14. package/dist/src/constants/node.d.ts.map +1 -0
  15. package/dist/src/constants/tournament.d.ts +4 -0
  16. package/dist/src/constants/tournament.d.ts.map +1 -0
  17. package/dist/src/contexts/BracketThemeContext.d.ts +16 -0
  18. package/dist/src/contexts/BracketThemeContext.d.ts.map +1 -0
  19. package/dist/src/index.d.ts +9 -0
  20. package/dist/src/index.d.ts.map +1 -0
  21. package/dist/src/types/index.d.ts +3 -0
  22. package/dist/src/types/index.d.ts.map +1 -0
  23. package/dist/src/types/squash.d.ts +18 -0
  24. package/dist/src/types/squash.d.ts.map +1 -0
  25. package/dist/src/types/tournament.d.ts +13 -0
  26. package/dist/src/types/tournament.d.ts.map +1 -0
  27. package/dist/src/utils/pathKeys.d.ts +8 -0
  28. package/dist/src/utils/pathKeys.d.ts.map +1 -0
  29. package/dist/src/utils/roundLabels.d.ts +16 -0
  30. package/dist/src/utils/roundLabels.d.ts.map +1 -0
  31. package/dist/tsconfig.tsbuildinfo +1 -0
  32. package/index.html +18 -0
  33. package/package.json +51 -0
  34. package/project.json +60 -0
  35. package/src/components/BracketToolbar.tsx +135 -0
  36. package/src/components/SquashNode.tsx +813 -0
  37. package/src/components/TournamentBracket.tsx +992 -0
  38. package/src/constants/index.ts +2 -0
  39. package/src/constants/node.ts +96 -0
  40. package/src/constants/tournament.ts +54 -0
  41. package/src/contexts/BracketThemeContext.tsx +35 -0
  42. package/src/index.ts +12 -0
  43. package/src/types/index.ts +2 -0
  44. package/src/types/squash.ts +21 -0
  45. package/src/types/tournament.ts +14 -0
  46. package/src/utils/pathKeys.ts +50 -0
  47. package/src/utils/roundLabels.ts +110 -0
  48. package/tsconfig.json +19 -0
  49. package/tsconfig.node.json +11 -0
  50. package/vite.config.ts +21 -0
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ interface BracketToolbarProps {
3
+ isDarkMode: boolean;
4
+ isNavigationMode: boolean;
5
+ onToggleDarkMode: () => void;
6
+ onToggleNavigationMode: () => void;
7
+ onExportSVG: () => void;
8
+ }
9
+ export declare const BracketToolbar: React.NamedExoticComponent<BracketToolbarProps>;
10
+ export {};
11
+ //# sourceMappingURL=BracketToolbar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BracketToolbar.d.ts","sourceRoot":"","sources":["../../../src/components/BracketToolbar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,UAAU,mBAAmB;IAC3B,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,MAAM,IAAI,CAAC;IAC7B,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,WAAW,EAAE,MAAM,IAAI,CAAC;CACzB;AA0DD,eAAO,MAAM,cAAc,iDAkEzB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import type { VertexComponentProps } from '@graph-render/types';
3
+ import type { SquashNodeRenderMode } from '../types';
4
+ interface SquashNodeProps extends VertexComponentProps {
5
+ renderMode?: SquashNodeRenderMode;
6
+ onRenderError?: (nodeId: string, error: Error) => void;
7
+ }
8
+ export declare const SquashNode: React.NamedExoticComponent<SquashNodeProps>;
9
+ export {};
10
+ //# sourceMappingURL=SquashNode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SquashNode.d.ts","sourceRoot":"","sources":["../../../src/components/SquashNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,KAAK,EAAgC,oBAAoB,EAAgB,MAAM,UAAU,CAAC;AAIjG,UAAU,eAAgB,SAAQ,oBAAoB;IACpD,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxD;AA6wBD,eAAO,MAAM,UAAU,6CAoBrB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import React from 'react';
2
+ import type { TournamentBracketProps } from '../types';
3
+ export declare const TournamentBracket: React.NamedExoticComponent<TournamentBracketProps>;
4
+ //# sourceMappingURL=TournamentBracket.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TournamentBracket.d.ts","sourceRoot":"","sources":["../../../src/components/TournamentBracket.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAC;AAYjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAopBvD,eAAO,MAAM,iBAAiB,oDA6T5B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './node';
2
+ export * from './tournament';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,127 @@
1
+ import type { SquashPlayer } from '../types/squash';
2
+ export declare const NODE_DIMENSIONS: {
3
+ readonly WIDTH: 280;
4
+ readonly HEIGHT: 112;
5
+ };
6
+ export declare const THEME_COLORS_LIGHT: {
7
+ readonly BASE_BG: "#ffffff";
8
+ readonly SURFACE_BG: "#f7f6f3";
9
+ readonly HEADER_BG: "#ffffff";
10
+ readonly HEADER_TITLE: "#2d2d2d";
11
+ readonly HEADER_MUTED: "#6b6b6b";
12
+ readonly HEADER_BORDER: "#ece9e2";
13
+ readonly ICON_BG: "#7c9070";
14
+ readonly ICON_FG: "#ffffff";
15
+ readonly BADGE_BG: "#f1eee8";
16
+ readonly BADGE_DOT: "#7c9070";
17
+ readonly BADGE_TEXT: "#6b6b6b";
18
+ readonly HOVER_BG: "#faf8f2";
19
+ readonly CREST_BG: "#c9b8a8";
20
+ readonly CREST_TEXT: "#5d4d3f";
21
+ readonly WINNER_CREST_BG: "#7c9070";
22
+ readonly WINNER_CREST_TEXT: "#ffffff";
23
+ readonly ROW_BG: "#ffffff";
24
+ readonly ROW_BG_WINNER: "#ffffff";
25
+ readonly ROW_HOVER_BG: "#f7f3ec";
26
+ readonly FOREGROUND: "#2d2d2d";
27
+ readonly MUTED_TEXT: "#8e8e93";
28
+ readonly DARK_TEXT: "#2d2d2d";
29
+ readonly BORDER: "#f0efec";
30
+ readonly DARK_BORDER: "#e5e4e1";
31
+ readonly CARD_BORDER: "#d9d6cf";
32
+ readonly WINNER_ACCENT: "#2d2d2d";
33
+ readonly WINNING_SCORE: "#2d2d2d";
34
+ readonly LIVE_WINNING_SCORE: "#2d2d2d";
35
+ readonly LIVE_INDICATOR: "#d97706";
36
+ readonly UPCOMING_TEXT: "#b0aba3";
37
+ readonly EDGE_COLOR: "#d9d6cf";
38
+ readonly LABEL_TEXT: "#8e8e93";
39
+ readonly TOOLBAR_BG: "#f7f3ec";
40
+ readonly TOOLBAR_BORDER: "#e4ded2";
41
+ readonly TOOLBAR_ICON: "#4b5563";
42
+ readonly TOOLBAR_ICON_ACTIVE: "#2d2d2d";
43
+ readonly SHADOW: "0 20px 48px rgba(45, 45, 45, 0.08)";
44
+ readonly CARD_SHADOW: "0 10px 24px rgba(45, 45, 45, 0.06)";
45
+ };
46
+ export declare const THEME_COLORS_DARK: {
47
+ readonly BASE_BG: "#1f242b";
48
+ readonly SURFACE_BG: "#191e24";
49
+ readonly HEADER_BG: "#232931";
50
+ readonly HEADER_TITLE: "#f7f5ef";
51
+ readonly HEADER_MUTED: "#c4beb1";
52
+ readonly HEADER_BORDER: "#313844";
53
+ readonly ICON_BG: "#7c9070";
54
+ readonly ICON_FG: "#ffffff";
55
+ readonly BADGE_BG: "#232b33";
56
+ readonly BADGE_DOT: "#9ab08d";
57
+ readonly BADGE_TEXT: "#d8d2c7";
58
+ readonly HOVER_BG: "#242b33";
59
+ readonly CREST_BG: "#53473e";
60
+ readonly CREST_TEXT: "#efe7db";
61
+ readonly WINNER_CREST_BG: "#8da180";
62
+ readonly WINNER_CREST_TEXT: "#09120a";
63
+ readonly ROW_BG: "#232931";
64
+ readonly ROW_BG_WINNER: "#232931";
65
+ readonly ROW_HOVER_BG: "#2a313a";
66
+ readonly FOREGROUND: "#f7f5ef";
67
+ readonly MUTED_TEXT: "#a7aaaf";
68
+ readonly DARK_TEXT: "#f7f5ef";
69
+ readonly BORDER: "#313844";
70
+ readonly DARK_BORDER: "#47515f";
71
+ readonly CARD_BORDER: "#5d6470";
72
+ readonly WINNER_ACCENT: "#f7f5ef";
73
+ readonly WINNING_SCORE: "#f7f5ef";
74
+ readonly LIVE_WINNING_SCORE: "#f7f5ef";
75
+ readonly LIVE_INDICATOR: "#f59e0b";
76
+ readonly UPCOMING_TEXT: "#70757d";
77
+ readonly EDGE_COLOR: "#5d6470";
78
+ readonly LABEL_TEXT: "#a7aaaf";
79
+ readonly TOOLBAR_BG: "#232b33";
80
+ readonly TOOLBAR_BORDER: "#38424d";
81
+ readonly TOOLBAR_ICON: "#d7d1c6";
82
+ readonly TOOLBAR_ICON_ACTIVE: "#ffffff";
83
+ readonly SHADOW: "0 22px 54px rgba(0, 0, 0, 0.28)";
84
+ readonly CARD_SHADOW: "0 12px 32px rgba(0, 0, 0, 0.24)";
85
+ };
86
+ export declare const THEME_COLORS: {
87
+ readonly BASE_BG: "#ffffff";
88
+ readonly SURFACE_BG: "#f7f6f3";
89
+ readonly HEADER_BG: "#ffffff";
90
+ readonly HEADER_TITLE: "#2d2d2d";
91
+ readonly HEADER_MUTED: "#6b6b6b";
92
+ readonly HEADER_BORDER: "#ece9e2";
93
+ readonly ICON_BG: "#7c9070";
94
+ readonly ICON_FG: "#ffffff";
95
+ readonly BADGE_BG: "#f1eee8";
96
+ readonly BADGE_DOT: "#7c9070";
97
+ readonly BADGE_TEXT: "#6b6b6b";
98
+ readonly HOVER_BG: "#faf8f2";
99
+ readonly CREST_BG: "#c9b8a8";
100
+ readonly CREST_TEXT: "#5d4d3f";
101
+ readonly WINNER_CREST_BG: "#7c9070";
102
+ readonly WINNER_CREST_TEXT: "#ffffff";
103
+ readonly ROW_BG: "#ffffff";
104
+ readonly ROW_BG_WINNER: "#ffffff";
105
+ readonly ROW_HOVER_BG: "#f7f3ec";
106
+ readonly FOREGROUND: "#2d2d2d";
107
+ readonly MUTED_TEXT: "#8e8e93";
108
+ readonly DARK_TEXT: "#2d2d2d";
109
+ readonly BORDER: "#f0efec";
110
+ readonly DARK_BORDER: "#e5e4e1";
111
+ readonly CARD_BORDER: "#d9d6cf";
112
+ readonly WINNER_ACCENT: "#2d2d2d";
113
+ readonly WINNING_SCORE: "#2d2d2d";
114
+ readonly LIVE_WINNING_SCORE: "#2d2d2d";
115
+ readonly LIVE_INDICATOR: "#d97706";
116
+ readonly UPCOMING_TEXT: "#b0aba3";
117
+ readonly EDGE_COLOR: "#d9d6cf";
118
+ readonly LABEL_TEXT: "#8e8e93";
119
+ readonly TOOLBAR_BG: "#f7f3ec";
120
+ readonly TOOLBAR_BORDER: "#e4ded2";
121
+ readonly TOOLBAR_ICON: "#4b5563";
122
+ readonly TOOLBAR_ICON_ACTIVE: "#2d2d2d";
123
+ readonly SHADOW: "0 20px 48px rgba(45, 45, 45, 0.08)";
124
+ readonly CARD_SHADOW: "0 10px 24px rgba(45, 45, 45, 0.06)";
125
+ };
126
+ export declare const DEFAULT_PLAYERS: SquashPlayer[];
127
+ //# sourceMappingURL=node.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"node.d.ts","sourceRoot":"","sources":["../../../src/constants/node.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,eAAO,MAAM,eAAe;;;CAGlB,CAAC;AAEX,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCrB,CAAC;AAEX,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuCpB,CAAC;AAGX,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAqB,CAAC;AAE/C,eAAO,MAAM,eAAe,EAAE,YAAY,EAGzC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { GraphConfig } from '@graph-render/types';
2
+ export declare const DEFAULT_TOURNAMENT_CONFIG: Readonly<GraphConfig>;
3
+ export declare const DARK_TOURNAMENT_CONFIG: Readonly<GraphConfig>;
4
+ //# sourceMappingURL=tournament.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.d.ts","sourceRoot":"","sources":["../../../src/constants/tournament.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAIvD,eAAO,MAAM,yBAAyB,EAAE,QAAQ,CAAC,WAAW,CA+BlD,CAAC;AAEX,eAAO,MAAM,sBAAsB,EAAE,QAAQ,CAAC,WAAW,CAgB/C,CAAC"}
@@ -0,0 +1,16 @@
1
+ import React from 'react';
2
+ import { THEME_COLORS_LIGHT, THEME_COLORS_DARK } from '../constants';
3
+ export type ThemeMode = 'light' | 'dark';
4
+ type ThemeColors = typeof THEME_COLORS_LIGHT | typeof THEME_COLORS_DARK;
5
+ interface BracketThemeContextValue {
6
+ mode: ThemeMode;
7
+ colors: ThemeColors;
8
+ }
9
+ export declare const useBracketTheme: () => BracketThemeContextValue;
10
+ interface BracketThemeProviderProps {
11
+ mode: ThemeMode;
12
+ children: React.ReactNode;
13
+ }
14
+ export declare const BracketThemeProvider: React.FC<BracketThemeProviderProps>;
15
+ export {};
16
+ //# sourceMappingURL=BracketThemeContext.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BracketThemeContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/BracketThemeContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAErE,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAEzC,KAAK,WAAW,GAAG,OAAO,kBAAkB,GAAG,OAAO,iBAAiB,CAAC;AAExE,UAAU,wBAAwB;IAChC,IAAI,EAAE,SAAS,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;CACrB;AAOD,eAAO,MAAM,eAAe,gCAA8C,CAAC;AAE3E,UAAU,yBAAyB;IACjC,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAUpE,CAAC"}
@@ -0,0 +1,9 @@
1
+ export { SquashNode } from './components/SquashNode';
2
+ export { TournamentBracket } from './components/TournamentBracket';
3
+ export { BracketToolbar } from './components/BracketToolbar';
4
+ export { injectTournamentPathKeys } from './utils/pathKeys';
5
+ export { roundLabelsForGraph, roundLabelsForMatchCount, roundLabelsForRoundCount, } from './utils/roundLabels';
6
+ export { BracketThemeProvider, useBracketTheme } from './contexts/BracketThemeContext';
7
+ export type { ThemeMode } from './contexts/BracketThemeContext';
8
+ export type { SquashNodeRenderMode, TournamentBracketProps } from './types';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,wBAAwB,GACzB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACvF,YAAY,EAAE,SAAS,EAAE,MAAM,gCAAgC,CAAC;AAChE,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './squash';
2
+ export * from './tournament';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { NodeData, PositionedNode } from '@graph-render/types';
2
+ export interface SquashPlayer {
3
+ name: string;
4
+ seed?: number;
5
+ country?: string;
6
+ }
7
+ export type MatchStatus = 'completed' | 'live' | 'upcoming';
8
+ export interface SquashMatchMeta {
9
+ stage?: string;
10
+ players?: SquashPlayer[];
11
+ sets?: number[][];
12
+ tiebreaks?: (number[] | null)[];
13
+ status?: MatchStatus;
14
+ currentSet?: number;
15
+ }
16
+ export type SquashNodeData = NodeData<unknown, SquashMatchMeta, string>;
17
+ export type SquashPositionedNode = PositionedNode<unknown, SquashMatchMeta, string>;
18
+ //# sourceMappingURL=squash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"squash.d.ts","sourceRoot":"","sources":["../../../src/types/squash.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAEpE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,CAAC;AAE5D,MAAM,WAAW,eAAe;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,YAAY,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,CAAC;IAClB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,EAAE,CAAC;IAChC,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC;AACxE,MAAM,MAAM,oBAAoB,GAAG,cAAc,CAAC,OAAO,EAAE,eAAe,EAAE,MAAM,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { GraphConfig, VertexComponent, NxGraphInput } from '@graph-render/types';
2
+ export type SquashNodeRenderMode = 'svg' | 'html' | 'export' | 'server';
3
+ export interface TournamentBracketProps {
4
+ graph: NxGraphInput;
5
+ config?: Partial<GraphConfig>;
6
+ vertexComponent?: VertexComponent;
7
+ nodeRenderMode?: SquashNodeRenderMode;
8
+ title?: string;
9
+ badgeText?: string;
10
+ showToolbar?: boolean;
11
+ onInvalidNode?: (nodeId: string, error: Error) => void;
12
+ }
13
+ //# sourceMappingURL=tournament.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tournament.d.ts","sourceRoot":"","sources":["../../../src/types/tournament.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAEtF,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAExE,MAAM,WAAW,sBAAsB;IACrC,KAAK,EAAE,YAAY,CAAC;IACpB,MAAM,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;IAC9B,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,cAAc,CAAC,EAAE,oBAAoB,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,KAAK,IAAI,CAAC;CACxD"}
@@ -0,0 +1,8 @@
1
+ import type { NxGraphInput } from '@graph-render/types';
2
+ /**
3
+ * Enrich tournament nodes with a generic `meta.pathKeys` array derived from
4
+ * `meta.players[*].name` so shared graph path traversal can follow players
5
+ * across rounds.
6
+ */
7
+ export declare function injectTournamentPathKeys(graph: NxGraphInput): NxGraphInput;
8
+ //# sourceMappingURL=pathKeys.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pathKeys.d.ts","sourceRoot":"","sources":["../../../src/utils/pathKeys.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAExD;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,YAAY,GAAG,YAAY,CA0C1E"}
@@ -0,0 +1,16 @@
1
+ import type { NxGraphInput } from '@graph-render/types';
2
+ /**
3
+ * Derive round labels from the number of rounds.
4
+ * Example: 4 rounds -> ["1/8", "1/4", "1/2", "Final"].
5
+ */
6
+ export declare function roundLabelsForRoundCount(roundCount: number): string[];
7
+ /**
8
+ * Derive round labels from the number of matches (nodes).
9
+ * Example: 15 matches -> 4 rounds => ["1/8", "1/4", "1/2", "Final"].
10
+ */
11
+ export declare function roundLabelsForMatchCount(matchCount: number): string[];
12
+ /**
13
+ * Convenience helper to derive labels directly from a graph definition.
14
+ */
15
+ export declare function roundLabelsForGraph(graph: NxGraphInput): string[];
16
+ //# sourceMappingURL=roundLabels.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"roundLabels.d.ts","sourceRoot":"","sources":["../../../src/utils/roundLabels.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAqExD;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAmBrE;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAIrE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,EAAE,CAEjE"}
@@ -0,0 +1 @@
1
+ {"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.es2023.d.ts","../../../node_modules/typescript/lib/lib.es2024.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2023.array.d.ts","../../../node_modules/typescript/lib/lib.es2023.collection.d.ts","../../../node_modules/typescript/lib/lib.es2023.intl.d.ts","../../../node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../../node_modules/typescript/lib/lib.es2024.collection.d.ts","../../../node_modules/typescript/lib/lib.es2024.object.d.ts","../../../node_modules/typescript/lib/lib.es2024.promise.d.ts","../../../node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2024.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.array.d.ts","../../../node_modules/typescript/lib/lib.esnext.collection.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../../node_modules/typescript/lib/lib.esnext.promise.d.ts","../../../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../../node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../../node_modules/typescript/lib/lib.esnext.float16.d.ts","../../../node_modules/typescript/lib/lib.esnext.error.d.ts","../../../node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../types/dist/node.d.ts","../../types/dist/config.d.ts","../../types/dist/edge.d.ts","../../types/dist/graph.d.ts","../../types/dist/rendering.d.ts","../../types/dist/routing.d.ts","../../types/dist/layout.d.ts","../../types/dist/react.d.ts","../../types/dist/graph-utils.d.ts","../../types/dist/svg.d.ts","../../types/dist/index.d.ts","../src/types/squash.ts","../src/types/tournament.ts","../src/types/index.ts","../src/constants/node.ts","../src/constants/tournament.ts","../src/constants/index.ts","../src/contexts/BracketThemeContext.tsx","../src/components/SquashNode.tsx","../../../node_modules/@types/react-dom/index.d.ts","../../../node_modules/@types/react-dom/client.d.ts","../../react-graph-render/dist/src/components/Graph.d.ts","../../core-graph-render/dist/rendering/svg.d.ts","../../core-graph-render/dist/rendering/defaultRenderers.d.ts","../../core-graph-render/dist/rendering/utils.d.ts","../../core-graph-render/dist/rendering/index.d.ts","../../core-graph-render/dist/layouts/grid.d.ts","../../core-graph-render/dist/layouts/centered.d.ts","../../core-graph-render/dist/layouts/radialTree.d.ts","../../core-graph-render/dist/layouts/tree.d.ts","../../core-graph-render/dist/layouts/dag.d.ts","../../core-graph-render/dist/layouts/forceDirected.d.ts","../../core-graph-render/dist/layouts/compactBracket.d.ts","../../core-graph-render/dist/layouts/orthogonalFlow.d.ts","../../core-graph-render/dist/layouts/index.d.ts","../../core-graph-render/dist/edges/routing.d.ts","../../core-graph-render/dist/edges/pathBuilder.d.ts","../../core-graph-render/dist/edges/collision.d.ts","../../core-graph-render/dist/edges/index.d.ts","../../core-graph-render/dist/utils/graphParser.d.ts","../../core-graph-render/dist/utils/constants.d.ts","../../core-graph-render/dist/utils/graphTraversal.d.ts","../../core-graph-render/dist/utils/nodeSizing.d.ts","../../core-graph-render/dist/utils/nodeMetrics.d.ts","../../core-graph-render/dist/utils/config.d.ts","../../core-graph-render/dist/utils/index.d.ts","../../core-graph-render/dist/index.d.ts","../../react-graph-render/dist/src/components/EdgePath.d.ts","../../react-graph-render/dist/src/utils/columns.d.ts","../../react-graph-render/dist/src/index.d.ts","../src/components/BracketToolbar.tsx","../src/utils/pathKeys.ts","../src/utils/roundLabels.ts","../src/components/TournamentBracket.tsx","../src/index.ts","../../../node_modules/vite/types/hmrPayload.d.ts","../../../node_modules/vite/types/customEvent.d.ts","../../../node_modules/vite/types/hot.d.ts","../../../node_modules/vite/types/importGlob.d.ts","../../../node_modules/vite/types/importMeta.d.ts","../../../node_modules/vite/client.d.ts"],"fileIdsList":[[86],[83,84,85],[147],[143],[144],[145,146],[98],[123,124,125],[98,113,122,126,133],[98,114,115,116,117,118,119,120,121],[110,111,112],[127,128,129,130,131,132],[86,134],[86,98],[98,109,134,135,136],[86,87],[86,87,98,101,104,105],[86,87,98,101,104,105,106,107,108,137,138,139,140],[87,102,103],[87,99],[87,98,102],[86,87,104],[87,101,105,106,138,139,140,141],[87,99,100],[87,98],[88],[88,89],[90],[88,90],[88,89,90,91,92,93,94,95,96,97],[88,89,90],[86,88,89,90,91,93,94]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2e80ee7a49e8ac312cc11b77f1475804bee36b3b2bc896bead8b6e1266befb43","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac51dd7d31333793807a6abaa5ae168512b6131bd41d9c5b98477fc3b7800f9f","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"7a3aa194cfd5919c4da251ef04ea051077e22702638d4edcb9579e9101653519","affectsGlobalScope":true,"impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},"75c71865f1497b01b89a0e1532c5141e47b0fe1be38c24ac175bc70bbd73df53","69c8fd0dd8af7f0308ab72b50995d3561cdb70fa754e2ae6f64247e402813f75","19ffe34683f89c2dbfec459f437123831e94f6e291f1c4be6baa3f5ed013897d","9300ec2ce65001e7ac35cd260d10635fe80be5df44d08879450b1640134cc40b","63b801ebefdd1efb495c45716cb0fb78b851dee9038b8031ba8edfacab71ea92","0620622acb967fe2238d73889f83b05d42b37d7e29f0f8a856cdbfefac1693fc","b61028c5b619470fc15defe13fe4eefd470fce81166e922532ce6492e97be1d9","d33a1bc5b93f6545583f82727b18f92ba38311d101d98674661c158600eed99c","bbe2fcddc256f938a57a97c77ed949e962df916f78173cebe02def9c90a5e570","ce82317866553c55b10f8a869df9a44974a612449e1cee1adda8686f90a79f2f","eb3b16859edc4235a1eb695a04747a1ead5b6823b393a6140a10c3752e1ee356",{"version":"38e3c57d8e74bf7c512d7d3317efeaa2a4b7354a02526bfc5bd89287423c18eb","signature":"69dc5b4e661c37e5a66815f22ca9f888ca9a0ea7f767dc20530b6261cf290c80"},{"version":"182af9c7d6388c799fb0949b00eb8fd3f3c214b2d5d1509544abc7fffdba1624","signature":"06e04e6f757b1f1314f52abcc26cd7c41d2c6abfd734f477d63d53764f7fc32e"},"acc1955a5f15c0c0ede4a267bd4c299cc0d0e0e58ec0f051dbe37118bd509a75",{"version":"bc5f5e459d7e5bc5dcceffedf0cd977b1d6236f6ec13f5bb154ed9bfc34fd1dc","signature":"bdfec8055a4b57f6bdb229f50974da63bccf9d44f84133dc13af9639cbd94009"},{"version":"68143dffd99f2588a910dfc4c1d02ead6c59b35792301974063ff553c18dd7db","signature":"2a73802710e31d6405c17aaecb94b538adc7d0bf9a5e4a778d68d62681bb7ba6"},"1d809a41eb7c5e3f30b600a53925e636d3042d6bd72767ddf980f92ba964eaa5",{"version":"caf634895149e9eba2eea2c8b1b2830e28782327209c863740bea0bec556b171","signature":"bde08a9beb1ae7f4d7ebc955afd7c5f76c754eda25fa953b60a438c82f8ea4ae"},{"version":"1f841faa53b72b540104924ba2b89e88654697cb4713a8624894f761195ac837","signature":"83e0e1ccdbcfa251849134ddbed6bce3cb499c980f3ebfb7a9fa84cf38e90eac"},{"version":"17ed71200119e86ccef2d96b73b02ce8854b76ad6bd21b5021d4269bec527b5f","impliedFormat":1},{"version":"05321b823dd3781d0b6aac8700bfdc0c9181d56479fe52ba6a40c9196fd661a8","impliedFormat":1},"08d02df7ef8c3a2faf65168323cb3016570f7157a713d6f00ebb135d6c8cff14","ec1ba3e2b36a06c72f178ce9a3a8ec82429d7db48dbc87c12c010258b2e00319","fa1e91ceedee4ddc53ae0bf0dc54216a584a6f7f91840ffaae908d9e0dfa416d","a06b8315c444e3834f02d0f17381f70cca5cec5f7129b9319344b0dc25654dee","70ffc1f3efb41595eba467e352a5c61619e683c064a7715023f924cdb0c668bc","a53aa6bcc1ac51407bfa41bd832b11dd615b0e83683da1c5277ce0608183d88e","d6e3d0b0d93998faaea6f83cec1d98b019279abbfe53849f1dfdbc1eaaa53244","3166f64f38e309d784390256e453a31f898aefcd1681488231c4a8a2944f581b","ee38f9cf70ebbbebe3fc387b47060c9f3c2baf0c2ae75d9e1084f75cc26c2a16","e084d4088b67b2646251968f86697b5d7437a70c0cf9b5fb6b268b2be67e8a88","3facd92ab4f724f10c0cac5b8490ca4cce7e0a33ff55f7ec57fd96a6e32457b8","963f7ad729a6c02a1d7d5c357dccb37d8fefc40575762ebee9b1fb41b7ee935f","d48f74a1ddcb27196d1ca9f255182fe05652788c9d83a6fd77091900587544ab","816fdb229bb550091f58d67e1a567991a807c9619ccbbe04882adee7629c7682","e3fae6234cf3b93cf5c0e8e50e8747a5397a207a3f343cf2100c46f4afc732c5","d92d031ebc49efde80a25d16216936f9ca9c19c3365538d686ff6967675872d7","6b69eec8b7bc41bfd7bd25d703293a6cc544b857eafced81b69505e6271362ad","6f6340e35418c0b70b09e857a0c53e83bdd60f903ae65cd7e7e978a71a3365de","68d2509ba61a59772290d2959b30bc1a4789c834e9100776940c4014488e474e","4f0e11a63a83a2c8725cd70e05b163cb2e8cf894e184c3f36a653e117ab50a7b","3161e0c011f048ba77ba682e9b8d22763a15289897e91613490f6da1f58659d2","106a74a591a15556956a5b4ded3ae171b6998e6a6106fc04cf370844ab1baed5","6079455085ded32fcfc0c398f91d87f714a63aaae5a73cc695a3d749842335f1","b91a4de97983a5b4ac10e9c97d03032a39393c695cc7ed7b39e3692afddc83b8","9dcdab99e2856ab507cdcc944dfffda12e7e9ed785e6057845e1a1a177dd6e77","b81c33e40737d8197f930e84863db5191c392ed2bb5c334800befd022881a56e","d0f5b10b7e850c12a122fd4b7629d7927e57e365388627131aed61f6f54b7376","30ef62b34911ce251a61d462612ace8accf6a783046a553df2dd9a577bffb9b1","e84b8129597854cede09ef1643e6b7cc2b043340018828e1e3a1467398d22d50",{"version":"cc6b6b835f4895f61a149eccb3d81f08f7ae6a113f9b12f61c37ff578438fa91","signature":"9736bd2e2ebeb6ca72004d39d94c0536227e75ae596ecf64a878f4b724e0a2bf"},{"version":"73df54eae2834e43b8de9f1e63699bd58e43ffc71de6e784c65f5768a7d06aa2","signature":"dbc10630f9b470ad3a5279f86eafa424b88362e8cfba6d7f5cef47e9282e373b"},{"version":"9ec823fded20d108467d1f93686c7357b80bbd775b3aab0e38da8fc19c2070b0","signature":"937cef3b409744265d6a8aaf6eba87a17e50a9f984f28b23679083d2999e560b"},{"version":"36b552022db2618bee8540bea0367ebdab4362f165263d65fd820db07b860298","signature":"121e9d74c1cac7c3f95762cae233b669aae9e6e1a8d9b290eaa9e8c983f5a4d8"},{"version":"f2e430f61102ef2edf2211ed947bb3f5641cf035c023e878bcff2e27b3d39063","signature":"dccf9e2862d689a1be25e4e5ebf8ea9c6cf9be180f105e6682df06bf171de669"},{"version":"282f98006ed7fa9bb2cd9bdbe2524595cfc4bcd58a0bb3232e4519f2138df811","impliedFormat":1},{"version":"6222e987b58abfe92597e1273ad7233626285bc2d78409d4a7b113d81a83496b","impliedFormat":1},{"version":"cbe726263ae9a7bf32352380f7e8ab66ee25b3457137e316929269c19e18a2be","impliedFormat":1},{"version":"7f698624bbbb060ece7c0e51b7236520ebada74b747d7523c7df376453ed6fea","impliedFormat":1},{"version":"4025a454b1ca489b179ee8c684bdd70ff8c1967e382076ade53e7e4653e1daec","affectsGlobalScope":true,"impliedFormat":1},{"version":"984c09345059b76fc4221c2c54e53511f4c27a0794dfd6e9f81dc60f0b564e05","affectsGlobalScope":true,"impliedFormat":99}],"root":[[99,106],[138,142]],"options":{"allowImportingTsExtensions":false,"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"esModuleInterop":true,"jsx":4,"module":99,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":false,"noUnusedParameters":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99,"useDefineForClassFields":true},"referencedMap":[[108,1],[107,1],[86,2],[87,1],[148,3],[144,4],[145,5],[147,6],[125,7],[126,8],[124,7],[123,7],[134,9],[115,7],[120,7],[118,7],[119,7],[114,7],[122,10],[121,7],[116,7],[117,7],[111,7],[113,11],[110,7],[132,7],[128,7],[127,7],[129,7],[133,12],[131,7],[130,7],[135,13],[109,14],[137,15],[136,7],[138,16],[106,17],[141,18],[104,19],[102,20],[103,21],[105,22],[142,23],[101,24],[99,25],[100,25],[139,25],[140,25],[89,26],[90,27],[96,28],[91,29],[98,30],[94,31],[95,32],[92,29],[93,27],[97,7]],"latestChangedDtsFile":"./src/index.d.ts","version":"5.9.3"}
package/index.html ADDED
@@ -0,0 +1,18 @@
1
+ <!doctype html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8" />
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
6
+ <title>Squash Champions Bracket</title>
7
+ <link rel="preconnect" href="https://fonts.googleapis.com" />
8
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
9
+ <link
10
+ href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap"
11
+ rel="stylesheet"
12
+ />
13
+ </head>
14
+ <body>
15
+ <div id="root"></div>
16
+ <script type="module" src="/src/main.tsx"></script>
17
+ </body>
18
+ </html>
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@graph-render/tournament-tree",
3
+ "version": "1.0.1",
4
+ "private": false,
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "type": "module",
9
+ "main": "dist/index.js",
10
+ "module": "dist/index.js",
11
+ "types": "dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js",
16
+ "default": "./dist/index.js"
17
+ }
18
+ },
19
+ "scripts": {
20
+ "dev": "vite",
21
+ "build": "vite build && tsc --emitDeclarationOnly --declaration --declarationMap",
22
+ "preview": "vite preview",
23
+ "lint": "eslint src --ext .ts,.tsx",
24
+ "storybook": "storybook dev -p 6006",
25
+ "build-storybook": "storybook build"
26
+ },
27
+ "dependencies": {
28
+ "@graph-render/react": "1.0.1",
29
+ "@graph-render/types": "1.0.1"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^18.2.0",
33
+ "react-dom": "^18.2.0"
34
+ },
35
+ "devDependencies": {
36
+ "react": "^18.3.1",
37
+ "react-dom": "^18.3.1",
38
+ "@types/react": "^18.3.10",
39
+ "@types/react-dom": "^18.3.0",
40
+ "@storybook/addon-essentials": "^8.1.0",
41
+ "@storybook/addon-interactions": "^8.1.0",
42
+ "@storybook/react": "^8.1.0",
43
+ "@storybook/react-vite": "^8.1.0",
44
+ "@storybook/test": "^8.1.0",
45
+ "@vitejs/plugin-react": "^5.0.4",
46
+ "eslint": "^8.57.0",
47
+ "eslint-plugin-react": "^7.35.0",
48
+ "typescript": "^5.4.5",
49
+ "vite": "^5.4.0"
50
+ }
51
+ }
package/project.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@graph-render/tournament-tree",
3
+ "$schema": "../../node_modules/nx/schemas/project-schema.json",
4
+ "sourceRoot": "src/react-tournament-tree/src",
5
+ "projectType": "library",
6
+ "targets": {
7
+ "build": {
8
+ "executor": "nx:run-commands",
9
+ "outputs": ["{projectRoot}/dist"],
10
+ "options": {
11
+ "commands": ["vite build", "tsc --emitDeclarationOnly --declaration --declarationMap"],
12
+ "cwd": "{projectRoot}",
13
+ "parallel": false
14
+ },
15
+ "dependsOn": ["^build"]
16
+ },
17
+ "dev": {
18
+ "executor": "@nx/vite:dev-server",
19
+ "options": {
20
+ "buildTarget": "@graph-render/tournament-tree:build"
21
+ }
22
+ },
23
+ "preview": {
24
+ "executor": "@nx/vite:preview-server",
25
+ "options": {
26
+ "buildTarget": "@graph-render/tournament-tree:build"
27
+ }
28
+ },
29
+ "lint": {
30
+ "executor": "nx:run-commands",
31
+ "options": {
32
+ "command": "eslint src --ext .ts,.tsx",
33
+ "cwd": "{projectRoot}"
34
+ }
35
+ },
36
+ "format": {
37
+ "executor": "nx:run-commands",
38
+ "options": {
39
+ "command": "prettier --write src",
40
+ "cwd": "{projectRoot}"
41
+ }
42
+ },
43
+ "storybook": {
44
+ "executor": "nx:run-commands",
45
+ "options": {
46
+ "command": "storybook dev -p 6006",
47
+ "cwd": "{projectRoot}"
48
+ }
49
+ },
50
+ "build-storybook": {
51
+ "executor": "nx:run-commands",
52
+ "outputs": ["{projectRoot}/storybook-static"],
53
+ "options": {
54
+ "command": "storybook build",
55
+ "cwd": "{projectRoot}"
56
+ }
57
+ }
58
+ },
59
+ "tags": ["type:library", "framework:react"]
60
+ }