fansunited-management-components 1.29.0 → 1.30.0-RC2
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 +12630 -16859
- package/index.umd.js +187 -1192
- package/package.json +1 -1
- package/src/components/DragAndDrop/BasicSortableList/BasicSortableList.d.ts +26 -0
- package/src/components/DragAndDrop/BasicSortableList/DragHandle.d.ts +7 -0
- package/src/components/DragAndDrop/BasicSortableList/SortableItem.d.ts +22 -0
- package/src/models/games/standing/StandingGameRequestBody.d.ts +29 -0
- package/src/services/https/HttpsService.d.ts +4 -0
package/package.json
CHANGED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { default as React, Dispatch, SetStateAction } from 'react';
|
|
2
|
+
|
|
3
|
+
interface ISortableItem {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
image?: string;
|
|
7
|
+
type?: string;
|
|
8
|
+
group?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
12
|
+
type SortableListProps = {
|
|
13
|
+
items: ISortableItem[];
|
|
14
|
+
labels: {
|
|
15
|
+
noItemsToDisplay: string;
|
|
16
|
+
dragToReorder: string;
|
|
17
|
+
};
|
|
18
|
+
setEntities: Dispatch<SetStateAction<any[]>>;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Enhanced sortable list using the `dnd-kit` library with improved UI/UX.
|
|
22
|
+
* Features rich item cards with support for images, descriptions, types, and group tags.
|
|
23
|
+
* dnd-kit documentation: https://docs.dndkit.com/
|
|
24
|
+
*/
|
|
25
|
+
declare const BasicSortableList: React.FC<SortableListProps>;
|
|
26
|
+
export default BasicSortableList;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { UniqueIdentifier } from '@dnd-kit/core';
|
|
3
|
+
import { VariantProp } from '@mui/joy/styles/types';
|
|
4
|
+
|
|
5
|
+
interface ISortableItem {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
image?: string;
|
|
9
|
+
type?: string;
|
|
10
|
+
group?: string;
|
|
11
|
+
description?: string;
|
|
12
|
+
color?: string;
|
|
13
|
+
}
|
|
14
|
+
type SortableItemProps = {
|
|
15
|
+
id: UniqueIdentifier;
|
|
16
|
+
useDraggable?: boolean;
|
|
17
|
+
variant?: VariantProp;
|
|
18
|
+
item: ISortableItem;
|
|
19
|
+
tooltipContent: string;
|
|
20
|
+
};
|
|
21
|
+
declare const SortableItem: React.FC<SortableItemProps>;
|
|
22
|
+
export default SortableItem;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { StandingGameMetaParticipantsModel, ImagesModel } from 'fansunited-sdk-esm';
|
|
2
|
+
|
|
3
|
+
type EntityType = 'game' | 'template' | 'classic_quiz' | 'either_or' | 'match_quiz' | 'top_x' | 'bracket' | 'standing';
|
|
4
|
+
type EntityRelationshipType = 'translatedTo' | 'translatedFrom' | 'relatedTo' | 'blocks' | 'blockedBy' | 'nextInSeries' | 'previousInSeries' | 'bonusPointsGame';
|
|
5
|
+
interface IRelated {
|
|
6
|
+
entity_id: string;
|
|
7
|
+
entity_type: EntityType;
|
|
8
|
+
entity_relationship: EntityRelationshipType;
|
|
9
|
+
}
|
|
10
|
+
interface IMeta {
|
|
11
|
+
participants: StandingGameMetaParticipantsModel[];
|
|
12
|
+
}
|
|
13
|
+
export default class StandingGameRequestBody {
|
|
14
|
+
id: string;
|
|
15
|
+
title: string;
|
|
16
|
+
description: string;
|
|
17
|
+
type: string;
|
|
18
|
+
rules: string;
|
|
19
|
+
status: string;
|
|
20
|
+
images: ImagesModel | null;
|
|
21
|
+
points: number;
|
|
22
|
+
related: IRelated[];
|
|
23
|
+
custom_fields: Object | null;
|
|
24
|
+
predictions_cutoff: string;
|
|
25
|
+
meta: IMeta;
|
|
26
|
+
outcome: string[];
|
|
27
|
+
outcome_count: number | null;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -9,6 +9,7 @@ import { default as LanguageRequestBody } from '../../models/config/LanguageRequ
|
|
|
9
9
|
import { default as PollRequestBody } from '../../models/voting/PollRequestBody';
|
|
10
10
|
import { default as EitherOrRequestBody } from '../../models/minigames/eitherors/EitherOrRequestBody';
|
|
11
11
|
import { default as BracketGameRequestBody } from '../../models/games/bracket/BracketGameRequestBody';
|
|
12
|
+
import { default as StandingGameRequestBody } from '../../models/games/standing/StandingGameRequestBody';
|
|
12
13
|
|
|
13
14
|
export default class HttpsService extends Https {
|
|
14
15
|
private loyaltyBaseUrl;
|
|
@@ -60,4 +61,7 @@ export default class HttpsService extends Https {
|
|
|
60
61
|
exportLeadsPerEntity: (entityId: string) => Promise<Response>;
|
|
61
62
|
getLeadStatistics: (queryParams: Record<string, string> | null) => Promise<Response>;
|
|
62
63
|
exportLeads: (queryParams: Record<string, string> | null) => Promise<Response>;
|
|
64
|
+
createStandingGame: (requestBody: StandingGameRequestBody) => Promise<Response>;
|
|
65
|
+
updateStandingGame: (id: string, requestBody: StandingGameRequestBody) => Promise<Response>;
|
|
66
|
+
resolveStandingPredictions: (gameId: string) => Promise<Response>;
|
|
63
67
|
}
|