fansunited-frontend-components 1.0.2 → 1.1.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/BattleOfFans.d.ts +4 -0
- package/BattleOfFans.d.ts.map +1 -0
- package/BattleOfFans.js +1887 -0
- package/Betslip.js +1 -1
- package/ChanceGame.js +1 -1
- package/ClassicQuizPlay.js +1 -1
- package/CollectLead.js +1 -1
- package/CompetitionStatistics.js +1 -1
- package/CompetitorCard.js +1105 -1154
- package/Discussion.js +1 -1
- package/EitherOrPlay.js +1 -1
- package/EventCard.js +1 -1
- package/EventGamePlay.js +1 -1
- package/Leaderboard.js +1 -1
- package/List.js +1 -1
- package/MatchQuizPlay.js +1 -1
- package/Odds.js +1 -1
- package/PersonalityQuizPlay.js +1 -1
- package/PickThePair.js +1 -1
- package/PlayerOfTheMatch.js +1 -1
- package/PollVote.js +1 -1
- package/Predictor.js +1 -1
- package/README.md +95 -0
- package/Standings.js +1 -1
- package/TopX.js +1 -1
- package/chunks/{withVersionStamp-KKp-FjR1.js → withVersionStamp-CzdDF1rG.js} +1 -1
- package/components.d.ts +2 -1
- package/components.d.ts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +29 -27
- package/package.json +6 -2
package/Discussion.js
CHANGED
package/EitherOrPlay.js
CHANGED
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-
|
|
10
|
+
import { w as Ra } from "./chunks/withVersionStamp-CzdDF1rG.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
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-
|
|
9
|
+
import { w as Me } from "./chunks/withVersionStamp-CzdDF1rG.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-
|
|
9
|
+
import { w as Me } from "./chunks/withVersionStamp-CzdDF1rG.js";
|
|
10
10
|
const se = (t) => {
|
|
11
11
|
const n = t.entityModel;
|
|
12
12
|
if (!n) return null;
|
package/MatchQuizPlay.js
CHANGED
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-
|
|
7
|
+
import { w as X } from "./chunks/withVersionStamp-CzdDF1rG.js";
|
|
8
8
|
const _ = ({
|
|
9
9
|
eventId: t,
|
|
10
10
|
sdk: n,
|
package/PersonalityQuizPlay.js
CHANGED
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-
|
|
8
|
+
import { w as zt } from "./chunks/withVersionStamp-CzdDF1rG.js";
|
|
9
9
|
const t = {
|
|
10
10
|
fontPrimary: "var(--fu-ucrc-font-primary)",
|
|
11
11
|
fontSecondary: "var(--fu-ucrc-font-secondary)",
|
package/PlayerOfTheMatch.js
CHANGED
|
@@ -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-
|
|
9
|
+
import { w as Vo } from "./chunks/withVersionStamp-CzdDF1rG.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
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-
|
|
13
|
+
import { w as js } from "./chunks/withVersionStamp-CzdDF1rG.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,100 @@ 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
|
+
- Countdown to the start of voting for a poll that is inactive until its scheduled start (`voting_starts_at`); opens without a reload
|
|
5773
|
+
- Each side in its own colours: a team's branding, a player's club branding, the theme otherwise
|
|
5774
|
+
- Vote split as a progress bar or as the sides' own background (`progressDisplay`)
|
|
5775
|
+
- Results visible before the vote, or only after it (`showResultsBeforeVote`)
|
|
5776
|
+
- Winner reveal with a trophy badge on a corner of your choice, and a draw view for an even split
|
|
5777
|
+
- Optional odds strip for a two-team battle
|
|
5778
|
+
- Optional sign-in gate for polls that require a registered user
|
|
5779
|
+
|
|
5780
|
+
#### Setting up the Poll
|
|
5781
|
+
|
|
5782
|
+
| Poll field | What it holds |
|
|
5783
|
+
| --- | --- |
|
|
5784
|
+
| `context.tags` | The competing football teams (`team`) or players (`player`) |
|
|
5785
|
+
| `options` | One option per side, in the same order as the tags. The first is the home side |
|
|
5786
|
+
| `custom_fields.voting_ends_at` | When voting closes, ISO 8601 UTC, e.g. `"2026-12-01T20:00:00Z"` |
|
|
5787
|
+
| `custom_fields.voting_starts_at` | Optional. When voting opens, ISO 8601 UTC, for a poll that is `INACTIVE` until it is activated |
|
|
5788
|
+
|
|
5789
|
+
Voting also closes when the poll is no longer `ACTIVE`. Each user votes once. An `INACTIVE` poll with `voting_starts_at` ahead counts down to the start with the Vote buttons disabled, and opens once the poll is `ACTIVE`.
|
|
5790
|
+
|
|
5791
|
+
#### Required Props
|
|
5792
|
+
|
|
5793
|
+
| Prop | Type | Description |
|
|
5794
|
+
| ---------- | -------------------- | ------------------------------------ |
|
|
5795
|
+
| `entityId` | `string` | Poll ID of a `battle-of-fans` poll |
|
|
5796
|
+
| `sdk` | `FansUnitedSDKModel` | SDK instance |
|
|
5797
|
+
| `language` | `LanguageType` | Display language |
|
|
5798
|
+
|
|
5799
|
+
#### Optional Props
|
|
5800
|
+
|
|
5801
|
+
| Prop | Type | Description |
|
|
5802
|
+
| ----------------------- | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- |
|
|
5803
|
+
| `themeOptions` | `CustomThemeOptions` | Theme configuration |
|
|
5804
|
+
| `progressDisplay` | `"bar" \| "background"` | Vote split as a progress bar, or as the sides' background. Defaults to `"bar"` |
|
|
5805
|
+
| `showResultsBeforeVote` | `boolean` | Show the split before the visitor votes. Defaults to `true` |
|
|
5806
|
+
| `showTrophy` | `boolean` | Trophy badge on the winner's image. Defaults to `true` |
|
|
5807
|
+
| `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"` |
|
|
5808
|
+
| `labels` | `BattleOfFansLabels` | Override any text |
|
|
5809
|
+
| `showOdds` | `boolean` | Match odds under the card, for two teams with `odds.eventId` set. Defaults to `false` |
|
|
5810
|
+
| `odds` | `BattleOfFansOddsConfig` | `OddsConfig` plus `eventId`, the match the prices are for |
|
|
5811
|
+
| `userIsLoggedIn` | `boolean` | Whether the current visitor is signed in. Drives the sign-in gate |
|
|
5812
|
+
| `signInCTA` | `SignInCTADetails` | Shown in place of the Vote buttons while the sign-in gate is active |
|
|
5813
|
+
| `leads` | `LeadsOptions` | Lead form of a poll with `authRequirement: "LEAD"`, before voting or between the pick and the vote |
|
|
5814
|
+
| `callbacks` | `BattleOfFansCallbacks` | `onFinish(vote)` after a vote is cast. Not called for a visitor who had already voted |
|
|
5815
|
+
| `disableCache` | `boolean` | Bypass the CDN cache for every request |
|
|
5816
|
+
|
|
5817
|
+
#### Labels
|
|
5818
|
+
|
|
5819
|
+
Keys: `title`, `subtitle`, `votingEndsIn`, `votingStartsIn`, `votingStartsSoon`, `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.
|
|
5820
|
+
|
|
5821
|
+
#### Examples
|
|
5822
|
+
|
|
5823
|
+
##### Basic
|
|
5824
|
+
|
|
5825
|
+
```tsx
|
|
5826
|
+
import { BattleOfFans } from "fansunited-frontend-components";
|
|
5827
|
+
|
|
5828
|
+
<BattleOfFans entityId="your-poll-id" sdk={sdkInstance} language="en" />;
|
|
5829
|
+
```
|
|
5830
|
+
|
|
5831
|
+
##### Background Fill with Odds
|
|
5832
|
+
|
|
5833
|
+
```tsx
|
|
5834
|
+
<BattleOfFans
|
|
5835
|
+
entityId="your-poll-id"
|
|
5836
|
+
sdk={sdkInstance}
|
|
5837
|
+
language="en"
|
|
5838
|
+
progressDisplay="background"
|
|
5839
|
+
showOdds
|
|
5840
|
+
odds={{ eventId: "fb:m:12345" }}
|
|
5841
|
+
/>
|
|
5842
|
+
```
|
|
5843
|
+
|
|
5844
|
+
##### Sign-in Required
|
|
5845
|
+
|
|
5846
|
+
```tsx
|
|
5847
|
+
<BattleOfFans
|
|
5848
|
+
entityId="your-poll-id"
|
|
5849
|
+
sdk={sdkInstance}
|
|
5850
|
+
language="en"
|
|
5851
|
+
userIsLoggedIn={false}
|
|
5852
|
+
signInCTA={{ defaultLabel: "Sign in to vote", onClick: () => {} }}
|
|
5853
|
+
/>
|
|
5854
|
+
```
|
|
5855
|
+
|
|
5856
|
+
---
|
|
5857
|
+
|
|
5764
5858
|
### CompetitorCard
|
|
5765
5859
|
|
|
5766
5860
|
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 +6285,7 @@ This package exports the following components:
|
|
|
6191
6285
|
- **`Standings`** - Sport-agnostic competition standings table with zone highlighting, rank movement, and team form
|
|
6192
6286
|
- **`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
6287
|
- **`PlayerOfTheMatch`** - Coverflow voting carousel with search, position filters, a roster rail, live voting status, and winner/tied-winners results
|
|
6288
|
+
- **`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
6289
|
- **`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
6290
|
- **`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
6291
|
- **`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-
|
|
10
|
+
import { w as pt } from "./chunks/withVersionStamp-CzdDF1rG.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-
|
|
13
|
+
import { w as Lr } from "./chunks/withVersionStamp-CzdDF1rG.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)
|
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>;
|
package/components.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/components.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../src/components.tsx"],"names":[],"mappings":"AAsBA,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,iBAAiB,EACjB,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,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAuB,CAAC;AAEzE,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAAuB,CAAC;AAEzE,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAAyB,CAAC;AAE/E,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAAwB,CAAC;AAE5E,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAAsB,CAAC;AAEtE,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAAiB,CAAC;AAEvD,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,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 {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C;AAC9B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAGvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,YAAY,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC"}
|
package/index.js
CHANGED
|
@@ -1,47 +1,49 @@
|
|
|
1
|
-
import { ClassicQuizPlay as
|
|
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
|
|
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
|
|
12
|
-
import { Predictor as
|
|
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
|
|
15
|
-
import { Standings as
|
|
16
|
-
import { EventCard as
|
|
17
|
-
import { CompetitorCard as
|
|
18
|
-
import { PlayerOfTheMatch as
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
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
|
-
|
|
25
|
+
X as BattleOfFans,
|
|
26
|
+
B as Betslip,
|
|
25
27
|
y as ChanceGame,
|
|
26
|
-
|
|
28
|
+
t as ClassicQuizPlay,
|
|
27
29
|
f as CollectLead,
|
|
28
|
-
|
|
29
|
-
|
|
30
|
+
H as CompetitionStatistics,
|
|
31
|
+
A as CompetitorCard,
|
|
30
32
|
h as Discussion,
|
|
31
33
|
E as EitherOrPlay,
|
|
32
|
-
|
|
34
|
+
g as EventCard,
|
|
33
35
|
n as EventGamePlay,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
v as Leaderboard,
|
|
37
|
+
q as List,
|
|
36
38
|
l as MatchQuizPlay,
|
|
37
|
-
|
|
38
|
-
|
|
39
|
+
J as Odds,
|
|
40
|
+
x as PersonalityQuizPlay,
|
|
39
41
|
c as PickThePair,
|
|
40
|
-
|
|
42
|
+
F as PlayerOfTheMatch,
|
|
41
43
|
p as PollVote,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
L as Predictor,
|
|
45
|
+
M as Standings,
|
|
44
46
|
T as TopX,
|
|
45
|
-
|
|
46
|
-
|
|
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.
|
|
3
|
+
"version": "1.1.1",
|
|
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.
|
|
113
|
+
"fansunited-frontend-core": "1.1.1",
|
|
110
114
|
"i18next": "^25.2.1",
|
|
111
115
|
"i18next-browser-languagedetector": "^8.1.0",
|
|
112
116
|
"react-i18next": "^15.5.2"
|