fansunited-management-components 1.50.13 → 1.50.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fansunited-management-components",
3
- "version": "1.50.13",
3
+ "version": "1.50.14",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.es.d.ts",
@@ -1,50 +1,3 @@
1
- import { default as Accordion } from '../components/Accordion/Accordion';
2
- import { default as AdContent } from '../components/AdContent/AdContent';
3
- import { default as BasicSelect } from '../components/Select/BasicSelect/BasicSelect';
4
- import { default as Branding } from '../components/Branding/Branding';
5
- import { default as HeaderButtons } from '../components/Buttons/HeaderButtons';
6
- import { default as CustomFlatpickrCalendar } from '../components/Calendars/CustomFlatpickrCalendar';
7
- import { default as DatePickerComponent } from '../components/Calendars/DatePicker';
8
- import { default as Duration } from '../components/Calendars/Duration';
9
- import { default as RangeCalendar } from '../components/Calendars/RangeCalendar';
10
- import { default as NoPermissionCard } from '../components/Cards/NoPermissionCard';
11
- import { default as Toast } from '../components/Common/Toast';
12
- import { default as DynamicFields } from '../components/DynamicFields/DynamicFields';
13
- import { default as Flags } from '../components/Flags/Flags';
14
- import { default as Images } from '../components/Images/Images';
15
- import { default as InformationInput } from '../components/Inputs/InformationInput/InformationInput';
16
- import { default as Login } from '../components/Login/Login';
17
- import { default as MarketSelection } from '../components/MarketSelection/MarketSelection';
18
- import { default as Match } from '../components/Match/Match';
19
- import { default as Related } from '../components/Related/Related';
20
- import { default as RichText } from '../components/RichText/RichText';
21
- import { default as Schedule } from '../components/Schedule/Schedule';
22
- import { default as CustomSelect } from '../components/Select/CustomSelect';
23
- import { default as CompetitionSearchSelect } from '../components/Select/SearchSelect/CompetitionSearchSelect';
24
- import { default as CompetitionsSearchSelect } from '../components/Select/SearchSelect/CompetitionsSearchSelect';
25
- import { default as ProfileSearchSelect } from '../components/Select/SearchSelect/ProfileSearchSelect';
26
- import { default as TeamsSearchSelect } from '../components/Select/SearchSelect/TeamsSearchSelect';
27
- import { default as Spinner } from '../components/Spinner/Spinner';
28
- import { default as BooleanSwitch } from '../components/Switch/BooleanSwitch';
29
- import { default as Tags } from '../components/Winners/Tags/Tags';
30
- import { default as Winners } from '../components/Winners/Winners';
31
- import { default as ContextSelectFilter } from '../components/Select/SearchSelect/ContextSelectFilter';
32
- import { default as NumberInput } from '../components/Inputs/NumberInput/NumberInput';
33
- import { default as EntityContext } from '../components/Context/EntityContext';
34
- import { default as MiniGamesImages } from '../components/Images/MiniGamesImages';
35
- import { default as AuthRequirement } from '../components/AuthRequirement/AuthRequirement';
36
- import { default as SortableList } from '../components/DragAndDrop/SortableList/SortableList';
37
- import { default as ItemsPerPageFilter } from '../components/ItemsPerPageFilter/ItemsPerPageFilter';
38
- import { default as ImageCard } from '../components/Images/ImageCard';
39
- import { default as RelatedRelationship } from '../components/Related/RelatedRelationship/RelatedRelationship';
40
- import { default as ExportUsersLeads } from '../components/Exports/ExportUsersLeads';
41
- import { default as SignOutButton } from '../components/Buttons/SignoutButtton';
42
- import { default as BasicSortableList } from '../components/DragAndDrop/BasicSortableList/BasicSortableList';
43
- import { default as WidgetEmbedCode } from '../components/WidgetEmbedCode/WidgetEmbedCode';
44
- import { default as WidgetListEmbedCode } from '../components/WidgetListEmbedCode/WidgetListEmbedCode';
45
- import { default as AdvancedProfileSearchSelect } from '../components/Select/SearchSelect/AdvancedProfileSearchSelect';
46
- import { default as FormatNumber } from '../components/Utils/FormatNumber';
47
-
48
1
  export declare const components: {
49
2
  readonly Login: import('react').FC<{
50
3
  userNotFound: string;
@@ -349,53 +302,5 @@ export declare const components: {
349
302
  tooltipPlacement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
350
303
  }>;
351
304
  };
352
- export interface ComponentsMap {
353
- Login: typeof Login;
354
- InformationInput: typeof InformationInput;
355
- RichText: typeof RichText;
356
- HeaderButtons: typeof HeaderButtons;
357
- MarketSelection: typeof MarketSelection;
358
- Accordion: typeof Accordion;
359
- DynamicFields: typeof DynamicFields;
360
- BasicSelect: typeof BasicSelect;
361
- BooleanSwitch: typeof BooleanSwitch;
362
- Branding: typeof Branding;
363
- ProfileSearchSelect: typeof ProfileSearchSelect;
364
- RangeCalendar: typeof RangeCalendar;
365
- CompetitionSearchSelect: typeof CompetitionSearchSelect;
366
- Related: typeof Related;
367
- Images: typeof Images;
368
- Duration: typeof Duration;
369
- DatePickerComponent: typeof DatePickerComponent;
370
- Flags: typeof Flags;
371
- Spinner: typeof Spinner;
372
- Tags: typeof Tags;
373
- Toast: typeof Toast;
374
- AdContent: typeof AdContent;
375
- Match: typeof Match;
376
- Winners: typeof Winners;
377
- CompetitionsSearchSelect: typeof CompetitionsSearchSelect;
378
- TeamsSearchSelect: typeof TeamsSearchSelect;
379
- CustomSelect: typeof CustomSelect;
380
- Schedule: typeof Schedule;
381
- NoPermissionCard: typeof NoPermissionCard;
382
- CustomFlatpickrCalendar: typeof CustomFlatpickrCalendar;
383
- ContextSelectFilter: typeof ContextSelectFilter;
384
- NumberInput: typeof NumberInput;
385
- EntityContext: typeof EntityContext;
386
- MiniGamesImages: typeof MiniGamesImages;
387
- AuthRequirement: typeof AuthRequirement;
388
- SortableList: typeof SortableList;
389
- ItemsPerPageFilter: typeof ItemsPerPageFilter;
390
- ImageCard: typeof ImageCard;
391
- RelatedRelationship: typeof RelatedRelationship;
392
- ExportUsersLeads: typeof ExportUsersLeads;
393
- SignOutButton: typeof SignOutButton;
394
- BasicSortableList: typeof BasicSortableList;
395
- WidgetEmbedCode: typeof WidgetEmbedCode;
396
- WidgetListEmbedCode: typeof WidgetListEmbedCode;
397
- AdvancedProfileSearchSelect: typeof AdvancedProfileSearchSelect;
398
- FormatNumber: typeof FormatNumber;
399
- }
400
- export declare const typedComponents: ComponentsMap;
305
+ export type ComponentsMap = typeof components;
401
306
  //# sourceMappingURL=components.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/constants/components.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,mCAAmC,CAAC;AAC1D,OAAO,SAAS,MAAM,mCAAmC,CAAC;AAC1D,OAAO,WAAW,MAAM,8CAA8C,CAAC;AACvE,OAAO,QAAQ,MAAM,iCAAiC,CAAC;AACvD,OAAO,aAAa,MAAM,qCAAqC,CAAC;AAChE,OAAO,uBAAuB,MAAM,iDAAiD,CAAC;AACtF,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,QAAQ,MAAM,kCAAkC,CAAC;AACxD,OAAO,aAAa,MAAM,uCAAuC,CAAC;AAClE,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,KAAK,MAAM,4BAA4B,CAAC;AAC/C,OAAO,aAAa,MAAM,2CAA2C,CAAC;AACtE,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAC9C,OAAO,MAAM,MAAM,6BAA6B,CAAC;AACjD,OAAO,gBAAgB,MAAM,wDAAwD,CAAC;AACtF,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAC9C,OAAO,eAAe,MAAM,+CAA+C,CAAC;AAC5E,OAAO,KAAK,MAAM,2BAA2B,CAAC;AAC9C,OAAO,OAAO,MAAM,+BAA+B,CAAC;AACpD,OAAO,QAAQ,MAAM,iCAAiC,CAAC;AACvD,OAAO,QAAQ,MAAM,iCAAiC,CAAC;AACvD,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAC7D,OAAO,uBAAuB,MAAM,2DAA2D,CAAC;AAChG,OAAO,wBAAwB,MAAM,4DAA4D,CAAC;AAClG,OAAO,mBAAmB,MAAM,uDAAuD,CAAC;AACxF,OAAO,iBAAiB,MAAM,qDAAqD,CAAC;AACpF,OAAO,OAAO,MAAM,+BAA+B,CAAC;AACpD,OAAO,aAAa,MAAM,oCAAoC,CAAC;AAC/D,OAAO,IAAI,M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EAAE,OAAO,YAAY,CAAC;IAClC,kBAAkB,EAAE,OAAO,kBAAkB,CAAC;IAC9C,SAAS,EAAE,OAAO,SAAS,CAAC;IAC5B,mBAAmB,EAAE,OAAO,mBAAmB,CAAC;IAChD,gBAAgB,EAAE,OAAO,gBAAgB,CAAC;IAC1C,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,iBAAiB,EAAE,OAAO,iBAAiB,CAAC;IAC5C,eAAe,EAAE,OAAO,eAAe,CAAC;IACxC,mBAAmB,EAAE,OAAO,mBAAmB,CAAC;IAChD,2BAA2B,EAAE,OAAO,2BAA2B,CAAC;IAChE,YAAY,EAAE,OAAO,YAAY,CAAC;CAClC;AAGD,eAAO,MAAM,eAAe,EAAE,aAA0B,CAAC"}
1
+ {"version":3,"file":"components.d.ts","sourceRoot":"","sources":["../../../src/constants/components.ts"],"names":[],"mappings":"AA+CA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Cb,CAAC;AAuDX,MAAM,MAAM,aAAa,GAAG,OAAO,UAAU,CAAC"}
@@ -1,11 +1,313 @@
1
1
  import { default as React, PropsWithChildren, ReactNode } from 'react';
2
- import { ComponentsMap } from '../constants/components';
3
2
 
4
3
  type ComponentProviderProps = {
5
4
  config?: any;
6
5
  children?: ReactNode;
7
6
  };
8
- declare const ComponentContext: React.Context<ComponentsMap | null>;
7
+ declare const ComponentContext: React.Context<{
8
+ readonly Login: React.FC<{
9
+ userNotFound: string;
10
+ environment: string;
11
+ }>;
12
+ readonly InformationInput: React.FC<{
13
+ label: string;
14
+ placeholder: string;
15
+ value?: string;
16
+ defaultValue: string;
17
+ required: boolean;
18
+ size: "sm" | "md" | "lg";
19
+ readOnly?: boolean;
20
+ endDecorator?: React.ReactNode;
21
+ onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
22
+ }>;
23
+ readonly RichText: React.FC<{
24
+ label: string;
25
+ placeholder: string;
26
+ value?: string;
27
+ defaultValue: string;
28
+ property: "description" | "rules" | "ad_content" | "mini_games_explanation";
29
+ description?: string;
30
+ onChange: (value: string) => void;
31
+ }>;
32
+ readonly HeaderButtons: React.FC<{
33
+ createLabel: string;
34
+ createFromTemplateLabel?: string;
35
+ signOutLabel: string;
36
+ environment: string;
37
+ onClickCreate: () => void;
38
+ onClickCreateFromTemplate?: () => void;
39
+ }>;
40
+ readonly MarketSelection: React.FC<{
41
+ labels: any;
42
+ values: string[];
43
+ valuesMap: Record<string, string>;
44
+ onChange: (values: string[]) => void;
45
+ }>;
46
+ readonly Accordion: React.FC<{
47
+ label: string;
48
+ disabled?: boolean;
49
+ } & {
50
+ children?: ReactNode | undefined;
51
+ }>;
52
+ readonly DynamicFields: React.FC<{
53
+ labels: any;
54
+ type: string;
55
+ defaultValue: Record<string, string> | null;
56
+ onChange: (value: Record<string, string>) => void;
57
+ }>;
58
+ readonly BasicSelect: React.FC<{
59
+ label: string;
60
+ defaultValue: string;
61
+ values: string[];
62
+ description: string;
63
+ onChange: (value: string) => void;
64
+ }>;
65
+ readonly BooleanSwitch: React.FC<{
66
+ label: string;
67
+ labelPosition?: "start" | "end";
68
+ defaultValue: boolean;
69
+ description: string;
70
+ descriptionColor: import('@mui/joy').ColorPaletteProp;
71
+ disabled: boolean;
72
+ sx?: {
73
+ switch: import('@mui/material').SxProps;
74
+ container: import('@mui/material').SxProps;
75
+ };
76
+ onChange: (checked: boolean) => void;
77
+ }>;
78
+ readonly Branding: React.FC<{
79
+ labels: any;
80
+ defaultValue: Record<string, Record<string, string>> | null;
81
+ onChange: (value: any) => void;
82
+ }>;
83
+ readonly ProfileSearchSelect: React.FC<{
84
+ labels: any;
85
+ ids: string[];
86
+ onChange: (ids: string[] | null) => void;
87
+ }>;
88
+ readonly RangeCalendar: React.FC<{
89
+ label: string;
90
+ defaultValue: import('../models/sportal365/Sportal365SearchImagesFilters').default | null;
91
+ required: boolean;
92
+ onChange: (date: import('../models/sportal365/Sportal365SearchImagesFilters').default) => void;
93
+ }>;
94
+ readonly CompetitionSearchSelect: React.FC<{
95
+ labels: any;
96
+ label: string;
97
+ ids: string[];
98
+ required: boolean;
99
+ onChange: (ids: string[]) => void;
100
+ }>;
101
+ readonly Related: React.FC<{
102
+ labels: any;
103
+ related: import('../models/related/RelatedEntity').default[];
104
+ onChange: (related: import('../models/related/RelatedEntity').default[]) => void;
105
+ }>;
106
+ readonly Images: React.FC<{
107
+ labels: any;
108
+ defaultValue: import('../models/images/Images').default | null;
109
+ onChange: (value: any) => void;
110
+ }>;
111
+ readonly Duration: React.FC<{
112
+ labels: any;
113
+ required: boolean;
114
+ defaultValue: string[];
115
+ onChangeFromDate: (date: string) => void;
116
+ onChangeToDate: (date: string) => void;
117
+ }>;
118
+ readonly DatePickerComponent: React.FC<{
119
+ label: string;
120
+ defaultValue: string;
121
+ required: boolean;
122
+ onChange: (date: string) => void;
123
+ }>;
124
+ readonly Flags: React.FC<{
125
+ labels: any;
126
+ flags: string[];
127
+ onChange: (flags: string[]) => void;
128
+ sx?: import('@mui/material').SxProps;
129
+ }>;
130
+ readonly Spinner: React.FC<{
131
+ my: number;
132
+ }>;
133
+ readonly Tags: React.FC<{
134
+ labels: any;
135
+ tags: string[];
136
+ onChange: (tags: string[]) => void;
137
+ }>;
138
+ readonly Toast: React.FC<{
139
+ showToast: boolean;
140
+ message: string;
141
+ color: import('@mui/joy').ColorPaletteProp;
142
+ hideToast: () => void;
143
+ }>;
144
+ readonly AdContent: React.FC<{
145
+ labels: any;
146
+ defaultValue: string;
147
+ onChange: (value: string) => void;
148
+ }>;
149
+ readonly Match: React.FC<{
150
+ match: import('fansunited-sdk-esm').MatchBasicModel;
151
+ timeFormat: string;
152
+ }>;
153
+ readonly Winners: React.FC<{
154
+ entityId: string;
155
+ entityType: string;
156
+ entityName: string;
157
+ labels: any;
158
+ onClickBack: () => void;
159
+ }>;
160
+ readonly CompetitionsSearchSelect: React.FC<{
161
+ labels: any;
162
+ ids: string[];
163
+ scope?: string[];
164
+ onChange: (ids: string[] | null) => void;
165
+ }>;
166
+ readonly TeamsSearchSelect: React.FC<{
167
+ labels: any;
168
+ ids: string[];
169
+ scope: string[] | undefined;
170
+ onChange: (ids: string[] | null) => void;
171
+ }>;
172
+ readonly CustomSelect: React.FC<{
173
+ label: string;
174
+ defaultValue: string;
175
+ options: any[];
176
+ required: boolean;
177
+ onChange: (value: string) => void;
178
+ }>;
179
+ readonly Schedule: React.FC<{
180
+ labels: any;
181
+ entityId: string;
182
+ entityType: string;
183
+ readOnly?: boolean;
184
+ }>;
185
+ readonly NoPermissionCard: React.FC<{
186
+ labels: any;
187
+ environment: string;
188
+ setNoPermission: React.Dispatch<React.SetStateAction<boolean | null>>;
189
+ }>;
190
+ readonly CustomFlatpickrCalendar: React.FC<{
191
+ defaultDate: string;
192
+ minDate?: Date | undefined;
193
+ maxDate?: Date | undefined;
194
+ dateFormat?: string;
195
+ onChange: (date: string) => void;
196
+ }>;
197
+ readonly ContextSelectFilter: React.FC<{
198
+ labels: any;
199
+ options: import('../models/select/GroupSelectOption').default[];
200
+ setOptions: React.Dispatch<React.SetStateAction<import('react-select').MultiValue<import('../models/select/GroupSelectOption').default>>>;
201
+ setFilters: React.Dispatch<React.SetStateAction<any>>;
202
+ handleResetData: () => void;
203
+ }>;
204
+ readonly NumberInput: React.FC<{
205
+ label: string;
206
+ description?: string;
207
+ defaultValue: number;
208
+ onChange: (value: number) => void;
209
+ isAllowed?: (values: import('react-number-format').NumberFormatValues) => boolean;
210
+ sx?: import('@mui/material').SxProps;
211
+ size?: "sm" | "md" | "lg";
212
+ }>;
213
+ readonly EntityContext: React.FC<{
214
+ labels: any;
215
+ context: import('fansunited-sdk-esm').ContextModel;
216
+ onChange: (context: import('fansunited-sdk-esm').ContextModel) => void;
217
+ }>;
218
+ readonly MiniGamesImages: React.FC<{
219
+ labels: any;
220
+ defaultValue: import('../models/images/Images').default | null;
221
+ onChange: (value: any) => void;
222
+ }>;
223
+ readonly AuthRequirement: React.FC<{
224
+ defaultValue: string;
225
+ isClearable?: boolean;
226
+ labels: any;
227
+ onChange: (authRequirement: string | null) => void;
228
+ }>;
229
+ readonly SortableList: React.FC<{
230
+ entities: any[];
231
+ labels: any;
232
+ setEntities: React.Dispatch<React.SetStateAction<any[]>>;
233
+ removeItem: (id: string) => void;
234
+ disabled?: boolean;
235
+ }>;
236
+ readonly ItemsPerPageFilter: React.FC<{
237
+ labels: any;
238
+ value: number;
239
+ options: number[];
240
+ size?: "sm" | "md" | "lg";
241
+ disabled?: boolean;
242
+ sx?: import('@mui/material').SxProps;
243
+ onChange: (_: any, value: number | null) => void;
244
+ }>;
245
+ readonly ImageCard: React.FC<{
246
+ labels: any;
247
+ title: string;
248
+ image: string;
249
+ onChangeImages: (url: string) => void;
250
+ clearImage: () => void;
251
+ }>;
252
+ readonly RelatedRelationship: React.FC<{
253
+ defaultValue: import('../models/related/RelatedEntityRelationship').default[];
254
+ onChange: (entities: import('../models/related/RelatedEntityRelationship').default[]) => void;
255
+ labels: {
256
+ type: string;
257
+ delete: string;
258
+ relationship: string;
259
+ entity: string;
260
+ add: string;
261
+ relatedEntitiesErrorMessage: string;
262
+ };
263
+ }>;
264
+ readonly ExportUsersLeads: React.FC<{
265
+ entityId: string;
266
+ entityType: string;
267
+ entityName: string;
268
+ labels: {
269
+ exportUsersLeads: string;
270
+ category: string;
271
+ action: string;
272
+ exportAllUsersLeads: string;
273
+ exportAllUsersLeadsDescription: string;
274
+ usersLeadsExportMessage: string;
275
+ usersLeadsExportErrorMessage: string;
276
+ };
277
+ }>;
278
+ readonly SignOutButton: React.FC<{
279
+ signOutLabel: string;
280
+ environment: string;
281
+ }>;
282
+ readonly BasicSortableList: React.FC<{
283
+ items: import('../components/DragAndDrop/BasicSortableList/BasicSortableList').ISortableItem[];
284
+ labels: {
285
+ noItemsToDisplay: string;
286
+ dragToReorder: string;
287
+ };
288
+ setItems: React.Dispatch<React.SetStateAction<any[]>>;
289
+ }>;
290
+ readonly WidgetEmbedCode: React.FC<{
291
+ entityType: "classic-quiz" | "either-or" | "poll";
292
+ entityId: string;
293
+ authRequirement: string | null;
294
+ labels: any;
295
+ }>;
296
+ readonly WidgetListEmbedCode: React.FC<{
297
+ entityId: string;
298
+ labels: any;
299
+ }>;
300
+ readonly AdvancedProfileSearchSelect: React.FC<{
301
+ labels: any;
302
+ ids: string[];
303
+ onChange: (ids: string[] | null) => void;
304
+ }>;
305
+ readonly FormatNumber: React.FC<{
306
+ value: number;
307
+ sx?: import('@mui/material').SxProps;
308
+ tooltipPlacement?: "bottom-end" | "bottom-start" | "bottom" | "left-end" | "left-start" | "left" | "right-end" | "right-start" | "right" | "top-end" | "top-start" | "top";
309
+ }>;
310
+ } | null>;
9
311
  /**
10
312
  * Provider that exposes the components registry to descendants with preserved types.
11
313
  *
@@ -1 +1 @@
1
- {"version":3,"file":"ComponentContext.d.ts","sourceRoot":"","sources":["../../../src/context/ComponentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3E,OAAO,EAAc,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAEpE,KAAK,sBAAsB,GAAG;IAC7B,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,gBAAgB,qCAA4C,CAAC;AAEnE;;;;;GAKG;AACH,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,GAAG,iBAAiB,CAI3E,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"ComponentContext.d.ts","sourceRoot":"","sources":["../../../src/context/ComponentContext.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAG3E,KAAK,sBAAsB,GAAG;IAC7B,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,QAAQ,CAAC,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,QAAA,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAgD,CAAC;AAEvE;;;;;GAKG;AACH,QAAA,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,GAAG,iBAAiB,CAE3E,CAAC;AAEF,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,CAAC"}
@@ -12,12 +12,5 @@ import { ComponentsMap } from '../constants/components';
12
12
  * const { Spinner, Login } = useComponentContext();
13
13
  * ```
14
14
  */
15
- export declare const useComponentContext: () => {
16
- /**
17
- * Centered loading spinner that fills its container.
18
- * @param props - Component props
19
- * @param props.my - Vertical margin (theme spacing units) applied to the container
20
- */
21
- Spinner: ComponentsMap["Spinner"];
22
- };
15
+ export declare const useComponentContext: () => ComponentsMap;
23
16
  //# sourceMappingURL=useComponentContext.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useComponentContext.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComponentContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,QAQb;IACjB;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAC,SAAS,CAAC,CAAC;CAEnC,CAAC"}
1
+ {"version":3,"file":"useComponentContext.d.ts","sourceRoot":"","sources":["../../../src/hooks/useComponentContext.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,mBAAmB,QAAO,aAQtC,CAAC"}
package/src/index.d.ts CHANGED
@@ -6,6 +6,7 @@ export { useComponentContext } from './hooks/useComponentContext';
6
6
  export { useIsMobile } from './hooks/useIsMobile';
7
7
  export { components } from './constants/components';
8
8
  export type { ComponentsMap } from './constants/components';
9
+ export { default as Spinner } from './components/Spinner/Spinner';
9
10
  declare const _default: {
10
11
  APIProvider: import('react').FC<{
11
12
  config: any;
@@ -24,9 +25,7 @@ declare const _default: {
24
25
  } & {
25
26
  children?: import('react').ReactNode | undefined;
26
27
  }>;
27
- useComponentContext: () => {
28
- Spinner: import('./constants/components').ComponentsMap["Spinner"];
29
- };
28
+ useComponentContext: () => import('./constants/components').ComponentsMap;
30
29
  useAPIContext: () => {
31
30
  sdk: import('fansunited-sdk-esm').FansUnitedSDKModel;
32
31
  https: import('./services/https/HttpsService').default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGjF,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAG5D,wBAQE"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAiBA,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGjF,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAGlD,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAG5D,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,8BAA8B,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGlE,wBAQE"}