fansunited-management-components 1.51.0-RC1 → 1.52.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/index.es.js +151 -6
- package/index.umd.js +1 -1
- package/package.json +1 -1
- package/src/components/DragAndDrop/BasicSortableList/BasicSortableList.d.ts +3 -5
- package/src/components/DragAndDrop/BasicSortableList/BasicSortableList.d.ts.map +1 -1
- package/src/components/Exports/ExportUsersLeads.d.ts +1 -1
- package/src/constants/components.d.ts +146 -2
- package/src/constants/components.d.ts.map +1 -1
- package/src/context/ApiContext.d.ts.map +1 -1
- package/src/hooks/useWinners.d.ts +1 -1
- package/src/hooks/useWinners.d.ts.map +1 -1
- package/src/index.d.ts.map +1 -1
package/index.es.js
CHANGED
|
@@ -30219,8 +30219,9 @@ const kj = (e, t, n) => {
|
|
|
30219
30219
|
s.tags || (s.tags = []);
|
|
30220
30220
|
}), i(l);
|
|
30221
30221
|
} catch (l) {
|
|
30222
|
-
const s =
|
|
30223
|
-
|
|
30222
|
+
const s = o.helpers.getSDKConfiguration();
|
|
30223
|
+
let c = null;
|
|
30224
|
+
s.errorHandlingMode === "standard" ? c = l.error : c = l.data.error, c.code !== 404 && c.status !== "code_unknown_contest" && n(), i(new Cb());
|
|
30224
30225
|
}
|
|
30225
30226
|
});
|
|
30226
30227
|
return be(() => {
|
|
@@ -30587,6 +30588,7 @@ const tB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30587
30588
|
a(""), s(""), d([]), i();
|
|
30588
30589
|
};
|
|
30589
30590
|
return /* @__PURE__ */ u.jsxs("tr", { style: { backgroundColor: f ? "rgb(255 237 213)" : "" }, children: [
|
|
30591
|
+
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(ur, { name: "position", placeholder: "#", value: o, onChange: h, sx: { backgroundColor: "#fff" } }) }),
|
|
30590
30592
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsxs(le, { display: "flex", alignItems: "center", children: [
|
|
30591
30593
|
/* @__PURE__ */ u.jsx(Qt, { src: ((v = e.profileModel) == null ? void 0 : v.avatar) || "", alt: ((w = e.profileModel) == null ? void 0 : w.name) || "Unknown", sx: { mr: 1 } }),
|
|
30592
30594
|
/* @__PURE__ */ u.jsxs(le, { children: [
|
|
@@ -30604,7 +30606,6 @@ const tB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30604
30606
|
] }) }),
|
|
30605
30607
|
/* @__PURE__ */ u.jsx("td", { style: { textAlign: "center" }, children: e.points }),
|
|
30606
30608
|
/* @__PURE__ */ u.jsx("td", { style: { textAlign: "center" }, children: e.predictionsMade }),
|
|
30607
|
-
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(ur, { name: "position", placeholder: "#", value: o, onChange: h, sx: { backgroundColor: "#fff" } }) }),
|
|
30608
30609
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(ur, { name: "note", value: l, placeholder: "This user has...", onChange: p, sx: { backgroundColor: "#fff" } }) }),
|
|
30609
30610
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(xb, { labels: n, tags: c, onChange: m }) }),
|
|
30610
30611
|
/* @__PURE__ */ u.jsx("td", { children: /* @__PURE__ */ u.jsx(Oe, { title: n.clearWinner, children: /* @__PURE__ */ u.jsx(an, { onClick: g, variant: "outlined", color: "danger", disabled: !f, children: /* @__PURE__ */ u.jsx(Lp, {}) }) }) })
|
|
@@ -30646,10 +30647,10 @@ const tB = (e, t) => t || e || "-------------", Wc = (e, t) => Array.isArray(e)
|
|
|
30646
30647
|
},
|
|
30647
30648
|
children: [
|
|
30648
30649
|
/* @__PURE__ */ u.jsx("thead", { children: /* @__PURE__ */ u.jsxs("tr", { children: [
|
|
30650
|
+
/* @__PURE__ */ u.jsx("th", { style: { width: "70px" }, children: e.labels.position }),
|
|
30649
30651
|
/* @__PURE__ */ u.jsx("th", { children: e.labels.nicknameAndName }),
|
|
30650
30652
|
/* @__PURE__ */ u.jsx("th", { style: { width: "70px", textAlign: "center" }, children: e.labels.points }),
|
|
30651
30653
|
/* @__PURE__ */ u.jsx("th", { style: { width: "100px", textAlign: "center" }, children: e.labels.predictions }),
|
|
30652
|
-
/* @__PURE__ */ u.jsx("th", { style: { width: "100px" }, children: e.labels.position }),
|
|
30653
30654
|
/* @__PURE__ */ u.jsx("th", { children: e.labels.note }),
|
|
30654
30655
|
/* @__PURE__ */ u.jsx("th", { children: e.labels.tags }),
|
|
30655
30656
|
/* @__PURE__ */ u.jsx("th", { children: e.labels.actions })
|
|
@@ -36197,56 +36198,200 @@ const Iy = Qe(/* @__PURE__ */ u.jsx("path", {
|
|
|
36197
36198
|
}, i = (s) => new Intl.NumberFormat("en-US").format(s), o = Math.abs(e) >= 1e3, a = r(e), l = i(e);
|
|
36198
36199
|
return o ? /* @__PURE__ */ u.jsx(Oe, { title: l, placement: n, arrow: !0, children: /* @__PURE__ */ u.jsx(ge, { sx: t, children: a }) }) : /* @__PURE__ */ u.jsx(ge, { sx: t, children: a });
|
|
36199
36200
|
}, uz = {
|
|
36201
|
+
/**
|
|
36202
|
+
* Renders a sign-in form and triggers Firebase authentication.
|
|
36203
|
+
*/
|
|
36200
36204
|
Login: FL,
|
|
36205
|
+
/**
|
|
36206
|
+
* Labeled single-line text input using Joy UI.
|
|
36207
|
+
*/
|
|
36201
36208
|
InformationInput: On,
|
|
36209
|
+
/**
|
|
36210
|
+
* Rich text editor built on ReactQuill with optional label and helper text.
|
|
36211
|
+
*/
|
|
36202
36212
|
RichText: nd,
|
|
36213
|
+
/**
|
|
36214
|
+
* Header action buttons for management pages: create and optional create-from-template, plus sign out.
|
|
36215
|
+
*/
|
|
36203
36216
|
HeaderButtons: pR,
|
|
36217
|
+
/**
|
|
36218
|
+
* Market selection control with grouped checkboxes and “show all” behavior.
|
|
36219
|
+
*/
|
|
36204
36220
|
MarketSelection: t2,
|
|
36221
|
+
/**
|
|
36222
|
+
* Renders a collapsible section using MUI Joy's Accordion primitives.
|
|
36223
|
+
*/
|
|
36205
36224
|
Accordion: JE,
|
|
36225
|
+
/**
|
|
36226
|
+
* Editable key/value list for custom attributes with add, edit, and delete actions.
|
|
36227
|
+
*/
|
|
36206
36228
|
DynamicFields: RR,
|
|
36229
|
+
/**
|
|
36230
|
+
* Labeled select with provided options.
|
|
36231
|
+
*/
|
|
36207
36232
|
BasicSelect: ZE,
|
|
36233
|
+
/**
|
|
36234
|
+
* Labeled boolean toggle with optional description.
|
|
36235
|
+
*/
|
|
36208
36236
|
BooleanSwitch: Xa,
|
|
36237
|
+
/**
|
|
36238
|
+
* Branding editor with tabs for Images, Colors, and URLs.
|
|
36239
|
+
*/
|
|
36209
36240
|
Branding: hR,
|
|
36241
|
+
/**
|
|
36242
|
+
* Multi-select profiles search with debounce and avatar chip tags.
|
|
36243
|
+
*/
|
|
36210
36244
|
ProfileSearchSelect: wj,
|
|
36245
|
+
/**
|
|
36246
|
+
* Date range selector based on flatpickr, returning { from, to } in YYYY-MM-DD.
|
|
36247
|
+
*/
|
|
36211
36248
|
RangeCalendar: PR,
|
|
36249
|
+
/**
|
|
36250
|
+
* Single-select competition search with debounce and Joy Autocomplete.
|
|
36251
|
+
*/
|
|
36212
36252
|
CompetitionSearchSelect: xj,
|
|
36253
|
+
/**
|
|
36254
|
+
* Related entities control combining games and templates pickers.
|
|
36255
|
+
*/
|
|
36213
36256
|
Related: o2,
|
|
36257
|
+
/**
|
|
36258
|
+
* Wrapper for selecting/uploading images (main + optional cover/mobile) using ImageCard.
|
|
36259
|
+
*/
|
|
36214
36260
|
Images: mL,
|
|
36261
|
+
/**
|
|
36262
|
+
* A paired date range selector built from two DatePickerComponent instances.
|
|
36263
|
+
*/
|
|
36215
36264
|
Duration: _R,
|
|
36265
|
+
/**
|
|
36266
|
+
* Simple date input field using native HTML date input styled by Joy UI.
|
|
36267
|
+
*/
|
|
36216
36268
|
DatePickerComponent: Ao,
|
|
36269
|
+
/**
|
|
36270
|
+
* Creatable multi-select for tags/flags with duplicates prevention and inline add via Enter/Tab.
|
|
36271
|
+
*/
|
|
36217
36272
|
Flags: fL,
|
|
36218
36273
|
/**
|
|
36219
36274
|
* Centered loading spinner that fills its container.
|
|
36220
|
-
*
|
|
36221
|
-
* @property {number} my - Vertical margin (theme spacing units) applied to the container.
|
|
36222
36275
|
*/
|
|
36223
36276
|
Spinner: tl,
|
|
36277
|
+
/**
|
|
36278
|
+
* Tags input for winners — creatable multi-select with duplicate prevention.
|
|
36279
|
+
*/
|
|
36224
36280
|
Tags: xb,
|
|
36281
|
+
/**
|
|
36282
|
+
* Lightweight Snackbar wrapper to show brief messages in the top-right corner.
|
|
36283
|
+
*/
|
|
36225
36284
|
Toast: gt,
|
|
36285
|
+
/**
|
|
36286
|
+
* Displays advertising content input with Rich Text and Plain Text tabs.
|
|
36287
|
+
*/
|
|
36226
36288
|
AdContent: XE,
|
|
36289
|
+
/**
|
|
36290
|
+
* Compact match item with time and team logos.
|
|
36291
|
+
*/
|
|
36227
36292
|
Match: n2,
|
|
36293
|
+
/**
|
|
36294
|
+
* Winners management screen: loads winners by entity and provides actions such as setting description, winner position, note, and tags.
|
|
36295
|
+
*/
|
|
36228
36296
|
Winners: dB,
|
|
36297
|
+
/**
|
|
36298
|
+
* Multi-select competitions search with optional scope filter.
|
|
36299
|
+
*/
|
|
36229
36300
|
CompetitionsSearchSelect: Cj,
|
|
36301
|
+
/**
|
|
36302
|
+
* Multi-select teams search with optional competitions scope.
|
|
36303
|
+
*/
|
|
36230
36304
|
TeamsSearchSelect: Ij,
|
|
36305
|
+
/**
|
|
36306
|
+
* Select with avatar/icon and clear button, suitable for selecting an entity (competition, etc.).
|
|
36307
|
+
*/
|
|
36231
36308
|
CustomSelect: C2,
|
|
36309
|
+
/**
|
|
36310
|
+
* Scheduler list with create/update actions for entity status changes.
|
|
36311
|
+
*/
|
|
36232
36312
|
Schedule: p2,
|
|
36313
|
+
/**
|
|
36314
|
+
* Information card displayed when the user lacks permission. Offers a sign-out to retry.
|
|
36315
|
+
*/
|
|
36233
36316
|
NoPermissionCard: DR,
|
|
36317
|
+
/**
|
|
36318
|
+
* Flatpickr-based datetime input with min-date logic and Joy styling.
|
|
36319
|
+
*/
|
|
36234
36320
|
CustomFlatpickrCalendar: jc,
|
|
36321
|
+
/**
|
|
36322
|
+
* Search filter for football context entities (competitions, teams, players) with grouping.
|
|
36323
|
+
*/
|
|
36235
36324
|
ContextSelectFilter: hB,
|
|
36325
|
+
/**
|
|
36326
|
+
* Numeric input with thousand separator formatting.
|
|
36327
|
+
*
|
|
36328
|
+
* Note: Free-typing is allowed to avoid blocking edits; values are clamped/validated by consumer logic.
|
|
36329
|
+
*/
|
|
36236
36330
|
NumberInput: Gc,
|
|
36331
|
+
/**
|
|
36332
|
+
* Tabs to manage entity context: tags, content, and campaign metadata.
|
|
36333
|
+
*/
|
|
36237
36334
|
EntityContext: WB,
|
|
36335
|
+
/**
|
|
36336
|
+
* Image pickers for mini-games (main + optional mobile), with collapsible section.
|
|
36337
|
+
*/
|
|
36238
36338
|
MiniGamesImages: YB,
|
|
36339
|
+
/**
|
|
36340
|
+
* Select for content access requirement: FREE/LEAD/REGISTERED/PAID.
|
|
36341
|
+
*/
|
|
36239
36342
|
AuthRequirement: KB,
|
|
36343
|
+
/**
|
|
36344
|
+
* Draggable sortable list using dnd-kit. Renders items with optional type chips.
|
|
36345
|
+
*
|
|
36346
|
+
* This component provides a sortable list using the `dnd-kit` library for drag-and-drop functionality.
|
|
36347
|
+
* Each item in the list can be dragged and dropped to reorder the list. The component is designed to be
|
|
36348
|
+
* adaptable for use in various projects and integrates with Joy UI for styling.
|
|
36349
|
+
* dnd-kit documentation: https://docs.dndkit.com/
|
|
36350
|
+
* Original implementation: https://codesandbox.io/p/sandbox/dnd-kit-sortable-starter-template-22x1ix
|
|
36351
|
+
*/
|
|
36240
36352
|
SortableList: NF,
|
|
36353
|
+
/**
|
|
36354
|
+
* Small select for “items per page” pagination control.
|
|
36355
|
+
*/
|
|
36241
36356
|
ItemsPerPageFilter: FF,
|
|
36357
|
+
/**
|
|
36358
|
+
* Image picker card with upload, preview, crop, copy URL, and Sportal365 search integration.
|
|
36359
|
+
*/
|
|
36242
36360
|
ImageCard: Eo,
|
|
36361
|
+
/**
|
|
36362
|
+
* Manage related entities with typed relationships and entity-type aware search.
|
|
36363
|
+
*/
|
|
36243
36364
|
RelatedRelationship: ez,
|
|
36365
|
+
/**
|
|
36366
|
+
* Exports leads for a given entity to CSV via backend endpoint.
|
|
36367
|
+
*/
|
|
36244
36368
|
ExportUsersLeads: tz,
|
|
36369
|
+
/**
|
|
36370
|
+
* Button that signs out the current user from the given Firebase environment.
|
|
36371
|
+
*/
|
|
36245
36372
|
SignOutButton: Rv,
|
|
36373
|
+
/**
|
|
36374
|
+
* Sortable list with rich item cards; uses dnd-kit under the hood.
|
|
36375
|
+
* Enhanced sortable list using the `dnd-kit` library with improved UI/UX.
|
|
36376
|
+
* Features rich item cards with support for images, descriptions and types.
|
|
36377
|
+
* dnd-kit documentation: https://docs.dndkit.com/
|
|
36378
|
+
*/
|
|
36246
36379
|
BasicSortableList: rz,
|
|
36380
|
+
/**
|
|
36381
|
+
* Generates embed div code for a single widget with optional leads and campaign data attributes.
|
|
36382
|
+
*/
|
|
36247
36383
|
WidgetEmbedCode: iz,
|
|
36384
|
+
/**
|
|
36385
|
+
* Generates embed div code for a list widget with layout and URL configuration.
|
|
36386
|
+
*/
|
|
36248
36387
|
WidgetListEmbedCode: sz,
|
|
36388
|
+
/**
|
|
36389
|
+
* Multi-select profile search with toggleable search by name or id, with avatars.
|
|
36390
|
+
*/
|
|
36249
36391
|
AdvancedProfileSearchSelect: lz,
|
|
36392
|
+
/**
|
|
36393
|
+
* Display a large number in a compact abbreviated form, with a tooltip showing the full value.
|
|
36394
|
+
*/
|
|
36250
36395
|
FormatNumber: cz
|
|
36251
36396
|
}, Ay = jn(null), dz = ({ children: e }) => /* @__PURE__ */ u.jsx(Ay.Provider, { value: uz, children: e }), fz = () => {
|
|
36252
36397
|
const e = Vt(Ay);
|