@maestro_io/maestro-web-sdk 1.0.0 → 2.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.
- package/dist/MaestroEventDelegate.d.ts +9 -0
- package/dist/components/atoms/BaseButton/BaseButton.d.ts +9 -0
- package/dist/components/atoms/BaseButton/index.d.ts +2 -0
- package/dist/components/atoms/Image/index.d.ts +9 -0
- package/dist/components/atoms/SvgIcon/BetsIcon.d.ts +7 -0
- package/dist/components/atoms/SvgIcon/FantasyIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/Icon.d.ts +28 -0
- package/dist/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/PlayIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/StatsIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/WarningIcon.d.ts +6 -0
- package/dist/components/atoms/SvgIcon/index.d.ts +2 -0
- package/dist/components/core/App/App.d.ts +10 -0
- package/dist/components/core/App/index.d.ts +2 -0
- package/dist/components/core/PanelManager/PanelManager.d.ts +14 -0
- package/dist/components/core/PanelManager/index.d.ts +2 -0
- package/dist/components/molecules/ActionButton/ActionButton.d.ts +50 -0
- package/dist/components/molecules/ActionButton/index.d.ts +2 -0
- package/dist/components/molecules/PanelNavButton/PanelNavButton.d.ts +107 -0
- package/dist/components/molecules/PanelNavButton/index.d.ts +2 -0
- package/dist/components/molecules/ScrollableGradient/ScrollableGradient.d.ts +11 -0
- package/dist/components/molecules/ScrollableGradient/index.d.ts +2 -0
- package/dist/components/molecules/SegmentButton/SegmentButton.d.ts +10 -0
- package/dist/components/molecules/SegmentButton/index.d.ts +2 -0
- package/dist/components/molecules/WatchButton/WatchButton.d.ts +10 -0
- package/dist/components/molecules/WatchButton/index.d.ts +2 -0
- package/dist/components/organisms/PanelNavigation/PanelNavigation.d.ts +15 -0
- package/dist/components/organisms/PanelNavigation/index.d.ts +2 -0
- package/dist/components/organisms/SegmentController/SegmentController.d.ts +14 -0
- package/dist/components/organisms/SegmentController/index.d.ts +2 -0
- package/dist/external/AxiosNetworkClient.d.ts +15 -0
- package/dist/external/LocalStorageCacheManager.d.ts +10 -0
- package/dist/external/ReactRenderer.d.ts +26 -0
- package/dist/external/ports/cacheManager.d.ts +15 -0
- package/dist/external/ports/networkClient.d.ts +5 -0
- package/dist/external/ports/renderer.d.ts +9 -0
- package/dist/external/spatial-navigation/index.d.ts +5 -0
- package/dist/external/spatial-navigation/measureLayout.d.ts +2 -0
- package/dist/external/spatial-navigation/spatialNavigation.d.ts +166 -0
- package/dist/external/spatial-navigation/utils.d.ts +15 -0
- package/dist/external/spatial-navigation/visualDebugger.d.ts +17 -0
- package/dist/external/spatial-navigation/withFocusable.d.ts +81 -0
- package/dist/helpers/Observable.d.ts +12 -0
- package/dist/helpers/deliver-focus.d.ts +5 -0
- package/dist/helpers/withRemoteControl.d.ts +47 -0
- package/dist/index.d.ts +60 -382
- package/dist/interfaces/IMaestroEvent.d.ts +62 -0
- package/dist/interfaces/IMaestroEventDelegate.d.ts +18 -0
- package/dist/interfaces/IMaestroManager.d.ts +82 -0
- package/dist/maestro-web-sdk.umd.js +2 -3
- package/dist/maestro-web-sdk.umd.js.map +1 -1
- package/dist/models/IModel.d.ts +7 -0
- package/dist/models/IPanel.d.ts +20 -0
- package/dist/models/ITheme.d.ts +77 -0
- package/dist/modules/key-plays/constants.d.ts +3 -0
- package/dist/modules/key-plays/interfaces/IKeyPlays.d.ts +31 -0
- package/dist/modules/key-plays/interfaces/IKeyPlaysResponse.d.ts +44 -0
- package/dist/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +9 -0
- package/dist/modules/key-plays/view/KeyPlayCardView.d.ts +115 -0
- package/dist/modules/key-plays/view/KeyPlayErrorStateView.d.ts +11 -0
- package/dist/modules/key-plays/view/KeyPlaysView.d.ts +53 -0
- package/dist/modules/key-plays/view-model/KeyPlaysViewModel.d.ts +29 -0
- package/dist/services/NetworkManager.d.ts +13 -0
- package/dist/services/ThemeManager/constants.d.ts +2 -0
- package/dist/view-models/MaestroEventViewModel.d.ts +37 -0
- package/dist/view-models/PanelManagerViewModel.d.ts +18 -0
- package/dist/view-models/ViewModel.d.ts +12 -0
- package/dist/view-models/index.d.ts +17 -0
- package/package.json +64 -36
- package/dist/BetsIcon-UrnN4lvP.js +0 -22
- package/dist/BetsIcon-UrnN4lvP.js.map +0 -1
- package/dist/FantasyIcon-DmloKsq_.js +0 -24
- package/dist/FantasyIcon-DmloKsq_.js.map +0 -1
- package/dist/KeyPlayErrorStateView-Dk89rtUq.js +0 -112
- package/dist/KeyPlayErrorStateView-Dk89rtUq.js.map +0 -1
- package/dist/KeyPlaysIcon-Br9gu_Zu.js +0 -24
- package/dist/KeyPlaysIcon-Br9gu_Zu.js.map +0 -1
- package/dist/KeyPlaysView-Br-88ytG.js +0 -174
- package/dist/KeyPlaysView-Br-88ytG.js.map +0 -1
- package/dist/PlayIcon-CNKWNaLP.js +0 -24
- package/dist/PlayIcon-CNKWNaLP.js.map +0 -1
- package/dist/StatsIcon-Ds4hriWX.js +0 -25
- package/dist/StatsIcon-Ds4hriWX.js.map +0 -1
- package/dist/WarningIcon-BuzZKL26.js +0 -24
- package/dist/WarningIcon-BuzZKL26.js.map +0 -1
- package/dist/index-BaSckwps.js +0 -2998
- package/dist/index-BaSckwps.js.map +0 -1
- package/dist/index-DXErYNZH.js +0 -151
- package/dist/index-DXErYNZH.js.map +0 -1
- package/dist/index-q5GKgbOd.js +0 -56
- package/dist/index-q5GKgbOd.js.map +0 -1
- package/dist/maestro-web-sdk.esm.js +0 -6
- package/dist/maestro-web-sdk.esm.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
package/dist/index-DXErYNZH.js
DELETED
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import t, { useSyncExternalStore as r } from "react";
|
|
2
|
-
import { S as m, d as l, P as y } from "./index-BaSckwps.js";
|
|
3
|
-
const u = {
|
|
4
|
-
borderRadius: 6,
|
|
5
|
-
display: "flex",
|
|
6
|
-
justifyContent: "center",
|
|
7
|
-
alignItems: "center",
|
|
8
|
-
cursor: "pointer",
|
|
9
|
-
width: "100%",
|
|
10
|
-
border: "none"
|
|
11
|
-
}, d = (e) => {
|
|
12
|
-
const n = {
|
|
13
|
-
...u,
|
|
14
|
-
...e.style
|
|
15
|
-
};
|
|
16
|
-
return /* @__PURE__ */ t.createElement("button", { style: n, ...e }, e.children);
|
|
17
|
-
}, E = t.lazy(() => import("./KeyPlaysIcon-Br9gu_Zu.js")), g = t.lazy(() => import("./PlayIcon-CNKWNaLP.js")), h = t.lazy(() => import("./BetsIcon-UrnN4lvP.js")), v = t.lazy(() => import("./StatsIcon-Ds4hriWX.js")), N = t.lazy(() => import("./FantasyIcon-DmloKsq_.js")), P = t.lazy(() => import("./WarningIcon-BuzZKL26.js")), b = {
|
|
18
|
-
keyPlays: E,
|
|
19
|
-
play: g,
|
|
20
|
-
bets: h,
|
|
21
|
-
stats: v,
|
|
22
|
-
fantasy: N,
|
|
23
|
-
warning: P
|
|
24
|
-
}, i = (e) => /* @__PURE__ */ t.createElement("div", { style: { width: e.width, height: e.height } }), f = (e) => {
|
|
25
|
-
const n = b[e.iconName];
|
|
26
|
-
return n ? /* @__PURE__ */ t.createElement(
|
|
27
|
-
t.Suspense,
|
|
28
|
-
{
|
|
29
|
-
fallback: /* @__PURE__ */ t.createElement(i, { width: e.width, height: e.height })
|
|
30
|
-
},
|
|
31
|
-
/* @__PURE__ */ t.createElement(
|
|
32
|
-
n,
|
|
33
|
-
{
|
|
34
|
-
iconName: e.iconName,
|
|
35
|
-
height: e.height,
|
|
36
|
-
width: e.width
|
|
37
|
-
}
|
|
38
|
-
)
|
|
39
|
-
) : /* @__PURE__ */ t.createElement(i, { width: e.width, height: e.height });
|
|
40
|
-
}, S = 10009, w = ({ onBack: e, onLeft: n, active: a }) => {
|
|
41
|
-
t.useEffect(() => {
|
|
42
|
-
const s = new AbortController();
|
|
43
|
-
return window.addEventListener(
|
|
44
|
-
"keydown",
|
|
45
|
-
(o) => {
|
|
46
|
-
a && ((o.keyCode === S || o.key === "b") && (e == null || e(o)), (o.key === "ArrowLeft" || o.keyCode === 37) && (n == null || n(o)));
|
|
47
|
-
},
|
|
48
|
-
{ signal: s.signal }
|
|
49
|
-
), () => {
|
|
50
|
-
s.abort();
|
|
51
|
-
};
|
|
52
|
-
}, [a, e, n]);
|
|
53
|
-
}, A = (e) => {
|
|
54
|
-
const n = m.getMaestroEventViewModel();
|
|
55
|
-
e.dataset.focused = "false", l.pause(), n.delegate.startFocusManagement();
|
|
56
|
-
}, z = (e) => {
|
|
57
|
-
const { ref: n, focused: a } = l.useFocusable({
|
|
58
|
-
focusKey: `PANEL_NAV_BUTTON_${e.index}`,
|
|
59
|
-
onFocus: e.onEnter
|
|
60
|
-
});
|
|
61
|
-
return w({
|
|
62
|
-
active: e.index === 0 && a,
|
|
63
|
-
onLeft: () => {
|
|
64
|
-
A(n.current);
|
|
65
|
-
}
|
|
66
|
-
}), /* @__PURE__ */ t.createElement(
|
|
67
|
-
"div",
|
|
68
|
-
{
|
|
69
|
-
className: [
|
|
70
|
-
"panel-nav-button-container",
|
|
71
|
-
"T02",
|
|
72
|
-
e.active ? "panel-nav-button-active" : ""
|
|
73
|
-
].join(" "),
|
|
74
|
-
ref: n
|
|
75
|
-
},
|
|
76
|
-
/* @__PURE__ */ t.createElement(d, null, /* @__PURE__ */ t.createElement(f, { iconName: e.iconName, height: 36, width: 36 })),
|
|
77
|
-
e.children
|
|
78
|
-
);
|
|
79
|
-
}, I = (e) => {
|
|
80
|
-
const { ref: n, focusKey: a } = l.useFocusable({
|
|
81
|
-
focusKey: "PANEL_NAVIGATION"
|
|
82
|
-
});
|
|
83
|
-
return /* @__PURE__ */ t.createElement(l.FocusContext.Provider, { value: a }, /* @__PURE__ */ t.createElement("div", { className: "panel-navigation", ref: n }, e.items.map((s, o) => /* @__PURE__ */ t.createElement(
|
|
84
|
-
z,
|
|
85
|
-
{
|
|
86
|
-
iconName: s.iconName,
|
|
87
|
-
key: s.title,
|
|
88
|
-
index: o,
|
|
89
|
-
onEnter: s.onEnter,
|
|
90
|
-
active: s.active
|
|
91
|
-
},
|
|
92
|
-
s.title
|
|
93
|
-
))));
|
|
94
|
-
}, c = new y(), T = t.lazy(
|
|
95
|
-
() => import("./KeyPlaysView-Br-88ytG.js")
|
|
96
|
-
), _ = {
|
|
97
|
-
keyPlays: /* @__PURE__ */ t.createElement(T, null),
|
|
98
|
-
bets: /* @__PURE__ */ t.createElement("div", { className: "panel-coming-soon T02" }, "Bets - Coming Soon"),
|
|
99
|
-
stats: /* @__PURE__ */ t.createElement("div", { className: "panel-coming-soon T02" }, "Stats - Coming Soon"),
|
|
100
|
-
fantasy: /* @__PURE__ */ t.createElement("div", { className: "panel-coming-soon T02" }, "Fantasy - Coming Soon")
|
|
101
|
-
}, C = () => {
|
|
102
|
-
const e = r(
|
|
103
|
-
(a) => c.currentPanelObservable.subscribe(a),
|
|
104
|
-
() => c.currentPanel
|
|
105
|
-
), n = [
|
|
106
|
-
{
|
|
107
|
-
iconName: "keyPlays",
|
|
108
|
-
onEnter: () => {
|
|
109
|
-
c.currentPanel = "keyPlays";
|
|
110
|
-
},
|
|
111
|
-
title: "KEY PLAYS",
|
|
112
|
-
active: e === "keyPlays"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
iconName: "bets",
|
|
116
|
-
onEnter: () => {
|
|
117
|
-
c.currentPanel = "bets";
|
|
118
|
-
},
|
|
119
|
-
title: "BETS",
|
|
120
|
-
active: e === "bets"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
iconName: "stats",
|
|
124
|
-
onEnter: () => {
|
|
125
|
-
c.currentPanel = "stats";
|
|
126
|
-
},
|
|
127
|
-
title: "STATS",
|
|
128
|
-
active: e === "stats"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
iconName: "fantasy",
|
|
132
|
-
onEnter: () => {
|
|
133
|
-
c.currentPanel = "fantasy";
|
|
134
|
-
},
|
|
135
|
-
title: "FANTASY",
|
|
136
|
-
active: e === "fantasy"
|
|
137
|
-
}
|
|
138
|
-
];
|
|
139
|
-
return /* @__PURE__ */ t.createElement("div", { className: "sdk--panel-manager" }, /* @__PURE__ */ t.createElement(I, { items: n }), /* @__PURE__ */ t.createElement("div", { className: "sdk--panel-wrapper" }, /* @__PURE__ */ t.createElement(t.Suspense, { fallback: null }, _[e])));
|
|
140
|
-
}, L = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
141
|
-
__proto__: null,
|
|
142
|
-
default: C
|
|
143
|
-
}, Symbol.toStringTag, { value: "Module" }));
|
|
144
|
-
export {
|
|
145
|
-
d as B,
|
|
146
|
-
f as I,
|
|
147
|
-
A as d,
|
|
148
|
-
L as i,
|
|
149
|
-
w as u
|
|
150
|
-
};
|
|
151
|
-
//# sourceMappingURL=index-DXErYNZH.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-DXErYNZH.js","sources":["../src/components/atoms/BaseButton/BaseButton.tsx","../src/components/atoms/SvgIcon/Icon.tsx","../src/hooks/use-remote-control.ts","../src/helpers/deliver-focus.ts","../src/components/molecules/PanelNavButton/PanelNavButton.tsx","../src/components/organisms/PanelNavigation/PanelNavigation.tsx","../src/components/core/PanelManager/PanelManager.tsx"],"sourcesContent":["import React from 'react';\nimport { ButtonHTMLAttributes } from 'react';\n\nconst ButtonStyle: React.CSSProperties = {\n borderRadius: 6,\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n cursor: 'pointer',\n width: '100%',\n border: 'none',\n};\n\ntype Props = {\n ref?: React.RefObject<HTMLButtonElement>;\n} & ButtonHTMLAttributes<HTMLButtonElement>;\n\nconst BaseButton = (props: Props) => {\n const style = {\n ...ButtonStyle,\n ...props.style,\n };\n\n return (\n <button style={style} {...props}>\n {props.children}\n </button>\n );\n};\n\nexport default BaseButton;\n","import React from 'react';\n\nconst LazyKeyPlaysIcon = React.lazy(() => import('./KeyPlaysIcon'));\nconst LazyPlayIcon = React.lazy(() => import('./PlayIcon'));\nconst LazyBetsIcon = React.lazy(() => import('./BetsIcon'));\nconst LazyStatsIcon = React.lazy(() => import('./StatsIcon'));\nconst LazyFantasyIcon = React.lazy(() => import('./FantasyIcon'));\nconst LazyWarningIcon = React.lazy(() => import('./WarningIcon'));\n\nconst ICONS_MAP = {\n keyPlays: LazyKeyPlaysIcon,\n play: LazyPlayIcon,\n bets: LazyBetsIcon,\n stats: LazyStatsIcon,\n fantasy: LazyFantasyIcon,\n warning: LazyWarningIcon,\n};\n\nexport type IconsName = keyof typeof ICONS_MAP;\n\nexport type IconProps = {\n iconName: IconsName;\n width: number;\n height: number;\n};\n\nconst Skeleton = (props: Omit<IconProps, 'iconName'>) => (\n <div style={{ width: props.width, height: props.height }} />\n);\n\nconst Icon = (props: IconProps) => {\n const Icon = ICONS_MAP[props.iconName];\n if (!Icon) {\n return <Skeleton width={props.width} height={props.height} />;\n }\n\n return (\n <React.Suspense\n fallback={<Skeleton width={props.width} height={props.height} />}\n >\n <Icon\n iconName={props.iconName}\n height={props.height}\n width={props.width}\n />\n </React.Suspense>\n );\n};\n\nexport default Icon;\n","import React from 'react';\n\ntype Props = {\n active: boolean;\n onBack?: (e: KeyboardEvent) => void;\n onLeft?: (e: KeyboardEvent) => void;\n};\n\nconst BACK_KEY_CODE = 10009;\n\nconst useRemoteControl = ({ onBack, onLeft, active }: Props) => {\n React.useEffect(() => {\n const abort = new AbortController();\n\n window.addEventListener(\n 'keydown',\n (e) => {\n if (!active) {\n return;\n }\n\n if (e.keyCode === BACK_KEY_CODE || e.key === 'b') {\n onBack?.(e);\n }\n\n if (e.key === 'ArrowLeft' || e.keyCode === 37) {\n onLeft?.(e);\n }\n },\n { signal: abort.signal }\n );\n\n return () => {\n abort.abort();\n };\n }, [active, onBack, onLeft]);\n};\n\nexport default useRemoteControl;\n","import { pause } from '@noriginmedia/norigin-spatial-navigation';\nimport SDK from '..';\n\n/**\n * @description Useful when you want to lose the focus of the SDK and delegate it to the Client App.\n */\nconst deliverFocus = (e: HTMLElement) => {\n const eventVm = SDK.getMaestroEventViewModel();\n e.dataset['focused'] = 'false';\n pause();\n eventVm.delegate.startFocusManagement();\n};\n\nexport default deliverFocus;\n","import { PropsWithChildren } from 'react';\nimport BaseButton from '@/components/atoms/BaseButton/BaseButton';\nimport Icon, { IconsName } from '@/components/atoms/SvgIcon/Icon';\nimport './PanelNavButton.styles.css';\nimport { useFocusable } from '@noriginmedia/norigin-spatial-navigation';\nimport useRemoteControl from '@/hooks/use-remote-control';\nimport deliverFocus from '@/helpers/deliver-focus';\nimport React from 'react';\n\ntype PanelNavButtonProps = {\n iconName: IconsName;\n index: number;\n onEnter: () => void;\n active: boolean;\n} & PropsWithChildren;\n\nconst PanelNavButton = (props: PanelNavButtonProps) => {\n const { ref, focused } = useFocusable({\n focusKey: `PANEL_NAV_BUTTON_${props.index}`,\n onFocus: props.onEnter,\n });\n\n useRemoteControl({\n active: props.index === 0 && focused,\n onLeft: () => {\n deliverFocus(ref.current as HTMLDivElement);\n },\n });\n\n return (\n <div\n className={[\n 'panel-nav-button-container',\n 'T02',\n props.active ? 'panel-nav-button-active' : '',\n ].join(' ')}\n ref={ref}\n >\n <BaseButton>\n <Icon iconName={props.iconName} height={36} width={36} />\n </BaseButton>\n {props.children}\n </div>\n );\n};\n\nexport default PanelNavButton;\n","import PanelNavButton from '@/components/molecules/PanelNavButton';\nimport { IconsName } from '@/components/atoms/SvgIcon/Icon';\nimport './PanelNavigation.styles.css';\nimport {\n FocusContext,\n useFocusable,\n} from '@noriginmedia/norigin-spatial-navigation';\nimport React from 'react';\n\ntype PanelNavigationProps = {\n items: {\n title: string;\n onEnter: () => void;\n iconName: IconsName;\n active: boolean;\n }[];\n};\n\nconst PanelNavigation = (props: PanelNavigationProps) => {\n const { ref, focusKey } = useFocusable({\n focusKey: 'PANEL_NAVIGATION',\n });\n\n return (\n <FocusContext.Provider value={focusKey}>\n <div className=\"panel-navigation\" ref={ref}>\n {props.items.map((item, index) => (\n <PanelNavButton\n iconName={item.iconName}\n key={item.title}\n index={index}\n onEnter={item.onEnter}\n active={item.active}\n >\n {item.title}\n </PanelNavButton>\n ))}\n </div>\n </FocusContext.Provider>\n );\n};\n\nexport default PanelNavigation;\n","import React, { useSyncExternalStore } from 'react';\nimport { PanelManagerViewModel } from '@/view-models/PanelManagerViewModel';\nimport './PanelManager.styles.css';\nimport PanelNavigation from '@/components/organisms/PanelNavigation';\nimport { MaestroPanelType } from '@/models/IPanel';\n\nconst panelManagerViewModel = new PanelManagerViewModel();\n\nconst LazyKeyPlays = React.lazy(\n () => import('@/modules/key-plays/view/KeyPlaysView')\n);\n\nconst PANELS_MAP: Record<MaestroPanelType, React.ReactNode> = {\n keyPlays: <LazyKeyPlays />,\n bets: <div className=\"panel-coming-soon T02\">Bets - Coming Soon</div>,\n stats: <div className=\"panel-coming-soon T02\">Stats - Coming Soon</div>,\n fantasy: <div className=\"panel-coming-soon T02\">Fantasy - Coming Soon</div>,\n};\n\nconst PanelManager = () => {\n const activePanel = useSyncExternalStore(\n (l) => panelManagerViewModel.currentPanelObservable.subscribe(l),\n () => panelManagerViewModel.currentPanel\n );\n\n const PANEL_ITEMS: {\n title: string;\n onEnter: () => void;\n iconName: MaestroPanelType;\n active: boolean;\n }[] = [\n {\n iconName: 'keyPlays',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'keyPlays';\n },\n title: 'KEY PLAYS',\n active: activePanel === 'keyPlays',\n },\n {\n iconName: 'bets',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'bets';\n },\n title: 'BETS',\n active: activePanel === 'bets',\n },\n {\n iconName: 'stats',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'stats';\n },\n title: 'STATS',\n active: activePanel === 'stats',\n },\n {\n iconName: 'fantasy',\n onEnter: () => {\n panelManagerViewModel.currentPanel = 'fantasy';\n },\n title: 'FANTASY',\n active: activePanel === 'fantasy',\n },\n ];\n\n return (\n <div className=\"sdk--panel-manager\">\n <PanelNavigation items={PANEL_ITEMS} />\n <div className=\"sdk--panel-wrapper\">\n <React.Suspense fallback={null}>\n {PANELS_MAP[activePanel]}\n </React.Suspense>\n </div>\n </div>\n );\n};\n\nexport default PanelManager;\n"],"names":["ButtonStyle","BaseButton","props","style","LazyKeyPlaysIcon","React","LazyPlayIcon","LazyBetsIcon","LazyStatsIcon","LazyFantasyIcon","LazyWarningIcon","ICONS_MAP","Skeleton","Icon","BACK_KEY_CODE","useRemoteControl","onBack","onLeft","active","abort","e","deliverFocus","eventVm","SDK","pause","PanelNavButton","ref","focused","useFocusable","PanelNavigation","focusKey","FocusContext","item","index","panelManagerViewModel","PanelManagerViewModel","LazyKeyPlays","PANELS_MAP","PanelManager","activePanel","useSyncExternalStore","l","PANEL_ITEMS"],"mappings":";;AAGA,MAAMA,IAAmC;AAAA,EACvC,cAAc;AAAA,EACd,SAAS;AAAA,EACT,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,QAAQ;AACV,GAMMC,IAAa,CAACC,MAAiB;AACnC,QAAMC,IAAQ;AAAA,IACZ,GAAGH;AAAA,IACH,GAAGE,EAAM;AAAA,EACX;AAEA,yCACG,UAAO,EAAA,OAAAC,GAAe,GAAGD,EAAA,GACvBA,EAAM,QACT;AAEJ,GC1BME,IAAmBC,EAAM,KAAK,MAAM,OAAO,4BAAgB,CAAC,GAC5DC,IAAeD,EAAM,KAAK,MAAM,OAAO,wBAAY,CAAC,GACpDE,IAAeF,EAAM,KAAK,MAAM,OAAO,wBAAY,CAAC,GACpDG,IAAgBH,EAAM,KAAK,MAAM,OAAO,yBAAa,CAAC,GACtDI,IAAkBJ,EAAM,KAAK,MAAM,OAAO,2BAAe,CAAC,GAC1DK,IAAkBL,EAAM,KAAK,MAAM,OAAO,2BAAe,CAAC,GAE1DM,IAAY;AAAA,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AA,GACpC,gBAAArC,EAAA,cAAA,OAAA,EAAI,WAAU,qBACb,GAAA,gBAAAA,EAAA,cAACA,EAAM,UAAN,EAAe,UAAU,QACvBgC,EAAWE,CAAW,CACzB,CACF,CACF;AAEJ;;;;"}
|
package/dist/index-q5GKgbOd.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import n, { useLayoutEffect as s } from "react";
|
|
2
|
-
const o = "BentonSans-Medium", c = {
|
|
3
|
-
colors: {
|
|
4
|
-
// Accent colors
|
|
5
|
-
accentPrimary: "#FFFFFF",
|
|
6
|
-
// Secondary accent colors
|
|
7
|
-
accentSecondary: "#3C3F47",
|
|
8
|
-
// Tertiary accent colors
|
|
9
|
-
accentTertiary: "#0C0C0E",
|
|
10
|
-
// Surface Colors
|
|
11
|
-
surface1: "#080A0C",
|
|
12
|
-
surface2: "#12141A",
|
|
13
|
-
surface3: "#1B1E26",
|
|
14
|
-
surface4: "#242833",
|
|
15
|
-
surface5: "#363C4D",
|
|
16
|
-
surface6: "#3E4759",
|
|
17
|
-
// Highlight colors
|
|
18
|
-
highlightPrimary: "#FFFFFF",
|
|
19
|
-
highlightSecondary: "#9A9EA9",
|
|
20
|
-
highlightTertiary: "#0A0C0F",
|
|
21
|
-
// Alert colors
|
|
22
|
-
alertConfirmation: "#43D48F",
|
|
23
|
-
alertWarning: "#F58B00",
|
|
24
|
-
alertError: "#FF0000",
|
|
25
|
-
// Text colors
|
|
26
|
-
text100: "#F8F9FA",
|
|
27
|
-
text200: "#C2C5CB",
|
|
28
|
-
text300: "#8D919D",
|
|
29
|
-
text400: "#5C606B",
|
|
30
|
-
text500: "#0C0C0E"
|
|
31
|
-
},
|
|
32
|
-
typography: {
|
|
33
|
-
body: o,
|
|
34
|
-
headline: o
|
|
35
|
-
}
|
|
36
|
-
}, t = c.colors, r = c.typography, F = (a) => (s(() => (Object.keys(t).forEach((e) => {
|
|
37
|
-
document.documentElement.style.setProperty(
|
|
38
|
-
`--sdk-${e}`,
|
|
39
|
-
t[e]
|
|
40
|
-
);
|
|
41
|
-
}), Object.keys(r).forEach((e) => {
|
|
42
|
-
document.documentElement.style.setProperty(
|
|
43
|
-
`--sdk-font-${e}`,
|
|
44
|
-
r[e]
|
|
45
|
-
);
|
|
46
|
-
}), () => {
|
|
47
|
-
Object.keys(t).forEach((e) => {
|
|
48
|
-
document.documentElement.style.removeProperty(`--sdk-${e}`);
|
|
49
|
-
}), Object.keys(r).forEach((e) => {
|
|
50
|
-
document.documentElement.style.removeProperty(`--sdk-font-${e}`);
|
|
51
|
-
});
|
|
52
|
-
}), []), /* @__PURE__ */ n.createElement("div", { className: "sdk-wrapper" }, a.children));
|
|
53
|
-
export {
|
|
54
|
-
F as default
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=index-q5GKgbOd.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-q5GKgbOd.js","sources":["../src/services/ThemeManager/constants.ts","../src/components/core/App/App.tsx"],"sourcesContent":["import ITheme, {\n BORDER_RADIUS,\n TEXT_CAPITALIZATION,\n THEME_MODES,\n THEME_TYPES,\n} from '@/models/ITheme';\n\nconst FONT_FAMILY = 'BentonSans-Medium';\n\nexport const DARK_THEME: ITheme = {\n _id: '6274067af74b66a544018dac',\n button: {\n borderRadius: BORDER_RADIUS.rounded,\n textCapitalization: TEXT_CAPITALIZATION.uppercase,\n },\n colors: {\n // Accent colors\n accentPrimary: '#FFFFFF',\n\n // Secondary accent colors\n accentSecondary: '#3C3F47',\n\n // Tertiary accent colors\n accentTertiary: '#0C0C0E',\n\n // Surface Colors\n surface1: '#080A0C',\n surface2: '#12141A',\n surface3: '#1B1E26',\n surface4: '#242833',\n surface5: '#363C4D',\n surface6: '#3E4759',\n\n // Highlight colors\n highlightPrimary: '#FFFFFF',\n highlightSecondary: '#9A9EA9',\n highlightTertiary: '#0A0C0F',\n\n // Alert colors\n alertConfirmation: '#43D48F',\n alertWarning: '#F58B00',\n alertError: '#FF0000',\n\n // Text colors\n text100: '#F8F9FA',\n text200: '#C2C5CB',\n text300: '#8D919D',\n text400: '#5C606B',\n text500: '#0C0C0E',\n },\n creator: '016901e60000000000000000',\n name: 'Dark Mode',\n type: THEME_TYPES.CLASSIC,\n mode: THEME_MODES.DARK,\n owner: '016901e60000000000000000',\n typography: {\n body: FONT_FAMILY,\n headline: FONT_FAMILY,\n },\n};\n","import React, { PropsWithChildren, useLayoutEffect } from 'react';\nimport { DARK_THEME } from '@/services/ThemeManager/constants';\nimport './App.styles.css';\n\nconst colors = DARK_THEME.colors;\nconst typography = DARK_THEME.typography;\n\nconst App = (props: PropsWithChildren) => {\n useLayoutEffect(() => {\n Object.keys(colors).forEach((key) => {\n document.documentElement.style.setProperty(\n `--sdk-${key}`,\n colors[key as keyof typeof DARK_THEME.colors]\n );\n });\n\n Object.keys(typography).forEach((key) => {\n document.documentElement.style.setProperty(\n `--sdk-font-${key}`,\n typography[key as keyof typeof DARK_THEME.typography]\n );\n });\n\n return () => {\n Object.keys(colors).forEach((key) => {\n document.documentElement.style.removeProperty(`--sdk-${key}`);\n });\n\n Object.keys(typography).forEach((key) => {\n document.documentElement.style.removeProperty(`--sdk-font-${key}`);\n });\n };\n }, []);\n\n return <div className=\"sdk-wrapper\">{props.children}</div>;\n};\n\nexport default App;\n"],"names":["FONT_FAMILY","DARK_THEME","colors","typography","App","props","useLayoutEffect","key","React"],"mappings":";AAOA,MAAMA,IAAc,qBAEPC,IAAqB;AAAA,EAMhC,QAAQ;AAAA;AAAA,IAEN,eAAe;AAAA;AAAA,IAGf,iBAAiB;AAAA;AAAA,IAGjB,gBAAgB;AAAA;AAAA,IAGhB,UAAU;AAAA,IACV,UAAU;AAAA,IACV,UAAU;AAAA,IACV,UAAU;AAAA,IACV,UAAU;AAAA,IACV,UAAU;AAAA;AAAA,IAGV,kBAAkB;AAAA,IAClB,oBAAoB;AAAA,IACpB,mBAAmB;AAAA;AAAA,IAGnB,mBAAmB;AAAA,IACnB,cAAc;AAAA,IACd,YAAY;AAAA;AAAA,IAGZ,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,IACT,SAAS;AAAA,EACX;AAAA,EAMA,YAAY;AAAA,IACV,MAAMD;AAAA,IACN,UAAUA;AAAA,EAAA;AAEd,GCvDME,IAASD,EAAW,QACpBE,IAAaF,EAAW,YAExBG,IAAM,CAACC,OACXC,EAAgB,OACd,OAAO,KAAKJ,CAAM,EAAE,QAAQ,CAACK,MAAQ;AACnC,WAAS,gBAAgB,MAAM;AAAA,IAC7B,SAASA,CAAG;AAAA,IACZL,EAAOK,CAAqC;AAAA,EAC9C;AAAA,CACD,GAED,OAAO,KAAKJ,CAAU,EAAE,QAAQ,CAACI,MAAQ;AACvC,WAAS,gBAAgB,MAAM;AAAA,IAC7B,cAAcA,CAAG;AAAA,IACjBJ,EAAWI,CAAyC;AAAA,EACtD;AAAA,CACD,GAEM,MAAM;AACX,SAAO,KAAKL,CAAM,EAAE,QAAQ,CAACK,MAAQ;AACnC,aAAS,gBAAgB,MAAM,eAAe,SAASA,CAAG,EAAE;AAAA,EAAA,CAC7D,GAED,OAAO,KAAKJ,CAAU,EAAE,QAAQ,CAACI,MAAQ;AACvC,aAAS,gBAAgB,MAAM,eAAe,cAAcA,CAAG,EAAE;AAAA,EAAA,CAClE;AACH,IACC,EAAE,GAEG,gBAAAC,EAAA,cAAA,OAAA,EAAI,WAAU,cAAA,GAAeH,EAAM,QAAS;"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode('.sdk-wrapper{font-family:Arial,Helvetica,sans-serif;color:var(--sdk-text100)}.T01{font-size:1.125rem;font-weight:400;line-height:1.5rem}.T02{font-size:1.125rem;font-weight:700;line-height:1.5rem}.T05_ALT{font-size:1.313rem;font-weight:700;line-height:1.75rem}.T10{font-size:1.438rem;font-weight:700;line-height:2rem}.T20{font-size:1.688rem;font-weight:500;line-height:2.25rem}.T30{font-size:1.813rem;font-weight:700;line-height:2.25rem}.T70{font-size:3rem;font-weight:900;line-height:3.5rem}.sdk--panel-manager{padding:3.75rem 3.75rem 3.75rem 3rem;padding-bottom:0;display:flex;flex-direction:column;gap:3.75rem}.sdk--panel-manager .panel-coming-soon{display:flex;justify-content:center}.panel-nav-button-container{display:flex;flex-direction:column;align-items:center;gap:.625rem;color:var(--sdk-text300);flex:1}.panel-nav-button-container path{fill:var(--sdk-highlightSecondary)}.panel-nav-button-container button{padding:8px 0;background-color:var(--sdk-surface3);min-width:6.5rem;transition:background-color .2s ease-in-out,color .3s ease-in-out}.panel-nav-button-container[data-focused=true],.panel-nav-button-container:hover,.panel-nav-button-active{color:var(--sdk-text100)}.panel-nav-button-container[data-focused=true] path,.panel-nav-button-container:hover path{fill:var(--sdk-highlightTertiary)}.panel-nav-button-container[data-focused=true] button,.panel-nav-button-container:hover button{background-color:var(--sdk-accentPrimary)}.panel-nav-button-active button{background-color:var(--sdk-surface5)}.panel-nav-button-active path{fill:var(--sdk-highlightPrimary)}.panel-navigation{display:flex;flex-direction:row;align-items:center;gap:.75rem;overflow-x:auto;scrollbar-width:none}.key-play-card{display:flex;flex-direction:column;border-radius:.625rem;background-color:var(--sdk-surface2);contain:content;border:.188rem solid transparent;transition:border-color .2s ease-in-out;position:relative}.key-play-card progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:8px;background-color:var(--sdk-surface6);box-shadow:0 1px 3px #10111366 inset;overflow:hidden;border-radius:0;position:absolute;bottom:0}.key-play-card .error-state{position:absolute;width:100%;height:100%;display:flex;justify-content:center;align-items:center;background-color:var(--sdk-surface2);gap:1rem}.key-play-card .error-state path{fill:var(--sdk-alertWarning)}.key-play-card .non-recent-error-state{position:absolute;top:1.125rem;right:1.125rem}.scrollable-gradient{position:relative}.scrollable-gradient:before{content:"";position:absolute;left:0;right:0;top:0;height:3.625rem;z-index:0;transition:z-index .3s ease}.scroll-container-scrolled:before{z-index:1;background:linear-gradient(0deg,#080a0c00 0%,var(--sdk-surface1) 100%)}.scrollable-gradient:after{content:"";position:absolute;left:0;right:0;bottom:0;height:6rem;background:linear-gradient(180deg,#080a0c00 0%,var(--sdk-surface1) 100%)}.key-plays-view{display:flex;flex-direction:column;gap:1rem;overflow-y:auto;max-height:calc(100vh - 86px - 7.5rem);scrollbar-width:none;scroll-behavior:smooth;overscroll-behavior:contain}.key-plays-view .key-plays-section:last-child{margin-bottom:4rem}.key-plays-view::-webkit-scrollbar{display:none}.key-plays-section{display:flex;flex-direction:column;gap:1rem;position:relative}.key-plays-section-title{position:sticky;top:0;z-index:1;margin:0}.key-plays-section-items{display:flex;flex-direction:column;gap:20px}.key-plays-section:last-of-type{margin-bottom:0}.key-plays-bottom-padding{height:calc(100vh - 240px);min-height:400px;width:100%}.key-play-card{display:flex;flex-direction:column;border-radius:.625rem;background-color:var(--sdk-surface2);contain:content;border:3px solid transparent;transition:border-color .2s ease-in-out}.key-play-card[data-focused=true]{border-color:var(--sdk-highlightPrimary)}.key-play-card-content{display:grid;grid-template-columns:1fr 2fr}.key-play-card-content .cardImage{width:100%;height:100%;object-fit:cover}.key-play-card-content .text-content{padding:2.75rem 2.25rem 2.75rem 1.5rem;align-items:center;display:flex}.key-play-card-content .multi-line{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;text-overflow:ellipsis}.key-play-card progress{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;height:8px;background-color:var(--sdk-surface6);box-shadow:0 1px 3px #10111366 inset;overflow:hidden;border-radius:0}.key-play-card progress::-webkit-progress-bar,.key-play-card progress::-moz-progress-bar{background-color:var(--sdk-surface6)}.key-play-card progress::-webkit-progress-value{background-color:var(--sdk-highlightPrimary)}.key-play-card .score{display:flex;align-items:center;justify-content:center;padding:10px;gap:4rem;background-color:var(--sdk-surface4)}.key-play-card .score-team{display:flex;align-items:center;gap:1rem}.action-button{padding:23px 0;background-color:var(--sdk-accentSecondary);color:var(--sdk-text100)}.action-button:hover,.action-button[data-focused=true]{background-color:var(--sdk-accentPrimary);color:var(--sdk-text500)}.sdk--key-play-error-state-unsupportedEvent{padding:2.25rem 1.5rem 0;display:flex;flex-direction:column;gap:1rem}.sdk--key-play-error-state-unsupportedEvent:after{background:linear-gradient(180deg,#0000,#ffffff14)}.sdk--key-play-error-state-unsupportedEvent h3{margin:0}.sdk--key-play-error-state-unsupportedEvent p{margin:0;color:var(--sdk-text200)}.sdk--key-play-error-state-unpopulatedEvent{overflow-y:hidden;max-height:calc(100vh - 86px - 7.5rem);padding:2.25rem 1.5rem 0;scrollbar-width:none;display:flex;flex-direction:column;gap:6.25rem}.sdk--key-play-error-state-unpopulatedEvent h3{margin:0}.sdk--key-play-error-state-unpopulatedEvent p{margin:0;color:var(--sdk-text200)}.sdk--key-play-error-state-unpopulatedEvent .main-content{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1rem}.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples{display:flex;flex-direction:column;gap:1rem;position:relative}.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples:after{content:"";width:100%;height:100%;position:absolute;bottom:0;background:linear-gradient(0deg,#000,#0000 92.2%)}.sdk--key-play-error-state-unpopulatedEvent .unpopulatedEvent-examples .example{display:flex;gap:1rem;padding:1.75rem 1.5rem;border-radius:.625rem;background-color:var(--sdk-surface3);height:8rem}.sdk--key-play-error-state-tabLoadFailure{display:flex;flex-direction:column;gap:1rem;border-radius:.625rem;border:.188rem solid transparent;transition:border-color .2s ease-in-out;padding:1.5rem;background-color:var(--sdk-surface4)}.sdk--key-play-error-state-tabLoadFailure h3{margin:0}.sdk--key-play-error-state-tabLoadFailure p{margin:0;height:5.375rem}')),document.head.appendChild(e)}}catch(r){console.error("vite-plugin-css-injected-by-js",r)}})();
|
|
2
|
-
import { S as f } from "./index-BaSckwps.js";
|
|
3
|
-
export {
|
|
4
|
-
f as default
|
|
5
|
-
};
|
|
6
|
-
//# sourceMappingURL=maestro-web-sdk.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maestro-web-sdk.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["../src/maestroeventdelegate.ts","../src/development.tsx","../src/index.test.tsx","../src/index.tsx","../src/setuptests.ts","../src/vite-env.d.ts","../src/components/atoms/basebutton/basebutton.tsx","../src/components/atoms/basebutton/index.ts","../src/components/atoms/image/index.tsx","../src/components/atoms/svgicon/betsicon.tsx","../src/components/atoms/svgicon/fantasyicon.tsx","../src/components/atoms/svgicon/icon.tsx","../src/components/atoms/svgicon/keyplaysicon.tsx","../src/components/atoms/svgicon/playicon.tsx","../src/components/atoms/svgicon/statsicon.tsx","../src/components/atoms/svgicon/warningicon.tsx","../src/components/atoms/svgicon/index.ts","../src/components/core/app/app.tsx","../src/components/core/app/index.ts","../src/components/core/panelmanager/panelmanager.tsx","../src/components/core/panelmanager/index.tsx","../src/components/molecules/actionbutton/actionbutton.tsx","../src/components/molecules/actionbutton/index.ts","../src/components/molecules/panelnavbutton/panelnavbutton.tsx","../src/components/molecules/panelnavbutton/index.ts","../src/components/molecules/scrollablegradient/scrollablegradient.tsx","../src/components/molecules/scrollablegradient/index.ts","../src/components/molecules/segmentbutton/segmentbutton.tsx","../src/components/molecules/segmentbutton/index.ts","../src/components/molecules/watchbutton/watchbutton.tsx","../src/components/molecules/watchbutton/index.ts","../src/components/organisms/panelnavigation/panelnavigation.tsx","../src/components/organisms/panelnavigation/index.ts","../src/components/organisms/segmentcontroller/segmentcontroller.tsx","../src/components/organisms/segmentcontroller/index.ts","../src/external/axiosnetworkclient.test.ts","../src/external/axiosnetworkclient.ts","../src/external/localstoragecachemanager.test.ts","../src/external/localstoragecachemanager.ts","../src/external/reactrenderer.tsx","../src/external/ports/cachemanager.ts","../src/external/ports/networkclient.ts","../src/external/ports/renderer.ts","../src/helpers/observable.test.ts","../src/helpers/observable.ts","../src/helpers/deliver-focus.ts","../src/hooks/use-remote-control.ts","../src/interfaces/imaestroevent.ts","../src/interfaces/imaestroeventdelegate.ts","../src/interfaces/imaestromanager.ts","../src/models/imodel.ts","../src/models/ipanel.ts","../src/models/itheme.ts","../src/modules/key-plays/constants.ts","../src/modules/key-plays/interfaces/ikeyplays.ts","../src/modules/key-plays/interfaces/ikeyplaysresponse.ts","../src/modules/key-plays/view/keyplaycardview.tsx","../src/modules/key-plays/view/keyplayerrorstateview.tsx","../src/modules/key-plays/view/keyplaysview.tsx","../src/modules/key-plays/view-model/keyplaysviewmodel.ts","../src/services/networkmanager.ts","../src/services/thememanager/constants.ts","../src/view-models/maestroeventviewmodel.ts","../src/view-models/panelmanagerviewmodel.ts","../src/view-models/viewmodel.ts","../src/view-models/index.ts","../src/view-models/tests/maestroeventviewmodel.test.ts","../src/view-models/tests/viewmodel.test.ts","../src/view-models/tests/index.test.ts"],"version":"5.8.2"}
|