fansunited-frontend-components 1.1.0 → 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/Betslip.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { M as o } from "./chunks/main-P2WNvBZE.js";
2
- import { w as t } from "./chunks/withVersionStamp-Cck3fT4t.js";
2
+ import { w as t } from "./chunks/withVersionStamp-CzdDF1rG.js";
3
3
  const m = t(o);
4
4
  export {
5
5
  m as Betslip
package/ChanceGame.js CHANGED
@@ -5,7 +5,7 @@ import { NotFound as wt, StandardSkeleton as Ze, OverlaySkeleton as et, Presente
5
5
  import { useTranslation as ue } from "react-i18next";
6
6
  import { css as n, keyframes as tt } from "@emotion/react";
7
7
  import { c as re, V as e, h as ze, d as ke, o as se, u as ot, e as zt, S as ce, f as nt, D as it, C as Bt, W as Rt, g as Mt, i as _t, j as $t, O as Wt, F as Ft, b as Se, a as Ct, P as Dt } from "./chunks/PickOneOfX-IvE4OvyT.js";
8
- import { w as Tt } from "./chunks/withVersionStamp-Cck3fT4t.js";
8
+ import { w as Tt } from "./chunks/withVersionStamp-CzdDF1rG.js";
9
9
  const Ge = {
10
10
  display: "flex",
11
11
  width: "100%",
@@ -1,5 +1,5 @@
1
1
  import { M as i } from "./chunks/main-DdL0UekL.js";
2
- import { w as o } from "./chunks/withVersionStamp-Cck3fT4t.js";
2
+ import { w as o } from "./chunks/withVersionStamp-CzdDF1rG.js";
3
3
  const s = o(i);
4
4
  export {
5
5
  s as ClassicQuizPlay
package/CollectLead.js CHANGED
@@ -4,7 +4,7 @@ import { PresentedBy as ue, CollectLeadForm as me, space as k, useBreakpointUp a
4
4
  import pe, { createContext as fe } from "react";
5
5
  import { css as n } from "@emotion/react";
6
6
  import { useTranslation as he } from "react-i18next";
7
- import { w as xe } from "./chunks/withVersionStamp-Cck3fT4t.js";
7
+ import { w as xe } from "./chunks/withVersionStamp-CzdDF1rG.js";
8
8
  const V = (t) => /* @__PURE__ */ o(ue, { inheritColor: !0, ...t }), R = fe({
9
9
  shadowRootElement: null,
10
10
  language: null,
@@ -7,7 +7,7 @@ import { useTranslation as Gt } from "react-i18next";
7
7
  import { ChevronLeft as Ht, ChevronRight as jt, Tv as Ut } from "fansunited-frontend-core/ui/icons/lucide";
8
8
  import { O as Vt, u as Kt } from "./chunks/OddsSkeleton-DP5Yfqpr.js";
9
9
  import "fansunited-sdk-esm/enums";
10
- import { w as Xt } from "./chunks/withVersionStamp-Cck3fT4t.js";
10
+ import { w as Xt } from "./chunks/withVersionStamp-CzdDF1rG.js";
11
11
  const wt = "https://sports.fansunitedapi.com/v1", vt = (e) => {
12
12
  try {
13
13
  const t = e.helpers.getSDKConfiguration();
package/CompetitorCard.js CHANGED
@@ -8,7 +8,7 @@ import { O as ir, u as sr } from "./chunks/OddsSkeleton-DP5Yfqpr.js";
8
8
  import { ArrowRight as rr, Info as ar, CalendarDays as lr, Users as cr, ChartColumn as dr, ChevronLeft as ur, ChevronDown as mr, Check as hr, X as fr, Minus as gr } from "fansunited-frontend-core/ui/icons/lucide";
9
9
  import { createPortal as pr } from "react-dom";
10
10
  import "fansunited-sdk-esm/enums";
11
- import { w as yr } from "./chunks/withVersionStamp-Cck3fT4t.js";
11
+ import { w as yr } from "./chunks/withVersionStamp-CzdDF1rG.js";
12
12
  const Sr = (e) => {
13
13
  try {
14
14
  const t = e.helpers.getSDKConfiguration();
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-Cck3fT4t.js";
2
+ import { w as i } from "./chunks/withVersionStamp-CzdDF1rG.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-Cck3fT4t.js";
2
+ import { w as o } from "./chunks/withVersionStamp-CzdDF1rG.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-Cck3fT4t.js";
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
@@ -1,5 +1,5 @@
1
1
  import { M as o } from "./chunks/main-C7X4dM_P.js";
2
- import { w as t } from "./chunks/withVersionStamp-Cck3fT4t.js";
2
+ import { w as t } from "./chunks/withVersionStamp-CzdDF1rG.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-Cck3fT4t.js";
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-Cck3fT4t.js";
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
@@ -1,5 +1,5 @@
1
1
  import { M as o } from "./chunks/main-D_QDfmAw.js";
2
- import { w as t } from "./chunks/withVersionStamp-Cck3fT4t.js";
2
+ import { w as t } from "./chunks/withVersionStamp-CzdDF1rG.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-Cck3fT4t.js";
7
+ import { w as X } from "./chunks/withVersionStamp-CzdDF1rG.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-Cck3fT4t.js";
2
+ import { w as i } from "./chunks/withVersionStamp-CzdDF1rG.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-Cck3fT4t.js";
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)",
@@ -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-Cck3fT4t.js";
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
@@ -1,5 +1,5 @@
1
1
  import { M as o } from "./chunks/main-07vzblS8.js";
2
- import { w as t } from "./chunks/withVersionStamp-Cck3fT4t.js";
2
+ import { w as t } from "./chunks/withVersionStamp-CzdDF1rG.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-Cck3fT4t.js";
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
@@ -5769,6 +5769,7 @@ A head-to-head fan vote between football teams or football players. While voting
5769
5769
 
5770
5770
  - Team vs team or player vs player, from a `battle-of-fans` poll tagged with the entities
5771
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
5772
5773
  - Each side in its own colours: a team's branding, a player's club branding, the theme otherwise
5773
5774
  - Vote split as a progress bar or as the sides' own background (`progressDisplay`)
5774
5775
  - Results visible before the vote, or only after it (`showResultsBeforeVote`)
@@ -5783,8 +5784,9 @@ A head-to-head fan vote between football teams or football players. While voting
5783
5784
  | `context.tags` | The competing football teams (`team`) or players (`player`) |
5784
5785
  | `options` | One option per side, in the same order as the tags. The first is the home side |
5785
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 |
5786
5788
 
5787
- Voting also closes when the poll is no longer `ACTIVE`. Each user votes once.
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`.
5788
5790
 
5789
5791
  #### Required Props
5790
5792
 
@@ -5814,7 +5816,7 @@ Voting also closes when the poll is no longer `ACTIVE`. Each user votes once.
5814
5816
 
5815
5817
  #### Labels
5816
5818
 
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.
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.
5818
5820
 
5819
5821
  #### Examples
5820
5822
 
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-Cck3fT4t.js";
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-Cck3fT4t.js";
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)
@@ -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.1.0",
7
+ components: "1.1.1",
8
8
  core: i
9
9
  });
10
10
  }, d = (e) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-frontend-components",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Fans-United/widgets-dispatcher.git"
@@ -110,7 +110,7 @@
110
110
  "dependencies": {
111
111
  "@emotion/cache": "^11.13.1",
112
112
  "@emotion/react": "^11.13.3",
113
- "fansunited-frontend-core": "1.1.0",
113
+ "fansunited-frontend-core": "1.1.1",
114
114
  "i18next": "^25.2.1",
115
115
  "i18next-browser-languagedetector": "^8.1.0",
116
116
  "react-i18next": "^15.5.2"