@maestro_io/maestro-web-sdk 4.0.0-beta.2 → 4.0.0-beta.4

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 (141) hide show
  1. package/dist/maestro-web-sdk.esm.js +4 -4
  2. package/dist/maestro-web-sdk.esm.js.map +1 -1
  3. package/dist/maestro-web-sdk.umd.js +4 -4
  4. package/dist/maestro-web-sdk.umd.js.map +1 -1
  5. package/dist/package.json +13 -9
  6. package/dist/src/components/atoms/BaseButton/BaseButton.d.ts +1 -1
  7. package/dist/src/components/atoms/Image/index.d.ts +1 -1
  8. package/dist/src/components/atoms/Rive/index.d.ts +141 -11
  9. package/dist/src/components/atoms/SvgIcon/BetGeneralIcon.d.ts +1 -2
  10. package/dist/src/components/atoms/SvgIcon/BetsIcon.d.ts +1 -1
  11. package/dist/src/components/atoms/SvgIcon/BetsWarningIcon.d.ts +1 -1
  12. package/dist/src/components/atoms/SvgIcon/ChatIcon.d.ts +4 -0
  13. package/dist/src/components/atoms/SvgIcon/CheckmarkIcon.d.ts +1 -2
  14. package/dist/src/components/atoms/SvgIcon/CollapseIcon.d.ts +1 -2
  15. package/dist/src/components/atoms/SvgIcon/ExpandIcon.d.ts +1 -2
  16. package/dist/src/components/atoms/SvgIcon/FantasyIcon.d.ts +1 -1
  17. package/dist/src/components/atoms/SvgIcon/FlameIcon.d.ts +1 -1
  18. package/dist/src/components/atoms/SvgIcon/HelloWorldIcon.d.ts +3 -0
  19. package/dist/src/components/atoms/SvgIcon/Icon.d.ts +5 -5
  20. package/dist/src/components/atoms/SvgIcon/KeyPlaysIcon.d.ts +1 -1
  21. package/dist/src/components/atoms/SvgIcon/MobilePhoneIcon.d.ts +1 -1
  22. package/dist/src/components/atoms/SvgIcon/PlayIcon.d.ts +1 -1
  23. package/dist/src/components/atoms/SvgIcon/ShopIcon.d.ts +1 -1
  24. package/dist/src/components/atoms/SvgIcon/ShopifyIcon.d.ts +4 -0
  25. package/dist/src/components/atoms/SvgIcon/StatsIcon.d.ts +1 -1
  26. package/dist/src/components/atoms/SvgIcon/TimesIcon.d.ts +1 -2
  27. package/dist/src/components/atoms/SvgIcon/WarningIcon.d.ts +1 -1
  28. package/dist/src/components/core/App/App.d.ts +1 -1
  29. package/dist/src/components/core/PanelManager/PanelManager.d.ts +1 -1
  30. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.d.ts +8 -7
  31. package/dist/src/components/core/ScrollableContainer/ScrollableContainer.js +7 -6
  32. package/dist/src/components/molecules/ActionButton/ActionButton.d.ts +53 -7
  33. package/dist/src/components/molecules/HeadshotImage/HeadshotImage.d.ts +1 -1
  34. package/dist/src/components/molecules/Overlay/Overlay.d.ts +1 -1
  35. package/dist/src/components/molecules/PanelNavButton/PanelNavButton.d.ts +53 -7
  36. package/dist/src/components/molecules/TabLoadError/TabLoadError.d.ts +53 -7
  37. package/dist/src/components/molecules/WatchButton/WatchButton.d.ts +1 -1
  38. package/dist/src/components/organisms/PanelNavigation/PanelNavigation.d.ts +1 -1
  39. package/dist/src/components/organisms/SegmentController/SegmentController.d.ts +5 -4
  40. package/dist/src/development/TimeSeek.d.ts +1 -1
  41. package/dist/src/development/development.js +7 -4
  42. package/dist/src/external/ReactRenderer.js +15 -3
  43. package/dist/src/external/spatial-navigation/withFocusable.d.ts +53 -7
  44. package/dist/src/index.d.ts +1 -2
  45. package/dist/src/index.js +1 -1
  46. package/dist/src/interfaces/IMaestroEvent.d.ts +2 -2
  47. package/dist/src/interfaces/IMaestroManager.d.ts +2 -2
  48. package/dist/src/modules/bets/view/BetsView.d.ts +3 -3
  49. package/dist/src/modules/bets/view/HotProps/HotPropsView.d.ts +53 -7
  50. package/dist/src/modules/bets/view/SixPack/SixPackView.d.ts +5 -4
  51. package/dist/src/modules/bets/view/UserBets/BetResult/BetResult.d.ts +1 -1
  52. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCard.d.ts +53 -7
  53. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardEvent.d.ts +5 -4
  54. package/dist/src/modules/bets/view/UserBets/BetsCard/BetsCardFooter.d.ts +1 -2
  55. package/dist/src/modules/bets/view/UserBets/Boost/Boost.d.ts +1 -2
  56. package/dist/src/modules/bets/view/UserBets/OutcomeBadge/OutcomeBadge.d.ts +1 -2
  57. package/dist/src/modules/bets/view/UserBets/Parlay/Parlay.d.ts +1 -2
  58. package/dist/src/modules/bets/view/UserBets/Straight/Straight.d.ts +1 -2
  59. package/dist/src/modules/bets/view/UserBets/Teaser/Teaser.d.ts +1 -2
  60. package/dist/src/modules/bets/view/UserBets/UserBetsView.d.ts +3 -3
  61. package/dist/src/modules/bets/view/components/Bet/Bet.d.ts +99 -11
  62. package/dist/src/modules/bets/view/components/BetPill/BetPill.d.ts +1 -1
  63. package/dist/src/modules/bets/view/components/BetsCard/BetsCardHeader.d.ts +1 -1
  64. package/dist/src/modules/bets/view/components/GamblingDisclaimer/GamblingDisclaimer.d.ts +1 -1
  65. package/dist/src/modules/bets/view/components/LocationWarning/LocationWarning.d.ts +1 -1
  66. package/dist/src/modules/bets/view/components/PromoCodeBanner/PromoCodeBanner.d.ts +5 -4
  67. package/dist/src/modules/fantasy/components/ExpandedAthleteList/ExpandedAthletesList.d.ts +1 -1
  68. package/dist/src/modules/fantasy/components/LeagueCard/LeagueCard.d.ts +53 -7
  69. package/dist/src/modules/fantasy/components/TopPlayerCard/TopPlayerCard.d.ts +53 -7
  70. package/dist/src/modules/fantasy/view/ActiveAthletesMarquee/ActiveAthletesMarquee.d.ts +1 -1
  71. package/dist/src/modules/fantasy/view/FantasyItemView.d.ts +6 -5
  72. package/dist/src/modules/fantasy/view/FantasyView.d.ts +3 -3
  73. package/dist/src/modules/fantasy/view/InactiveLeague/DraftDateCountdown.d.ts +1 -1
  74. package/dist/src/modules/fantasy/view/InactiveLeague/InactiveLeague.d.ts +53 -7
  75. package/dist/src/modules/fantasy/view/LoginView/LoginView.d.ts +53 -7
  76. package/dist/src/modules/fantasy/view/MatchupPair/DoubleAthleteCard/DoubleAthleteCard.d.ts +53 -7
  77. package/dist/src/modules/fantasy/view/MatchupPair/ExpandedDoubleAthleteCards.d.ts +1 -1
  78. package/dist/src/modules/fantasy/view/MatchupPair/MatchupPair.d.ts +53 -7
  79. package/dist/src/modules/fantasy/view/MatchupSingle/ExpandedSingleAthleteCards.d.ts +1 -1
  80. package/dist/src/modules/fantasy/view/MatchupSingle/MatchupSingle.d.ts +53 -7
  81. package/dist/src/modules/fantasy/view/MatchupSingle/SingleAthleteCard/SingleAthleteCard.d.ts +53 -7
  82. package/dist/src/modules/fantasy/view/PromoView/PromoView.d.ts +53 -7
  83. package/dist/src/modules/hello-world/HelloWorldImage.d.ts +3 -0
  84. package/dist/src/modules/hello-world/HelloWorldView.d.ts +11 -0
  85. package/dist/src/modules/hello-world/HelloWorldView.js +33 -0
  86. package/dist/src/modules/hello-world/index.d.ts +2 -0
  87. package/dist/src/modules/hello-world/index.js +2 -0
  88. package/dist/src/modules/key-plays/view/KeyPlayCardScoreTagView.d.ts +1 -1
  89. package/dist/src/modules/key-plays/view/KeyPlayCardView.d.ts +7 -6
  90. package/dist/src/modules/key-plays/view/KeyPlayCardView.js +6 -11
  91. package/dist/src/modules/key-plays/view/KeyPlayErrorStateView.d.ts +1 -1
  92. package/dist/src/modules/key-plays/view/KeyPlaysView.d.ts +3 -3
  93. package/dist/src/modules/shop/mocks.js +1 -0
  94. package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.d.ts +1 -2
  95. package/dist/src/modules/shop/view/ProductDetailView/ProductDetailView.js +5 -1
  96. package/dist/src/modules/shop/view/ShopView.d.ts +3 -3
  97. package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.d.ts +54 -8
  98. package/dist/src/modules/shop/view/components/BrowseCard/BrowseCard.js +1 -1
  99. package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.d.ts +53 -7
  100. package/dist/src/modules/shop/view/components/ProductSummaryCard/ProductSummaryCard.js +1 -1
  101. package/dist/src/modules/shop/view/components/ShopPromoView/ShopPromoView.d.ts +1 -2
  102. package/dist/src/modules/shop/view/components/ShopSection/ShopSection.d.ts +5 -4
  103. package/dist/src/modules/shop/view-model/ShopViewModel.js +5 -1
  104. package/dist/src/modules/stats/utils/renderTeamStatistic.d.ts +1 -2
  105. package/dist/src/modules/stats/view/ActiveAthletes/ActiveAthletes.d.ts +2 -2
  106. package/dist/src/modules/stats/view/ActiveAthletes/CollapsedAthletes/CollapsedAthletes.d.ts +1 -2
  107. package/dist/src/modules/stats/view/ActiveAthletes/ExpandedAthletes/ExpandedAthletes.d.ts +1 -1
  108. package/dist/src/modules/stats/view/DriveSummary/DrivePlayCard.d.ts +53 -7
  109. package/dist/src/modules/stats/view/DriveSummary/DriveSummary.d.ts +1 -1
  110. package/dist/src/modules/stats/view/DriveSummary/ExpandedItems/DriveSummaryExpanded.d.ts +1 -1
  111. package/dist/src/modules/stats/view/DriveSummary/Header/DriveSummaryHeader.d.ts +1 -2
  112. package/dist/src/modules/stats/view/DriveSummary/MainStat/MainStat.d.ts +1 -2
  113. package/dist/src/modules/stats/view/GameLeaders/GameLeaders.d.ts +5 -4
  114. package/dist/src/modules/stats/view/MatchPredictor/DonutChart/DonutChart.d.ts +2 -2
  115. package/dist/src/modules/stats/view/MatchPredictor/MatchPredictorView.d.ts +53 -7
  116. package/dist/src/modules/stats/view/Penalties/Penalties.d.ts +1 -2
  117. package/dist/src/modules/stats/view/RecentGames/RecentGames.d.ts +53 -7
  118. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.d.ts +1 -1
  119. package/dist/src/modules/stats/view/ScoringSummary/ExpandedScores/ExpandedScores.js +3 -1
  120. package/dist/src/modules/stats/view/ScoringSummary/ScoreItem/ScoreItem.d.ts +53 -7
  121. package/dist/src/modules/stats/view/ScoringSummary/ScoresSection/ScoresSection.d.ts +1 -2
  122. package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.d.ts +5 -2
  123. package/dist/src/modules/stats/view/ScoringSummary/ScoringSummary.js +20 -1
  124. package/dist/src/modules/stats/view/StatsItemView.d.ts +6 -5
  125. package/dist/src/modules/stats/view/StatsQRCode/StatsQRCodeView.d.ts +53 -7
  126. package/dist/src/modules/stats/view/StatsView.d.ts +3 -3
  127. package/dist/src/modules/stats/view/TeamStats/TeamStatsView.d.ts +53 -7
  128. package/dist/src/modules/stats/view/Teams/StatsCarousel.d.ts +2 -2
  129. package/dist/src/modules/stats/view/Teams/StatsProgressBar.d.ts +1 -2
  130. package/dist/src/modules/stats/view/Teams/Teams.d.ts +53 -7
  131. package/dist/src/modules/stats/view/Teams/Teams.js +17 -1
  132. package/dist/src/modules/stats/view/WinProbability/WinProbability.d.ts +53 -7
  133. package/dist/src/modules/stats/view/components/AthletesStatistics/AthletesStatistics.d.ts +53 -7
  134. package/dist/src/modules/stats/view/components/AthletesStatistics/StatisticTable.d.ts +1 -2
  135. package/dist/src/modules/stats/view-model/StatsViewModel.d.ts +1 -1
  136. package/dist/src/modules/stats/view-model/StatsViewModel.js +1 -1
  137. package/dist/src/services/AnalyticsService/AnalyticsService.js +3 -1
  138. package/dist/src/services/NetworkManager/NetworkManager.js +3 -3
  139. package/dist/src/view-models/MaestroEventViewModel.d.ts +1 -1
  140. package/dist/src/view-models/MaestroEventViewModel.js +6 -9
  141. package/package.json +13 -9
@@ -4,7 +4,7 @@ import React from 'react';
4
4
  import './SingleAthleteCard.styles.css';
5
5
  import { MatchupSingleRoster } from '@/modules/fantasy/view-model/FantasyViewModel';
6
6
  declare const _default: {
7
- new (props?: (MatchupSingleRoster & WithFocusableProps) | undefined, context?: any): {
7
+ new (props: (MatchupSingleRoster & WithFocusableProps) | Readonly<MatchupSingleRoster & WithFocusableProps>): {
8
8
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
9
9
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
10
10
  getChildContext(): {
@@ -24,20 +24,65 @@ declare const _default: {
24
24
  componentDidMount(): void;
25
25
  componentDidUpdate(): void;
26
26
  componentWillUnmount(): void;
27
- render(): React.ReactElement<MatchupSingleRoster & WithFocusableProps>;
28
- setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: MatchupSingleRoster & WithFocusableProps) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
29
- forceUpdate(callBack?: (() => any) | undefined): void;
30
- props: Readonly<{
31
- children?: React.ReactNode;
32
- }> & Readonly<MatchupSingleRoster & WithFocusableProps>;
27
+ render(): React.ReactElement<MatchupSingleRoster & WithFocusableProps, string | React.JSXElementConstructor<any>>;
33
28
  context: any;
29
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<MatchupSingleRoster & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
30
+ forceUpdate(callback?: (() => void) | undefined): void;
31
+ readonly props: Readonly<MatchupSingleRoster & WithFocusableProps> & Readonly<{
32
+ children?: React.ReactNode;
33
+ }>;
34
34
  refs: {
35
35
  [key: string]: React.ReactInstance;
36
36
  };
37
+ shouldComponentUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
38
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
39
+ getSnapshotBeforeUpdate?(prevProps: Readonly<MatchupSingleRoster & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
37
40
  componentWillMount?(): void;
41
+ UNSAFE_componentWillMount?(): void;
38
42
  componentWillReceiveProps?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextContext: any): void;
43
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextContext: any): void;
44
+ componentWillUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
45
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
46
+ };
47
+ new (props: MatchupSingleRoster & WithFocusableProps, context: any): {
48
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
49
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
50
+ getChildContext(): {
51
+ parentFocusKey: string;
52
+ };
53
+ setFocus: (focusKey: string) => void;
54
+ navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
55
+ stealFocus: () => void;
56
+ onUpdateFocus: (focused: boolean) => void;
57
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
58
+ onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
59
+ onEnterReleaseHandler: () => void;
60
+ onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
61
+ onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
62
+ onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
63
+ onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
64
+ componentDidMount(): void;
65
+ componentDidUpdate(): void;
66
+ componentWillUnmount(): void;
67
+ render(): React.ReactElement<MatchupSingleRoster & WithFocusableProps, string | React.JSXElementConstructor<any>>;
68
+ context: any;
69
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<MatchupSingleRoster & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
70
+ forceUpdate(callback?: (() => void) | undefined): void;
71
+ readonly props: Readonly<MatchupSingleRoster & WithFocusableProps> & Readonly<{
72
+ children?: React.ReactNode;
73
+ }>;
74
+ refs: {
75
+ [key: string]: React.ReactInstance;
76
+ };
39
77
  shouldComponentUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
78
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
79
+ getSnapshotBeforeUpdate?(prevProps: Readonly<MatchupSingleRoster & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
80
+ componentWillMount?(): void;
81
+ UNSAFE_componentWillMount?(): void;
82
+ componentWillReceiveProps?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextContext: any): void;
83
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextContext: any): void;
40
84
  componentWillUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
85
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<MatchupSingleRoster & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
41
86
  };
42
87
  contextTypes: {
43
88
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -45,5 +90,6 @@ declare const _default: {
45
90
  childContextTypes: {
46
91
  parentFocusKey: import("prop-types").Requireable<string>;
47
92
  };
93
+ contextType?: React.Context<any> | undefined;
48
94
  };
49
95
  export default _default;
@@ -7,7 +7,7 @@ type Props = {
7
7
  item: PromoFantasyItem;
8
8
  };
9
9
  declare const _default: {
10
- new (props?: (Props & WithFocusableProps) | undefined, context?: any): {
10
+ new (props: (Props & WithFocusableProps) | Readonly<Props & WithFocusableProps>): {
11
11
  state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
12
12
  navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
13
13
  getChildContext(): {
@@ -27,20 +27,65 @@ declare const _default: {
27
27
  componentDidMount(): void;
28
28
  componentDidUpdate(): void;
29
29
  componentWillUnmount(): void;
30
- render(): React.ReactElement<Props & WithFocusableProps>;
31
- setState<K extends keyof import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Props & WithFocusableProps) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
32
- forceUpdate(callBack?: (() => any) | undefined): void;
33
- props: Readonly<{
34
- children?: React.ReactNode;
35
- }> & Readonly<Props & WithFocusableProps>;
30
+ render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
36
31
  context: any;
32
+ setState<K extends keyof import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<Props & WithFocusableProps>) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
33
+ forceUpdate(callback?: (() => void) | undefined): void;
34
+ readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
35
+ children?: React.ReactNode;
36
+ }>;
37
37
  refs: {
38
38
  [key: string]: React.ReactInstance;
39
39
  };
40
+ shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
41
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
42
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
40
43
  componentWillMount?(): void;
44
+ UNSAFE_componentWillMount?(): void;
41
45
  componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
46
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
47
+ componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
48
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
49
+ };
50
+ new (props: Props & WithFocusableProps, context: any): {
51
+ state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState;
52
+ navigation: import("../../../../external/spatial-navigation/spatialNavigation").default;
53
+ getChildContext(): {
54
+ parentFocusKey: string;
55
+ };
56
+ setFocus: (focusKey: string) => void;
57
+ navigateByDirection: (direction: import("../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
58
+ stealFocus: () => void;
59
+ onUpdateFocus: (focused: boolean) => void;
60
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
61
+ onEnterPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
62
+ onEnterReleaseHandler: () => void;
63
+ onBackPressHandler: (details: import("../../../../external/spatial-navigation/utils").Details) => void;
64
+ onArrowPressHandler: (direction: import("../../../../external/spatial-navigation/utils").Direction, details: import("../../../../external/spatial-navigation/utils").Details) => boolean | void;
65
+ onBecameFocusedHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
66
+ onBecameBlurredHandler: (layout: import("../../../../external/spatial-navigation/utils").Layout, details: import("../../../../external/spatial-navigation/utils").Details) => void;
67
+ componentDidMount(): void;
68
+ componentDidUpdate(): void;
69
+ componentWillUnmount(): void;
70
+ render(): React.ReactElement<Props & WithFocusableProps, string | React.JSXElementConstructor<any>>;
71
+ context: any;
72
+ setState<K extends keyof import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<Props & WithFocusableProps>) => import("../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
73
+ forceUpdate(callback?: (() => void) | undefined): void;
74
+ readonly props: Readonly<Props & WithFocusableProps> & Readonly<{
75
+ children?: React.ReactNode;
76
+ }>;
77
+ refs: {
78
+ [key: string]: React.ReactInstance;
79
+ };
42
80
  shouldComponentUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
81
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
82
+ getSnapshotBeforeUpdate?(prevProps: Readonly<Props & WithFocusableProps>, prevState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
83
+ componentWillMount?(): void;
84
+ UNSAFE_componentWillMount?(): void;
85
+ componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
86
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Props & WithFocusableProps>, nextContext: any): void;
43
87
  componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
88
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<Props & WithFocusableProps>, nextState: Readonly<import("../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
44
89
  };
45
90
  contextTypes: {
46
91
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -48,5 +93,6 @@ declare const _default: {
48
93
  childContextTypes: {
49
94
  parentFocusKey: import("prop-types").Requireable<string>;
50
95
  };
96
+ contextType?: React.Context<any> | undefined;
51
97
  };
52
98
  export default _default;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const HelloWorldImage: () => React.JSX.Element;
3
+ export default HelloWorldImage;
@@ -0,0 +1,11 @@
1
+ import React, { Component } from 'react';
2
+ import './HelloWorldView.styles.css';
3
+ import { PanelInfo } from '@/view-models/PanelManagerViewModel';
4
+ type State = {
5
+ unlistedPanels: PanelInfo[];
6
+ };
7
+ declare class HelloWorldView extends Component<{}, State> {
8
+ constructor(props: {});
9
+ render(): React.JSX.Element;
10
+ }
11
+ export default HelloWorldView;
@@ -0,0 +1,33 @@
1
+ import React, { Component } from 'react';
2
+ import './HelloWorldView.styles.css';
3
+ import SDK from '@/index';
4
+ class HelloWorldView extends Component {
5
+ constructor(props) {
6
+ super(props);
7
+ const vm = SDK.getMaestroEventViewModel().panelManagerViewModel;
8
+ this.state = {
9
+ unlistedPanels: vm.getUnlistedPanels(),
10
+ };
11
+ }
12
+ render() {
13
+ const { unlistedPanels } = this.state;
14
+ return (React.createElement("div", { className: "hello-world-view" },
15
+ React.createElement("div", { className: "hello-world-mascot" },
16
+ React.createElement("div", { className: "speech-bubble" }, "HI!"),
17
+ React.createElement("div", { className: "mascot-placeholder" })),
18
+ React.createElement("h1", { className: "T70" }, "HELLO, WORLD!"),
19
+ React.createElement("p", { className: "T20 subtitle" },
20
+ "Panel component has been",
21
+ React.createElement("br", null),
22
+ "installed correctly."),
23
+ unlistedPanels.length > 0 && (React.createElement(React.Fragment, null,
24
+ React.createElement("p", { className: "T10 unsupported-text" },
25
+ "However, some panels currently active on this",
26
+ React.createElement("br", null),
27
+ "channel aren't supported on this device:"),
28
+ React.createElement("ul", { className: "unsupported-list" }, unlistedPanels.map((panel) => (React.createElement("li", { key: panel.type, className: "T10" },
29
+ React.createElement("span", { className: "panel-icon" }, "\uFFFD"),
30
+ panel.title))))))));
31
+ }
32
+ }
33
+ export default HelloWorldView;
@@ -0,0 +1,2 @@
1
+ import HelloWorldView from './HelloWorldView';
2
+ export default HelloWorldView;
@@ -0,0 +1,2 @@
1
+ import HelloWorldView from './HelloWorldView';
2
+ export default HelloWorldView;
@@ -5,5 +5,5 @@ export default class ScoreCard extends React.Component<{
5
5
  homeTeamName: string;
6
6
  awayTeamName: string;
7
7
  }, {}> {
8
- render(): React.JSX.Element | null;
8
+ render(): JSX.Element | null;
9
9
  }
@@ -1,3 +1,4 @@
1
+ /// <reference types="prop-types" />
1
2
  import IKeyPlay, { KeyPlayLoadFailureStatus } from '../interfaces/IKeyPlays';
2
3
  import './KeyPlayCardView.styles.css';
3
4
  import React from 'react';
@@ -21,18 +22,18 @@ export declare class KeyPlayCardView extends React.Component<KeyPlayCardViewProp
21
22
  componentDidMount(): void;
22
23
  componentWillUnmount(): void;
23
24
  onLoad: () => void;
24
- renderImage: () => React.JSX.Element | null;
25
- render(): React.JSX.Element;
25
+ renderImage: () => JSX.Element | null;
26
+ render(): JSX.Element;
26
27
  }
27
28
  export default class KeyPlayCard extends React.Component<Omit<KeyPlayCardViewProps, 'setRef'> & WithFocusableProps> {
28
29
  context: import("@/components/core/ScrollableContainer/ScrollableContainer").ScrollableContainerContextType;
29
30
  static contextTypes: {
30
- refsMap: React.Requireable<any>;
31
- setRef: React.Requireable<any>;
32
- scrollToFocusedElement: React.Requireable<any>;
31
+ refsMap: import("prop-types").Requireable<(HTMLElement | null | undefined)[]>;
32
+ setRef: import("prop-types").Requireable<(...args: any[]) => any>;
33
+ scrollToFocusedElement: import("prop-types").Requireable<(...args: any[]) => any>;
33
34
  };
34
35
  handleLeftPressed: (d: Direction) => void;
35
36
  onBecameFocused: (layout: Layout) => void;
36
- render(): React.JSX.Element;
37
+ render(): JSX.Element;
37
38
  }
38
39
  export {};
@@ -5,6 +5,7 @@ import SDK from '@/index';
5
5
  import Icon from '@/components/atoms/SvgIcon';
6
6
  import React from 'react';
7
7
  import { withFocusable, } from '@/external/spatial-navigation';
8
+ import ScoreCard from './KeyPlayCardScoreTagView';
8
9
  import FocusableItem from '@/components/core/ScrollableContainer/FocusableItem';
9
10
  import { DEFAULT_SCROLLABLE_CONTAINER_CONTEXT, SCROLLABLE_CONTEXT_TYPE, } from '@/components/core/ScrollableContainer/ScrollableContainer';
10
11
  export class KeyPlayCardView extends React.Component {
@@ -35,16 +36,16 @@ export class KeyPlayCardView extends React.Component {
35
36
  configurable: true,
36
37
  writable: true,
37
38
  value: () => {
38
- const { playerImageUrl, teamImageUrl, thumbnailImageUrl } = this.props;
39
+ const { playerImageUrl, teamImageUrl, thumbnailImageUrl, isScoring, } = this.props;
39
40
  if (playerImageUrl) {
40
41
  return (React.createElement(Image, { src: playerImageUrl, crossOrigin: "anonymous", alt: "Key Play Player Image", className: "cardImage", onLoad: this.onLoad, style: {
41
42
  display: this.state.imageLoaded ? 'block' : 'none',
42
- } }));
43
+ }, "data-has-score": isScoring }));
43
44
  }
44
45
  if (teamImageUrl) {
45
46
  return (React.createElement(Image, { src: teamImageUrl, crossOrigin: "anonymous", alt: "Key Play Team Image", className: "cardImage", onLoad: this.onLoad, style: {
46
47
  display: this.state.imageLoaded ? 'block' : 'none',
47
- } }));
48
+ }, "data-has-score": isScoring }));
48
49
  }
49
50
  if (thumbnailImageUrl) {
50
51
  return (React.createElement(Image, { src: thumbnailImageUrl, crossOrigin: "anonymous", alt: "Key Play Thumbnail Image", className: "cardImage", onLoad: this.onLoad, style: {
@@ -77,14 +78,7 @@ export class KeyPlayCardView extends React.Component {
77
78
  }
78
79
  }
79
80
  render() {
80
- const { clipID, description, isPlaying, playbackProgress,
81
- // isScoring,
82
- focused,
83
- // awayTeamScore,
84
- // homeTeamScore,
85
- // homeTeamName,
86
- // awayTeamName,
87
- } = this.props;
81
+ const { clipID, description, isPlaying, playbackProgress, isScoring, focused, awayTeamScore, homeTeamScore, homeTeamName, awayTeamName, } = this.props;
88
82
  const { failedClip } = this.state;
89
83
  return (React.createElement("div", { className: "key-play-card focus-ring", id: clipID, "data-focused": focused },
90
84
  React.createElement("div", { className: "key-play-card-content" },
@@ -93,6 +87,7 @@ export class KeyPlayCardView extends React.Component {
93
87
  React.createElement("div", { className: "text-content T05_ALT" },
94
88
  React.createElement("div", { className: "multi-line" }, description))),
95
89
  isPlaying && playbackProgress !== null && (React.createElement("progress", { value: playbackProgress, max: "1" })),
90
+ isScoring && (React.createElement(ScoreCard, { awayTeamScore: awayTeamScore, homeTeamScore: homeTeamScore, homeTeamName: homeTeamName, awayTeamName: awayTeamName })),
96
91
  failedClip === 'recentFailure' && (React.createElement("div", { className: "error-state" },
97
92
  React.createElement("div", { className: "error-state-inner" },
98
93
  React.createElement("div", { className: "error-state-text" },
@@ -8,6 +8,6 @@ type Props = {
8
8
  };
9
9
  declare class KeyPlayErrorStateView extends React.Component<Props, {}> {
10
10
  onArrowPress: (d: Direction) => void;
11
- render(): React.JSX.Element | null;
11
+ render(): JSX.Element | null;
12
12
  }
13
13
  export default KeyPlayErrorStateView;
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import './KeyPlaysView.styles.css';
3
3
  import { KeyPlaysErrorState } from '../interfaces/IKeyPlays';
4
4
  import KeyPlaysViewModel, { KeyPlayItem } from '../view-model/KeyPlaysViewModel';
@@ -19,7 +19,7 @@ export declare class KeyPlays extends Component<{}, IKeyPlaysState> {
19
19
  componentDidMount(): void;
20
20
  componentWillUnmount(): void;
21
21
  private handlePlayClip;
22
- render(): React.JSX.Element;
22
+ render(): JSX.Element;
23
23
  }
24
24
  interface KeyPlaysWithErrorStateState {
25
25
  errorState: KeyPlaysErrorState;
@@ -32,6 +32,6 @@ export default class KeyPlaysWithErrorState extends Component<{}, KeyPlaysWithEr
32
32
  componentDidMount(): void;
33
33
  componentWillUnmount(): void;
34
34
  private handleRetry;
35
- render(): React.JSX.Element;
35
+ render(): JSX.Element;
36
36
  }
37
37
  export {};
@@ -333,6 +333,7 @@ export const MOCK_SHOP_EMPTY_RESPONSE = {
333
333
  detail: {
334
334
  disclaimer: 'Visit shop.espn.com to explore more products and exclusive offers.',
335
335
  title: 'Shop the ESPN Store',
336
+ backgroundImage: 'https://placedog.net/568x704',
336
337
  },
337
338
  },
338
339
  },
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import './ProductDetailView.styles.css';
3
2
  import { IShopBrowseCard, IShopProduct } from '../../types';
4
3
  import { WithFocusableProps } from '@/external/spatial-navigation';
@@ -6,5 +5,5 @@ export type ProductDetailViewProps = {
6
5
  product: IShopProduct | IShopBrowseCard;
7
6
  focusKey: string;
8
7
  };
9
- declare const ProductDetailView: (props: ProductDetailViewProps & WithFocusableProps) => React.JSX.Element;
8
+ declare const ProductDetailView: (props: ProductDetailViewProps & WithFocusableProps) => JSX.Element;
10
9
  export default ProductDetailView;
@@ -41,7 +41,11 @@ const ProductDetail = (props) => {
41
41
  }),
42
42
  } },
43
43
  React.createElement("div", { className: "product-detail-title T70" }, detail?.title || 'Shop the look'),
44
- React.createElement("div", { className: "product-detail-product" }, isShopProduct(product) ? (React.createElement(ProductSummaryCard, { product: product, focusable: false })) : (React.createElement(BrowseCard, { browseCard: product, focusable: false }))),
44
+ React.createElement("div", { className: "product-detail-product" }, isShopProduct(product) ? (React.createElement(ProductSummaryCard, { product: product, focusable: false })) : (React.createElement(BrowseCard, { browseCard: {
45
+ ...product,
46
+ name: undefined,
47
+ caption: product.detail?.description,
48
+ }, focusable: false }))),
45
49
  detail?.qrCode && (React.createElement("div", { className: "product-detail-qr" },
46
50
  React.createElement(Image, { src: detail.qrCode, alt: "QR Code", className: "product-detail-qr-image" }))),
47
51
  React.createElement("div", { className: "product-detail-instruction T04" }, detail?.link?.text),
@@ -1,4 +1,4 @@
1
- import React, { Component } from 'react';
1
+ import { Component } from 'react';
2
2
  import './ShopView.styles.css';
3
3
  import { Direction } from '@/external/spatial-navigation/utils';
4
4
  import ShopViewModel, { ShopErrorState } from '../view-model/ShopViewModel';
@@ -29,7 +29,7 @@ declare class ShopView extends Component<{}, State> {
29
29
  openItemDetail: (selectedItem: IShopProduct | IShopBrowseCard, selectedShopSection: IShopSection, selectedItemFocusKey: string) => void;
30
30
  closeProductDetail: () => void;
31
31
  trackPromoEnterPress: () => void;
32
- renderContent: () => React.JSX.Element | React.JSX.Element[];
33
- render(): React.JSX.Element;
32
+ renderContent: () => JSX.Element | JSX.Element[];
33
+ render(): JSX.Element;
34
34
  }
35
35
  export default ShopView;
@@ -7,10 +7,10 @@ export type BrowseCardProps = {
7
7
  browseCard: IShopBrowseCard;
8
8
  };
9
9
  export declare class BrowseCardView extends React.Component<BrowseCardProps & WithFocusableProps> {
10
- render(): React.JSX.Element;
10
+ render(): JSX.Element;
11
11
  }
12
12
  declare const _default: {
13
- new (props?: (BrowseCardProps & WithFocusableProps) | undefined, context?: any): {
13
+ new (props: (BrowseCardProps & WithFocusableProps) | Readonly<BrowseCardProps & WithFocusableProps>): {
14
14
  state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
15
15
  navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
16
16
  getChildContext(): {
@@ -30,20 +30,65 @@ declare const _default: {
30
30
  componentDidMount(): void;
31
31
  componentDidUpdate(): void;
32
32
  componentWillUnmount(): void;
33
- render(): React.ReactElement<BrowseCardProps & WithFocusableProps>;
34
- setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: BrowseCardProps & WithFocusableProps) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K>, callback?: (() => any) | undefined): void;
35
- forceUpdate(callBack?: (() => any) | undefined): void;
36
- props: Readonly<{
37
- children?: React.ReactNode;
38
- }> & Readonly<BrowseCardProps & WithFocusableProps>;
33
+ render(): React.ReactElement<BrowseCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
39
34
  context: any;
35
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<BrowseCardProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
36
+ forceUpdate(callback?: (() => void) | undefined): void;
37
+ readonly props: Readonly<BrowseCardProps & WithFocusableProps> & Readonly<{
38
+ children?: React.ReactNode;
39
+ }>;
40
40
  refs: {
41
41
  [key: string]: React.ReactInstance;
42
42
  };
43
+ shouldComponentUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
44
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
45
+ getSnapshotBeforeUpdate?(prevProps: Readonly<BrowseCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
43
46
  componentWillMount?(): void;
47
+ UNSAFE_componentWillMount?(): void;
44
48
  componentWillReceiveProps?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextContext: any): void;
49
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextContext: any): void;
50
+ componentWillUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
51
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
52
+ };
53
+ new (props: BrowseCardProps & WithFocusableProps, context: any): {
54
+ state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState;
55
+ navigation: import("../../../../../external/spatial-navigation/spatialNavigation").default;
56
+ getChildContext(): {
57
+ parentFocusKey: string;
58
+ };
59
+ setFocus: (focusKey: string) => void;
60
+ navigateByDirection: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details?: Record<string, any>) => void;
61
+ stealFocus: () => void;
62
+ onUpdateFocus: (focused: boolean) => void;
63
+ onUpdateHasFocusedChild: (hasFocusedChild: boolean) => void;
64
+ onEnterPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
65
+ onEnterReleaseHandler: () => void;
66
+ onBackPressHandler: (details: import("../../../../../external/spatial-navigation/utils").Details) => void;
67
+ onArrowPressHandler: (direction: import("../../../../../external/spatial-navigation/utils").Direction, details: import("../../../../../external/spatial-navigation/utils").Details) => boolean | void;
68
+ onBecameFocusedHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
69
+ onBecameBlurredHandler: (layout: import("../../../../../external/spatial-navigation/utils").Layout, details: import("../../../../../external/spatial-navigation/utils").Details) => void;
70
+ componentDidMount(): void;
71
+ componentDidUpdate(): void;
72
+ componentWillUnmount(): void;
73
+ render(): React.ReactElement<BrowseCardProps & WithFocusableProps, string | React.JSXElementConstructor<any>>;
74
+ context: any;
75
+ setState<K extends keyof import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>(state: import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | ((prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, props: Readonly<BrowseCardProps & WithFocusableProps>) => import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null) | Pick<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState, K> | null, callback?: (() => void) | undefined): void;
76
+ forceUpdate(callback?: (() => void) | undefined): void;
77
+ readonly props: Readonly<BrowseCardProps & WithFocusableProps> & Readonly<{
78
+ children?: React.ReactNode;
79
+ }>;
80
+ refs: {
81
+ [key: string]: React.ReactInstance;
82
+ };
45
83
  shouldComponentUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): boolean;
84
+ componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
85
+ getSnapshotBeforeUpdate?(prevProps: Readonly<BrowseCardProps & WithFocusableProps>, prevState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>): any;
86
+ componentWillMount?(): void;
87
+ UNSAFE_componentWillMount?(): void;
88
+ componentWillReceiveProps?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextContext: any): void;
89
+ UNSAFE_componentWillReceiveProps?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextContext: any): void;
46
90
  componentWillUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
91
+ UNSAFE_componentWillUpdate?(nextProps: Readonly<BrowseCardProps & WithFocusableProps>, nextState: Readonly<import("../../../../../external/spatial-navigation/withFocusable").WithFocusableState>, nextContext: any): void;
47
92
  };
48
93
  contextTypes: {
49
94
  parentFocusKey: import("prop-types").Requireable<string>;
@@ -51,5 +96,6 @@ declare const _default: {
51
96
  childContextTypes: {
52
97
  parentFocusKey: import("prop-types").Requireable<string>;
53
98
  };
99
+ contextType?: React.Context<any> | undefined;
54
100
  };
55
101
  export default _default;
@@ -15,7 +15,7 @@ export class BrowseCardView extends React.Component {
15
15
  backgroundClip: 'padding-box',
16
16
  } },
17
17
  React.createElement("div", { className: "browse-card-content" },
18
- React.createElement("div", { className: "browse-card-tagline T20 FONT_BOLD" }, name || 'Want more?'),
18
+ !!name && (React.createElement("div", { className: "browse-card-tagline T20 FONT_BOLD" }, name)),
19
19
  React.createElement("div", { className: "browse-card-caption T10" }, caption || 'Browse all merch')),
20
20
  image?.href && (React.createElement(Image, { src: image.href, width: 72, height: 72, alt: name || 'Logo', className: "browse-card-logo-image" }))));
21
21
  }