fansunited-management-components 1.5.0-RC1 → 1.5.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/README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Fans United Management Components
|
|
2
|
+
|
|
3
|
+
**Fans United Management Components** is a library that provides a collection of React components and utilities designed for integration
|
|
4
|
+
with Fans United. This project is distributed as an npm package, offering a modular approach to incorporate reusable components and
|
|
5
|
+
utilities across your React applications.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
To install the package, run the following command:
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install fansunited-management-components
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Or with yarn:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
yarn add fansunited-management-components
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
To use the components and utilities provided by **Fans United Management Components**, import them into your React project as needed:
|
|
24
|
+
|
|
25
|
+
```javascript
|
|
26
|
+
import utils from 'fansunited-management-components';
|
|
27
|
+
import 'fansunited-management-components/style.css';
|
|
28
|
+
|
|
29
|
+
const MyComponent = () => {
|
|
30
|
+
const { https, sdk } = utils.useAPIContext();
|
|
31
|
+
const { Login, InformationInput, Branding } = utils.useComponentContext();
|
|
32
|
+
|
|
33
|
+
return (
|
|
34
|
+
<>
|
|
35
|
+
<Login />
|
|
36
|
+
<InformationInput />
|
|
37
|
+
<Branding />
|
|
38
|
+
</>
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const App = () => {
|
|
43
|
+
const configuration = {
|
|
44
|
+
apiKey: '',
|
|
45
|
+
clientId: '',
|
|
46
|
+
environment: '',
|
|
47
|
+
language: '',
|
|
48
|
+
errorHandlingMode: '',
|
|
49
|
+
sportal365Project: '',
|
|
50
|
+
sportal365Infrastructure: '',
|
|
51
|
+
};
|
|
52
|
+
const { AuthProvider, APIProvider, ComponentProvider } = utils;
|
|
53
|
+
|
|
54
|
+
return (
|
|
55
|
+
<AuthProvider environment={configuration.environment}>
|
|
56
|
+
<APIProvider config={config}>
|
|
57
|
+
<ComponentProvider>
|
|
58
|
+
<MyComponent />
|
|
59
|
+
</ComponentProvider>
|
|
60
|
+
</APIProvider>
|
|
61
|
+
</AuthProvider>
|
|
62
|
+
);
|
|
63
|
+
};
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Components
|
|
67
|
+
|
|
68
|
+
The package includes a variety of React components designed for easy integration. Each component is documented with examples to guide
|
|
69
|
+
implementation.
|
|
70
|
+
|
|
71
|
+
## Utilities
|
|
72
|
+
|
|
73
|
+
In addition to React components, this package includes several utility functions to assist with common tasks. These utilities are designed
|
|
74
|
+
to work seamlessly within the Fans United ecosystem.
|
|
75
|
+
|
|
76
|
+
## Configuration
|
|
77
|
+
|
|
78
|
+
To use **Fans United Management Components**, certain configurations are required. These configurations ensure that the components and
|
|
79
|
+
utilities function correctly within your application. Please refer to the internal documentation or contact the project maintainer for
|
|
80
|
+
configuration details.
|
package/index.es.js
CHANGED
|
@@ -10931,7 +10931,7 @@ const ss = (e) => {
|
|
|
10931
10931
|
projectId: "fans-united-clients",
|
|
10932
10932
|
messagingSenderId: "78627953958",
|
|
10933
10933
|
appId: "1:78627953958:web:2ee87d5b274e0e7685f5e7",
|
|
10934
|
-
measurementId: "G-
|
|
10934
|
+
measurementId: "G-DPV1TYL0JW"
|
|
10935
10935
|
};
|
|
10936
10936
|
Bn.initializeApp(r);
|
|
10937
10937
|
}
|