fansunited-frontend-components 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Discussion.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as o } from "./chunks/main-WkCv5Rjl.js";
2
- import { w as i } from "./chunks/withVersionStamp-KKp-FjR1.js";
2
+ import { w as i } from "./chunks/withVersionStamp-Cck3fT4t.js";
3
3
  const t = i(o);
4
4
  export {
5
5
  t as Discussion
package/EitherOrPlay.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as r } from "./chunks/main-DmBfwyb4.js";
2
- import { w as o } from "./chunks/withVersionStamp-KKp-FjR1.js";
2
+ import { w as o } from "./chunks/withVersionStamp-Cck3fT4t.js";
3
3
  const a = o(r);
4
4
  export {
5
5
  a as EitherOrPlay
package/EventCard.js CHANGED
@@ -7,7 +7,7 @@ import { getSportsApiCredentials as na, fetchSearchEntitiesByIds as oa, toIntlLo
7
7
  import { u as ha, O as fa } from "./chunks/OddsSkeleton-DP5Yfqpr.js";
8
8
  import { EmojiEventsIcon as On, KeyboardArrowDownIcon as lt, CheckRoundedIcon as Gt, HowToVoteRoundedIcon as ai, KeyboardArrowRightIcon as ga, KeyboardArrowLeftIcon as ya, KeyboardArrowUpIcon as ba, SearchRoundedIcon as si, PersonOutlineIcon as wa, FlagRoundedIcon as xa, EditOutlinedIcon as Sa, DeleteOutlineIcon as qn, CheckCircleRoundedIcon as va, BoltRoundedIcon as Ea, PersonIcon as li, ShieldOutlinedIcon as Ca, SportsSoccerIcon as _a } from "fansunited-frontend-core/ui/icons";
9
9
  import { createPortal as ka } from "react-dom";
10
- import { w as Ra } from "./chunks/withVersionStamp-KKp-FjR1.js";
10
+ import { w as Ra } from "./chunks/withVersionStamp-Cck3fT4t.js";
11
11
  const Zn = (e) => {
12
12
  var l, d, c, m, p, b;
13
13
  if (!(e != null && e.event)) return [];
package/EventGamePlay.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as o } from "./chunks/main-C7X4dM_P.js";
2
- import { w as t } from "./chunks/withVersionStamp-KKp-FjR1.js";
2
+ import { w as t } from "./chunks/withVersionStamp-Cck3fT4t.js";
3
3
  const r = t(o);
4
4
  export {
5
5
  r as EventGamePlay
package/Leaderboard.js CHANGED
@@ -6,7 +6,7 @@ import { Select as ge, Spinner as ye, DataTable as be, Avatar as K, Button as S,
6
6
  import { useInternalTheme as ce, useColors as xe, useIsExtraSmall as Ce, hexToRgb as ee, stripHtmlTags as Te, DirectionalIcon as $, useDisableCache as Pe } from "fansunited-frontend-core";
7
7
  import { PersonIcon as Le } from "fansunited-frontend-core/ui/icons";
8
8
  import { ChevronsLeft as Ae, ChevronLeft as Ee, ChevronRight as we, ChevronsRight as Ie } from "fansunited-frontend-core/ui/icons/lucide";
9
- import { w as Me } from "./chunks/withVersionStamp-KKp-FjR1.js";
9
+ import { w as Me } from "./chunks/withVersionStamp-Cck3fT4t.js";
10
10
  const Oe = (e) => e.split("_").map((t) => t.charAt(0) + t.slice(1).toLowerCase()).join(" "), D = {
11
11
  root: v({
12
12
  display: "flex",
package/List.js CHANGED
@@ -6,7 +6,7 @@ import { useState as k, useRef as _, useCallback as Y, useEffect as ye, lazy as
6
6
  import { useTranslation as q } from "react-i18next";
7
7
  import { Users as be, ChevronsLeft as ve, ChevronLeft as Ce, ChevronRight as Se, ChevronsRight as Ie } from "fansunited-frontend-core/ui/icons/lucide";
8
8
  import { CloseIcon as we } from "fansunited-frontend-core/ui/icons";
9
- import { w as Me } from "./chunks/withVersionStamp-KKp-FjR1.js";
9
+ import { w as Me } from "./chunks/withVersionStamp-Cck3fT4t.js";
10
10
  const se = (t) => {
11
11
  const n = t.entityModel;
12
12
  if (!n) return null;
package/MatchQuizPlay.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as o } from "./chunks/main-D_QDfmAw.js";
2
- import { w as t } from "./chunks/withVersionStamp-KKp-FjR1.js";
2
+ import { w as t } from "./chunks/withVersionStamp-Cck3fT4t.js";
3
3
  const r = t(o);
4
4
  export {
5
5
  r as MatchQuizPlay
package/Odds.js CHANGED
@@ -4,7 +4,7 @@ import f from "react";
4
4
  import { useDisableCache as E, fetchEventById as F } from "fansunited-frontend-core";
5
5
  import { u as M, O as R } from "./chunks/OddsSkeleton-DP5Yfqpr.js";
6
6
  import "fansunited-sdk-esm/enums";
7
- import { w as X } from "./chunks/withVersionStamp-KKp-FjR1.js";
7
+ import { w as X } from "./chunks/withVersionStamp-Cck3fT4t.js";
8
8
  const _ = ({
9
9
  eventId: t,
10
10
  sdk: n,
@@ -1,5 +1,5 @@
1
1
  import { M as o } from "./chunks/main-LEE8n2cG.js";
2
- import { w as i } from "./chunks/withVersionStamp-KKp-FjR1.js";
2
+ import { w as i } from "./chunks/withVersionStamp-Cck3fT4t.js";
3
3
  const a = i(o);
4
4
  export {
5
5
  a as PersonalityQuizPlay
package/PickThePair.js CHANGED
@@ -5,7 +5,7 @@ import nt, { useMemo as at, useCallback as $t, useEffect as Pe, useState as V }
5
5
  import { useTranslation as ce } from "react-i18next";
6
6
  import { keyframes as he, css as i } from "@emotion/react";
7
7
  import { TimerOutlinedIcon as At } from "fansunited-frontend-core/ui/icons";
8
- import { w as zt } from "./chunks/withVersionStamp-KKp-FjR1.js";
8
+ import { w as zt } from "./chunks/withVersionStamp-Cck3fT4t.js";
9
9
  const t = {
10
10
  fontPrimary: "var(--fu-ucrc-font-primary)",
11
11
  fontSecondary: "var(--fu-ucrc-font-secondary)",
@@ -6,7 +6,7 @@ import { useRef as $e, useEffect as U, useState as I, useMemo as Ce } from "reac
6
6
  import { css as r } from "@emotion/react";
7
7
  import { ChevronLeftIcon as Lo, ChevronRightIcon as Wo, StarIcon as Qe, SearchIcon as Fo, CloseIcon as Ho, FilterAltIcon as lt, AccessTimeIcon as qt, HowToVoteIcon as Oo, CheckCircleIcon as No } from "fansunited-frontend-core/ui/icons";
8
8
  import { X as Xo } from "fansunited-frontend-core/ui/icons/lucide";
9
- import { w as Vo } from "./chunks/withVersionStamp-KKp-FjR1.js";
9
+ import { w as Vo } from "./chunks/withVersionStamp-Cck3fT4t.js";
10
10
  const e = {
11
11
  fontPrimary: "var(--fu-ucrc-font-primary)",
12
12
  fontSecondary: "var(--fu-ucrc-font-secondary)",
package/PollVote.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as o } from "./chunks/main-07vzblS8.js";
2
- import { w as t } from "./chunks/withVersionStamp-KKp-FjR1.js";
2
+ import { w as t } from "./chunks/withVersionStamp-Cck3fT4t.js";
3
3
  const m = t(o);
4
4
  export {
5
5
  m as PollVote
package/Predictor.js CHANGED
@@ -10,7 +10,7 @@ import { css as s, keyframes as nt } from "@emotion/react";
10
10
  import { c as I, p as X, f as z, a as Ve, L as Ns, b as go, m as Sr, d as Fs, G as Ps, P as zs, R as Ws, e as Hs } from "./chunks/predictionsHelpers-D8j0Y78z.js";
11
11
  import { ShieldOutlinedIcon as qo, KeyboardArrowDownIcon as Tr, KeyboardArrowUpIcon as Vs } from "fansunited-frontend-core/ui/icons";
12
12
  import "fansunited-frontend-core/ui/icons/lucide";
13
- import { w as js } from "./chunks/withVersionStamp-KKp-FjR1.js";
13
+ import { w as js } from "./chunks/withVersionStamp-Cck3fT4t.js";
14
14
  const Rr = Es(null), Er = ({ children: e, ...t }) => /* @__PURE__ */ o(Rr.Provider, { value: t, children: e }), Je = () => {
15
15
  const e = _s(Rr);
16
16
  if (!e)
package/README.md CHANGED
@@ -5761,6 +5761,98 @@ import { PlayerOfTheMatch } from "fansunited-frontend-components";
5761
5761
 
5762
5762
  ---
5763
5763
 
5764
+ ### BattleOfFans
5765
+
5766
+ A head-to-head fan vote between football teams or football players. While voting is open it shows a countdown, the two sides with a Vote button each, and the vote split; once voting ends it announces the winner (or a draw) with the final result. Optionally shows the match odds under the card.
5767
+
5768
+ **Key Features:**
5769
+
5770
+ - Team vs team or player vs player, from a `battle-of-fans` poll tagged with the entities
5771
+ - Countdown to the end of voting, read from the poll's `voting_ends_at` custom field; switches to the result without a reload
5772
+ - Each side in its own colours: a team's branding, a player's club branding, the theme otherwise
5773
+ - Vote split as a progress bar or as the sides' own background (`progressDisplay`)
5774
+ - Results visible before the vote, or only after it (`showResultsBeforeVote`)
5775
+ - Winner reveal with a trophy badge on a corner of your choice, and a draw view for an even split
5776
+ - Optional odds strip for a two-team battle
5777
+ - Optional sign-in gate for polls that require a registered user
5778
+
5779
+ #### Setting up the Poll
5780
+
5781
+ | Poll field | What it holds |
5782
+ | --- | --- |
5783
+ | `context.tags` | The competing football teams (`team`) or players (`player`) |
5784
+ | `options` | One option per side, in the same order as the tags. The first is the home side |
5785
+ | `custom_fields.voting_ends_at` | When voting closes, ISO 8601 UTC, e.g. `"2026-12-01T20:00:00Z"` |
5786
+
5787
+ Voting also closes when the poll is no longer `ACTIVE`. Each user votes once.
5788
+
5789
+ #### Required Props
5790
+
5791
+ | Prop | Type | Description |
5792
+ | ---------- | -------------------- | ------------------------------------ |
5793
+ | `entityId` | `string` | Poll ID of a `battle-of-fans` poll |
5794
+ | `sdk` | `FansUnitedSDKModel` | SDK instance |
5795
+ | `language` | `LanguageType` | Display language |
5796
+
5797
+ #### Optional Props
5798
+
5799
+ | Prop | Type | Description |
5800
+ | ----------------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
5801
+ | `themeOptions` | `CustomThemeOptions` | Theme configuration |
5802
+ | `progressDisplay` | `"bar" \| "background"` | Vote split as a progress bar, or as the sides' background. Defaults to `"bar"` |
5803
+ | `showResultsBeforeVote` | `boolean` | Show the split before the visitor votes. Defaults to `true` |
5804
+ | `showTrophy` | `boolean` | Trophy badge on the winner's image. Defaults to `true` |
5805
+ | `trophyPosition` | `"top-left" \| "top-right" \| "bottom-left" \| "bottom-right"` | Corner of the winner's image; stays put in right-to-left languages. Defaults to `"bottom-right"` |
5806
+ | `labels` | `BattleOfFansLabels` | Override any text |
5807
+ | `showOdds` | `boolean` | Match odds under the card, for two teams with `odds.eventId` set. Defaults to `false` |
5808
+ | `odds` | `BattleOfFansOddsConfig` | `OddsConfig` plus `eventId`, the match the prices are for |
5809
+ | `userIsLoggedIn` | `boolean` | Whether the current visitor is signed in. Drives the sign-in gate |
5810
+ | `signInCTA` | `SignInCTADetails` | Shown in place of the Vote buttons while the sign-in gate is active |
5811
+ | `leads` | `LeadsOptions` | Lead form of a poll with `authRequirement: "LEAD"`, before voting or between the pick and the vote |
5812
+ | `callbacks` | `BattleOfFansCallbacks` | `onFinish(vote)` after a vote is cast. Not called for a visitor who had already voted |
5813
+ | `disableCache` | `boolean` | Bypass the CDN cache for every request |
5814
+
5815
+ #### Labels
5816
+
5817
+ Keys: `title`, `subtitle`, `votingEndsIn`, `days`, `hours`, `minutes`, `seconds`, `vote`, `thankYou`, `voteToSeeResults`, `votingEnded`, `endedSubtitle`, `drawSubtitle`, `winner`, `ofTheVotes`, `finalResult`. `title` and `subtitle` default to the poll's own title and description. Every key falls back to the built-in translation; the default `subtitle` differs for teams and players.
5818
+
5819
+ #### Examples
5820
+
5821
+ ##### Basic
5822
+
5823
+ ```tsx
5824
+ import { BattleOfFans } from "fansunited-frontend-components";
5825
+
5826
+ <BattleOfFans entityId="your-poll-id" sdk={sdkInstance} language="en" />;
5827
+ ```
5828
+
5829
+ ##### Background Fill with Odds
5830
+
5831
+ ```tsx
5832
+ <BattleOfFans
5833
+ entityId="your-poll-id"
5834
+ sdk={sdkInstance}
5835
+ language="en"
5836
+ progressDisplay="background"
5837
+ showOdds
5838
+ odds={{ eventId: "fb:m:12345" }}
5839
+ />
5840
+ ```
5841
+
5842
+ ##### Sign-in Required
5843
+
5844
+ ```tsx
5845
+ <BattleOfFans
5846
+ entityId="your-poll-id"
5847
+ sdk={sdkInstance}
5848
+ language="en"
5849
+ userIsLoggedIn={false}
5850
+ signInCTA={{ defaultLabel: "Sign in to vote", onClick: () => {} }}
5851
+ />
5852
+ ```
5853
+
5854
+ ---
5855
+
5764
5856
  ### CompetitorCard
5765
5857
 
5766
5858
  A competitor profile card. It renders the competitor's identity, their season statistics with a competition switcher, recent form, the next or last fixture (with betting odds, or a live badge while it is in progress), and two inline panels opened from the header.
@@ -6191,6 +6283,7 @@ This package exports the following components:
6191
6283
  - **`Standings`** - Sport-agnostic competition standings table with zone highlighting, rank movement, and team form
6192
6284
  - **`EventCard`** - Single-event card with compact/standard/hero templates, team + tennis scoring, sport-aware status labels, live auto-refresh, and optional detail tabs (form, timeline, stats, lineups, standings, head-to-head)
6193
6285
  - **`PlayerOfTheMatch`** - Coverflow voting carousel with search, position filters, a roster rail, live voting status, and winner/tied-winners results
6286
+ - **`BattleOfFans`** - Head-to-head fan vote between two teams or two players, with a countdown, the vote split, a winner reveal and optional odds
6194
6287
  - **`CompetitorCard`** - Team or athlete profile card with four templates, season statistics and a competition switcher, recent form, next/last fixture with odds and a live badge, and inline Fixtures, Squad and Season stats panels
6195
6288
  - **`CompetitionStatistics`** - A competition's season on one page: fixtures and results by stage and round with live scores and odds, expandable match detail, player rankings, and season statistics
6196
6289
  - **`Odds`** - One event's betting odds for one market from a preferred operator, with movement arrows, flash mode and a betslip callback
package/Standings.js CHANGED
@@ -7,7 +7,7 @@ import { hexToRgb as Ge, useDisableCache as je, extractSdkErrorMessage as it, us
7
7
  import { MatchFilters as ke } from "fansunited-sdk-esm/models";
8
8
  import { EmojiEventsIcon as dt } from "fansunited-frontend-core/ui/icons";
9
9
  import { createPortal as ut } from "react-dom";
10
- import { w as pt } from "./chunks/withVersionStamp-KKp-FjR1.js";
10
+ import { w as pt } from "./chunks/withVersionStamp-Cck3fT4t.js";
11
11
  const ft = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/[_-]+/g, " ").trim().replace(
12
12
  /\S+/g,
13
13
  (n) => n.charAt(0).toUpperCase() + n.slice(1).toLowerCase()
package/TopX.js CHANGED
@@ -10,7 +10,7 @@ import { css as n, keyframes as he } from "@emotion/react";
10
10
  import { c as x, p as N, f as P, a as Ie, L as kr, b as Dn, m as Pn, d as Sr, G as wr, P as Cr, R as Tr, e as Ir } from "./chunks/predictionsHelpers-D8j0Y78z.js";
11
11
  import { ShieldOutlinedIcon as Nn, PersonIcon as Er } from "fansunited-frontend-core/ui/icons";
12
12
  import "fansunited-frontend-core/ui/icons/lucide";
13
- import { w as Lr } from "./chunks/withVersionStamp-KKp-FjR1.js";
13
+ import { w as Lr } from "./chunks/withVersionStamp-Cck3fT4t.js";
14
14
  const On = gr(null), Rr = ({ children: e, ...o }) => /* @__PURE__ */ t(On.Provider, { value: o, children: e }), Ye = () => {
15
15
  const e = hr(On);
16
16
  if (!e)
@@ -4,7 +4,7 @@ import { version as i } from "fansunited-frontend-core";
4
4
  let o = !1;
5
5
  const m = () => {
6
6
  o || typeof window > "u" || (o = !0, window.fansUnitedComponentsVersions = {
7
- components: "1.0.2",
7
+ components: "1.1.0",
8
8
  core: i
9
9
  });
10
10
  }, d = (e) => {
package/components.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { ClassicQuizPlayProps, PollVoteProps, CollectLeadProps, PersonalityQuizPlayProps, MatchQuizPlayProps, EventGamePlayProps, PickThePairProps, ChanceGameProps, DiscussionProps, EitherOrPlayProps, LeaderboardProps, PredictorProps, BetslipProps, TopXProps, StandingsProps, EventCardProps, CompetitorCardProps, PlayerOfTheMatchProps, ListProps, CompetitionStatisticsProps, OddsProps } from "fansunited-frontend-core";
1
+ import { ClassicQuizPlayProps, PollVoteProps, CollectLeadProps, PersonalityQuizPlayProps, MatchQuizPlayProps, EventGamePlayProps, PickThePairProps, ChanceGameProps, DiscussionProps, EitherOrPlayProps, LeaderboardProps, PredictorProps, BetslipProps, TopXProps, StandingsProps, EventCardProps, CompetitorCardProps, PlayerOfTheMatchProps, BattleOfFansProps, ListProps, CompetitionStatisticsProps, OddsProps } from "fansunited-frontend-core";
2
2
 
3
3
  export declare const ClassicQuizPlay: React.FC<ClassicQuizPlayProps>;
4
4
  export declare const PollVote: React.FC<PollVoteProps>;
@@ -18,6 +18,7 @@ export declare const Standings: React.FC<StandingsProps>;
18
18
  export declare const EventCard: React.FC<EventCardProps>;
19
19
  export declare const CompetitorCard: React.FC<CompetitorCardProps>;
20
20
  export declare const PlayerOfTheMatch: React.FC<PlayerOfTheMatchProps>;
21
+ export declare const BattleOfFans: React.FC<BattleOfFansProps>;
21
22
  export declare const List: React.FC<ListProps>;
22
23
  export declare const CompetitionStatistics: React.FC<CompetitionStatisticsProps>;
23
24
  export declare const Odds: React.FC<OddsProps>;
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/components.tsx"],"names":[],"mappings":"AAqBA,OAAO,EACL,oBAAoB,EACpB,aAAa,EACb,gBAAgB,EAChB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,YAAY,EACZ,SAAS,EACT,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,qBAAqB,EACrB,SAAS,EACT,0BAA0B,EAC1B,SAAS,EACV,MAAM,oBAAoB,CAAC;AAI5B,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CACjC,CAAC;AAE3B,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAAqB,CAAC;AAEnE,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAwB,CAAC;AAE5E,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CACrC,CAAC;AAE/B,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAC/B,CAAC;AAEzB,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAC/B,CAAC;AAEzB,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAwB,CAAC;AAE5E,eAAO,MAA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AC,EAAE,CAAC,YAAY,CAAoB,CAAC;AAEhE,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAsB,CAAC;AAEtE,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAsB,CAAC;AAEtE,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAChC,CAAC;AAE1B,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,EAAE,CAAC,qBAAqB,CAA6B,CAAC;AAE3F,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAyB,CAAC;AAE/E,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAiB,CAAC;AAEvD,eAAO,MAAM,qBAAqB,EAAE,KAAK,CAAC,EAAE,CAAC,0BAA0B,CACvC,CAAC;AAEjC,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAiB,CAAC"}
package/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export { Standings } from './Standings';
16
16
  export { EventCard } from './EventCard';
17
17
  export { CompetitorCard } from './CompetitorCard';
18
18
  export { PlayerOfTheMatch } from './PlayerOfTheMatch';
19
+ export { BattleOfFans } from './BattleOfFans';
19
20
  export { List } from './List';
20
21
  export { CompetitionStatistics } from './CompetitionStatistics';
21
22
  export { Odds } from './Odds';
package/index.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MA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from "./ClassicQuizPlay.js";
1
+ import { ClassicQuizPlay as t } from "./ClassicQuizPlay.js";
2
2
  import { PollVote as p } from "./PollVote.js";
3
3
  import { CollectLead as f } from "./CollectLead.js";
4
- import { PersonalityQuizPlay as a } from "./PersonalityQuizPlay.js";
4
+ import { PersonalityQuizPlay as x } from "./PersonalityQuizPlay.js";
5
5
  import { MatchQuizPlay as l } from "./MatchQuizPlay.js";
6
6
  import { EventGamePlay as n } from "./EventGamePlay.js";
7
7
  import { PickThePair as c } from "./PickThePair.js";
8
8
  import { ChanceGame as y } from "./ChanceGame.js";
9
9
  import { Discussion as h } from "./Discussion.js";
10
10
  import { EitherOrPlay as E } from "./EitherOrPlay.js";
11
- import { Leaderboard as z } from "./Leaderboard.js";
12
- import { Predictor as O } from "./Predictor.js";
11
+ import { Leaderboard as v } from "./Leaderboard.js";
12
+ import { Predictor as L } from "./Predictor.js";
13
13
  import { TopX as T } from "./TopX.js";
14
- import { Betslip as G } from "./Betslip.js";
15
- import { Standings as S } from "./Standings.js";
16
- import { EventCard as k } from "./EventCard.js";
17
- import { CompetitorCard as B } from "./CompetitorCard.js";
18
- import { PlayerOfTheMatch as V } from "./PlayerOfTheMatch.js";
19
- import { List as j } from "./List.js";
20
- import { CompetitionStatistics as w } from "./CompetitionStatistics.js";
21
- import { Odds as H } from "./Odds.js";
22
- import { betslipApi as J, componentEvents as K } from "fansunited-frontend-core";
14
+ import { Betslip as B } from "./Betslip.js";
15
+ import { Standings as M } from "./Standings.js";
16
+ import { EventCard as g } from "./EventCard.js";
17
+ import { CompetitorCard as A } from "./CompetitorCard.js";
18
+ import { PlayerOfTheMatch as F } from "./PlayerOfTheMatch.js";
19
+ import { BattleOfFans as X } from "./BattleOfFans.js";
20
+ import { List as q } from "./List.js";
21
+ import { CompetitionStatistics as H } from "./CompetitionStatistics.js";
22
+ import { Odds as J } from "./Odds.js";
23
+ import { betslipApi as N, componentEvents as R } from "fansunited-frontend-core";
23
24
  export {
24
- G as Betslip,
25
+ X as BattleOfFans,
26
+ B as Betslip,
25
27
  y as ChanceGame,
26
- e as ClassicQuizPlay,
28
+ t as ClassicQuizPlay,
27
29
  f as CollectLead,
28
- w as CompetitionStatistics,
29
- B as CompetitorCard,
30
+ H as CompetitionStatistics,
31
+ A as CompetitorCard,
30
32
  h as Discussion,
31
33
  E as EitherOrPlay,
32
- k as EventCard,
34
+ g as EventCard,
33
35
  n as EventGamePlay,
34
- z as Leaderboard,
35
- j as List,
36
+ v as Leaderboard,
37
+ q as List,
36
38
  l as MatchQuizPlay,
37
- H as Odds,
38
- a as PersonalityQuizPlay,
39
+ J as Odds,
40
+ x as PersonalityQuizPlay,
39
41
  c as PickThePair,
40
- V as PlayerOfTheMatch,
42
+ F as PlayerOfTheMatch,
41
43
  p as PollVote,
42
- O as Predictor,
43
- S as Standings,
44
+ L as Predictor,
45
+ M as Standings,
44
46
  T as TopX,
45
- J as betslipApi,
46
- K as componentEvents
47
+ N as betslipApi,
48
+ R as componentEvents
47
49
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-frontend-components",
3
- "version": "1.0.2",
3
+ "version": "1.1.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Fans-United/widgets-dispatcher.git"
@@ -18,6 +18,10 @@
18
18
  "import": "./index.js",
19
19
  "types": "./index.d.ts"
20
20
  },
21
+ "./BattleOfFans": {
22
+ "import": "./BattleOfFans.js",
23
+ "types": "./BattleOfFans.d.ts"
24
+ },
21
25
  "./Betslip": {
22
26
  "import": "./Betslip.js",
23
27
  "types": "./Betslip.d.ts"
@@ -106,7 +110,7 @@
106
110
  "dependencies": {
107
111
  "@emotion/cache": "^11.13.1",
108
112
  "@emotion/react": "^11.13.3",
109
- "fansunited-frontend-core": "1.0.2",
113
+ "fansunited-frontend-core": "1.1.0",
110
114
  "i18next": "^25.2.1",
111
115
  "i18next-browser-languagedetector": "^8.1.0",
112
116
  "react-i18next": "^15.5.2"