minerva-plexus-csd 1.0.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 +26 -0
- package/dist/grafico.svg +107 -0
- package/dist/index.d.ts +334 -0
- package/dist/minerva-plexus-csd.es.js +38564 -0
- package/dist/minerva-plexus-csd.umd.js +1681 -0
- package/dist/minervalogin.png +0 -0
- package/dist/style.css +5 -0
- package/dist/vite.svg +1 -0
- package/package.json +109 -0
package/README.md
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## Requisitos Minerva
|
|
2
|
+
|
|
3
|
+
- Node.js (v14 o superior)
|
|
4
|
+
- npm o Yarn
|
|
5
|
+
|
|
6
|
+
## Instalación
|
|
7
|
+
|
|
8
|
+
Para instalar `minerva-plexus-csd`, puedes usar npm o Yarn.
|
|
9
|
+
|
|
10
|
+
**NOTA**: seguir estos pasos al pie de la letra es súmamente importante
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
npm install minerva-plexus-csd
|
|
14
|
+
|
|
15
|
+
//o bien
|
|
16
|
+
|
|
17
|
+
yarn add minerva-plexus-csd
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### build mode
|
|
22
|
+
```
|
|
23
|
+
docker build -t minerva-plexus-csd --build-arg BUILD_MODE=development . //o staging dependiendo del entorno
|
|
24
|
+
docker run -p 8611:80 minerva-plexus-csd
|
|
25
|
+
docker push 211125588415.dkr.ecr.us-west-2.amazonaws.com/develop/minerva-plexus-csd:latest
|
|
26
|
+
```
|
package/dist/grafico.svg
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
<svg fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path
|
|
3
|
+
d="M0 646.263C47.9983 637.151 96.0017 628.04 144 571.517C191.998 514.98 240.002 411.045 288 347.279C335.998 283.499 384.002 259.916 432 347.279C479.998 434.641 528.002 632.964 576 608.89C623.998 584.802 672.002 338.317 720 309.906C767.998 281.48 816.002 471.114 864 571.517C911.998 671.905 960.002 683.063 1008 571.517C1056 459.971 1104 225.721 1152 147.947C1200 70.1731 1248 148.861 1296 247.613C1344 346.365 1392 465.167 1440 583.97"
|
|
4
|
+
stroke="#D76C71">
|
|
5
|
+
<animate
|
|
6
|
+
attributeName="d"
|
|
7
|
+
dur="13s"
|
|
8
|
+
repeatCount="indefinite"
|
|
9
|
+
values="
|
|
10
|
+
M0 646.263C47.9983 637.151 96.0017 628.04 144 571.517C191.998 514.98 240.002 411.045 288 347.279C335.998 283.499 384.002 259.916 432 347.279C479.998 434.641 528.002 632.964 576 608.89C623.998 584.802 672.002 338.317 720 309.906C767.998 281.48 816.002 471.114 864 571.517C911.998 671.905 960.002 683.063 1008 571.517C1056 459.971 1104 225.721 1152 147.947C1200 70.1731 1248 148.861 1296 247.613C1344 346.365 1392 465.167 1440 583.97;
|
|
11
|
+
M0 646.263C47.9983 646.263 96.0017 646.263 144 646.263C191.998 646.263 240.002 646.263 288 646.263C335.998 646.263 384.002 646.263 432 646.263C479.998 646.263 528.002 646.263 576 646.263C623.998 646.263 672.002 646.263 720 646.263C767.998 646.263 816.002 646.263 864 646.263C911.998 646.263 960.002 646.263 1008 646.263C1056 646.263 1104 646.263 1152 646.263C1200 646.263 1248 646.263 1296 646.263C1344 646.263 1392 646.263 1440 646.263;
|
|
12
|
+
M0 646.263C47.9983 637.151 96.0017 628.04 144 571.517C191.998 514.98 240.002 411.045 288 347.279C335.998 283.499 384.002 259.916 432 347.279C479.998 434.641 528.002 632.964 576 608.89C623.998 584.802 672.002 338.317 720 309.906C767.998 281.48 816.002 471.114 864 571.517C911.998 671.905 960.002 683.063 1008 571.517C1056 459.971 1104 225.721 1152 147.947C1200 70.1731 1248 148.861 1296 247.613C1344 346.365 1392 465.167 1440 583.97"
|
|
13
|
+
/>
|
|
14
|
+
</path>
|
|
15
|
+
<path
|
|
16
|
+
d="M0 596.422C47.9983 610.867 96.0017 625.311 144 484.303C191.998 343.295 240.002 46.8346 288 35.8273C335.998 24.8337 384.002 299.293 432 422.024C479.998 544.741 528.002 515.729 576 571.516C623.998 627.289 672.002 767.86 720 671.168C767.998 574.476 816.002 240.533 864 247.612C911.998 254.691 960.002 602.819 1008 646.262C1056 689.691 1104 428.448 1152 372.184C1200 315.934 1248 464.675 1296 534.143C1344 603.597 1392 593.79 1440 583.969"
|
|
17
|
+
stroke="#597886">
|
|
18
|
+
<animate
|
|
19
|
+
attributeName="d"
|
|
20
|
+
dur="11s"
|
|
21
|
+
repeatCount="indefinite"
|
|
22
|
+
values="
|
|
23
|
+
M0 596.422C47.9983 610.867 96.0017 625.311 144 484.303C191.998 343.295 240.002 46.8346 288 35.8273C335.998 24.8337 384.002 299.293 432 422.024C479.998 544.741 528.002 515.729 576 571.516C623.998 627.289 672.002 767.86 720 671.168C767.998 574.476 816.002 240.533 864 247.612C911.998 254.691 960.002 602.819 1008 646.262C1056 689.691 1104 428.448 1152 372.184C1200 315.934 1248 464.675 1296 534.143C1344 603.597 1392 593.79 1440 583.969;
|
|
24
|
+
M0 596.422C47.9983 596.422 96.0017 596.422 144 596.422C191.998 596.422 240.002 596.422 288 596.422C335.998 596.422 384.002 596.422 432 596.422C479.998 596.422 528.002 596.422 576 596.422C623.998 596.422 672.002 596.422 720 596.422C767.998 596.422 816.002 596.422 864 596.422C911.998 596.422 960.002 596.422 1008 596.422C1056 596.422 1104 596.422 1152 596.422C1200 596.422 1248 596.422 1296 596.422C1344 596.422 1392 596.422 1440 596.422;
|
|
25
|
+
M0 596.422C47.9983 610.867 96.0017 625.311 144 484.303C191.998 343.295 240.002 46.8346 288 35.8273C335.998 24.8337 384.002 299.293 432 422.024C479.998 544.741 528.002 515.729 576 571.516C623.998 627.289 672.002 767.86 720 671.168C767.998 574.476 816.002 240.533 864 247.612C911.998 254.691 960.002 602.819 1008 646.262C1056 689.691 1104 428.448 1152 372.184C1200 315.934 1248 464.675 1296 534.143C1344 603.597 1392 593.79 1440 583.969"
|
|
26
|
+
/>
|
|
27
|
+
</path>
|
|
28
|
+
|
|
29
|
+
<path
|
|
30
|
+
d="M0 534.143C47.9983 253.518 96.0017 -27.093 144 60.7472C191.998 148.587 240.002 604.892 288 658.715C335.998 712.537 384.002 363.864 432 210.239C479.998 56.6143 528.002 98.0247 576 172.866C623.998 247.708 672.002 355.966 720 484.303C767.998 612.653 816.002 761.068 864 683.635C911.998 606.188 960.002 302.88 1008 260.065C1056 217.25 1104 434.927 1152 496.77C1200 558.599 1248 464.607 1296 459.397C1344 454.186 1392 537.757 1440 621.342"
|
|
31
|
+
stroke="#D76C71">
|
|
32
|
+
<animate
|
|
33
|
+
attributeName="d"
|
|
34
|
+
dur="15s"
|
|
35
|
+
repeatCount="indefinite"
|
|
36
|
+
values="
|
|
37
|
+
M0 534.143C47.9983 253.518 96.0017 -27.093 144 60.7472C191.998 148.587 240.002 604.892 288 658.715C335.998 712.537 384.002 363.864 432 210.239C479.998 56.6143 528.002 98.0247 576 172.866C623.998 247.708 672.002 355.966 720 484.303C767.998 612.653 816.002 761.068 864 683.635C911.998 606.188 960.002 302.88 1008 260.065C1056 217.25 1104 434.927 1152 496.77C1200 558.599 1248 464.607 1296 459.397C1344 454.186 1392 537.757 1440 621.342;
|
|
38
|
+
M0 534.143C47.9983 534.143 96.0017 534.143 144 534.143C191.998 534.143 240.002 534.143 288 534.143C335.998 534.143 384.002 534.143 432 534.143C479.998 534.143 528.002 534.143 576 534.143C623.998 534.143 672.002 534.143 720 534.143C767.998 534.143 816.002 534.143 864 534.143C911.998 534.143 960.002 534.143 1008 534.143C1056 534.143 1104 534.143 1152 534.143C1200 534.143 1248 534.143 1296 534.143C1344 534.143 1392 534.143 1440 534.143;
|
|
39
|
+
M0 534.143C47.9983 253.518 96.0017 -27.093 144 60.7472C191.998 148.587 240.002 604.892 288 658.715C335.998 712.537 384.002 363.864 432 210.239C479.998 56.6143 528.002 98.0247 576 172.866C623.998 247.708 672.002 355.966 720 484.303C767.998 612.653 816.002 761.068 864 683.635C911.998 606.188 960.002 302.88 1008 260.065C1056 217.25 1104 434.927 1152 496.77C1200 558.599 1248 464.607 1296 459.397C1344 454.186 1392 537.757 1440 621.342"
|
|
40
|
+
/>
|
|
41
|
+
</path>
|
|
42
|
+
<path
|
|
43
|
+
d="M0 446.93C47.9983 313.738 96.0017 180.546 144 123.04C191.998 65.5349 240.002 83.7167 288 135.493C335.998 187.27 384.002 272.628 432 284.985C479.998 297.343 528.002 236.714 576 309.905C623.998 383.083 672.002 590.066 720 646.262C767.998 702.444 816.002 607.839 864 509.223C911.998 410.608 960.002 307.996 1008 272.532C1056 237.055 1104 268.727 1152 372.184C1200 475.656 1248 650.9 1296 683.635C1344 716.357 1392 606.557 1440 496.77"
|
|
44
|
+
stroke="#003E57">
|
|
45
|
+
<animate
|
|
46
|
+
attributeName="d"
|
|
47
|
+
dur="12s"
|
|
48
|
+
repeatCount="indefinite"
|
|
49
|
+
values="
|
|
50
|
+
M0 446.93C47.9983 313.738 96.0017 180.546 144 123.04C191.998 65.5349 240.002 83.7167 288 135.493C335.998 187.27 384.002 272.628 432 284.985C479.998 297.343 528.002 236.714 576 309.905C623.998 383.083 672.002 590.066 720 646.262C767.998 702.444 816.002 607.839 864 509.223C911.998 410.608 960.002 307.996 1008 272.532C1056 237.055 1104 268.727 1152 372.184C1200 475.656 1248 650.9 1296 683.635C1344 716.357 1392 606.557 1440 496.77;
|
|
51
|
+
M0 446.93C47.9983 446.93 96.0017 446.93 144 446.93C191.998 446.93 240.002 446.93 288 446.93C335.998 446.93 384.002 446.93 432 446.93C479.998 446.93 528.002 446.93 576 446.93C623.998 446.93 672.002 446.93 720 446.93C767.998 446.93 816.002 446.93 864 446.93C911.998 446.93 960.002 446.93 1008 446.93C1056 446.93 1104 446.93 1152 446.93C1200 446.93 1248 446.93 1296 446.93C1344 446.93 1392 446.93 1440 446.93;
|
|
52
|
+
M0 446.93C47.9983 313.738 96.0017 180.546 144 123.04C191.998 65.5349 240.002 83.7167 288 135.493C335.998 187.27 384.002 272.628 432 284.985C479.998 297.343 528.002 236.714 576 309.905C623.998 383.083 672.002 590.066 720 646.262C767.998 702.444 816.002 607.839 864 509.223C911.998 410.608 960.002 307.996 1008 272.532C1056 237.055 1104 268.727 1152 372.184C1200 475.656 1248 650.9 1296 683.635C1344 716.357 1392 606.557 1440 496.77"
|
|
53
|
+
/>
|
|
54
|
+
</path>
|
|
55
|
+
<path
|
|
56
|
+
d="M0 334.811C47.9983 481.875 96.0017 628.939 144 534.143C191.998 439.333 240.002 102.662 288 98.1202C335.998 93.5781 384.002 421.165 432 496.77C479.998 572.361 528.002 395.958 576 334.811C623.998 273.664 672.002 327.773 720 359.731C767.998 391.689 816.002 401.51 864 359.731C911.998 317.952 960.002 224.602 1008 284.985C1056 345.368 1104 559.499 1152 521.676C1200 483.867 1248 194.09 1296 110.573C1344 27.0569 1392 149.788 1440 272.532"
|
|
57
|
+
stroke="#003E57">
|
|
58
|
+
<animate
|
|
59
|
+
attributeName="d"
|
|
60
|
+
dur="11s"
|
|
61
|
+
repeatCount="indefinite"
|
|
62
|
+
values="
|
|
63
|
+
M0 334.811C47.9983 481.875 96.0017 628.939 144 534.143C191.998 439.333 240.002 102.662 288 98.1202C335.998 93.5781 384.002 421.165 432 496.77C479.998 572.361 528.002 395.958 576 334.811C623.998 273.664 672.002 327.773 720 359.731C767.998 391.689 816.002 401.51 864 359.731C911.998 317.952 960.002 224.602 1008 284.985C1056 345.368 1104 559.499 1152 521.676C1200 483.867 1248 194.09 1296 110.573C1344 27.0569 1392 149.788 1440 272.532;
|
|
64
|
+
M0 334.811C47.9983 334.811 96.0017 334.811 144 334.811C191.998 334.811 240.002 334.811 288 334.811C335.998 334.811 384.002 334.811 432 334.811C479.998 334.811 528.002 334.811 576 334.811C623.998 334.811 672.002 334.811 720 334.811C767.998 334.811 816.002 334.811 864 334.811C911.998 334.811 960.002 334.811 1008 334.811C1056 334.811 1104 334.811 1152 334.811C1200 334.811 1248 334.811 1296 334.811C1344 334.811 1392 334.811 1440 334.811;
|
|
65
|
+
M0 334.811C47.9983 481.875 96.0017 628.939 144 534.143C191.998 439.333 240.002 102.662 288 98.1202C335.998 93.5781 384.002 421.165 432 496.77C479.998 572.361 528.002 395.958 576 334.811C623.998 273.664 672.002 327.773 720 359.731C767.998 391.689 816.002 401.51 864 359.731C911.998 317.952 960.002 224.602 1008 284.985C1056 345.368 1104 559.499 1152 521.676C1200 483.867 1248 194.09 1296 110.573C1344 27.0569 1392 149.788 1440 272.532"
|
|
66
|
+
/>
|
|
67
|
+
</path>
|
|
68
|
+
<path
|
|
69
|
+
d="M0 260.066C47.9983 337.049 96.0017 414.031 144 496.77C191.998 579.496 240.002 667.977 288 596.423C335.998 524.868 384.002 293.279 432 297.439C479.998 301.612 528.002 541.536 576 571.516C623.998 601.497 672.002 421.533 720 422.024C767.998 422.502 816.002 603.447 864 583.969C911.998 564.492 960.002 344.619 1008 372.185C1056 399.751 1104 674.756 1152 696.088C1200 717.421 1248 485.067 1296 372.185C1344 259.315 1392 265.917 1440 272.532"
|
|
70
|
+
stroke="#003E57">
|
|
71
|
+
<animate
|
|
72
|
+
attributeName="d"
|
|
73
|
+
dur="10s"
|
|
74
|
+
repeatCount="indefinite"
|
|
75
|
+
values="
|
|
76
|
+
M0 260.066C47.9983 337.049 96.0017 414.031 144 496.77C191.998 579.496 240.002 667.977 288 596.423C335.998 524.868 384.002 293.279 432 297.439C479.998 301.612 528.002 541.536 576 571.516C623.998 601.497 672.002 421.533 720 422.024C767.998 422.502 816.002 603.447 864 583.969C911.998 564.492 960.002 344.619 1008 372.185C1056 399.751 1104 674.756 1152 696.088C1200 717.421 1248 485.067 1296 372.185C1344 259.315 1392 265.917 1440 272.532;
|
|
77
|
+
M0 260.066C47.9983 260.066 96.0017 260.066 144 260.066C191.998 260.066 240.002 260.066 288 260.066C335.998 260.066 384.002 260.066 432 260.066C479.998 260.066 528.002 260.066 576 260.066C623.998 260.066 672.002 260.066 720 260.066C767.998 260.066 816.002 260.066 864 260.066C911.998 260.066 960.002 260.066 1008 260.066C1056 260.066 1104 260.066 1152 260.066C1200 260.066 1248 260.066 1296 260.066C1344 260.066 1392 260.066 1440 260.066;
|
|
78
|
+
M0 260.066C47.9983 337.049 96.0017 414.031 144 496.77C191.998 579.496 240.002 667.977 288 596.423C335.998 524.868 384.002 293.279 432 297.439C479.998 301.612 528.002 541.536 576 571.516C623.998 601.497 672.002 421.533 720 422.024C767.998 422.502 816.002 603.447 864 583.969C911.998 564.492 960.002 344.619 1008 372.185C1056 399.751 1104 674.756 1152 696.088C1200 717.421 1248 485.067 1296 372.185C1344 259.315 1392 265.917 1440 272.532"
|
|
79
|
+
/>
|
|
80
|
+
</path>
|
|
81
|
+
<path
|
|
82
|
+
d="M0 210.239C47.9983 83.6213 96.0017 -42.9967 144 60.7474C191.998 164.492 240.002 498.598 288 583.969C335.998 669.341 384.002 506.004 432 409.557C479.998 313.124 528.002 283.608 576 359.731C623.998 435.855 672.002 617.646 720 621.342C767.998 625.039 816.002 450.64 864 272.532C911.998 94.4104 960.002 -87.4215 1008 48.2943C1056 184.01 1104 637.273 1152 658.715C1200 680.157 1248 269.75 1296 110.573C1344 -48.6027 1392 43.4522 1440 135.493"
|
|
83
|
+
stroke="#003E57">
|
|
84
|
+
<animate
|
|
85
|
+
attributeName="d"
|
|
86
|
+
dur="11s"
|
|
87
|
+
repeatCount="indefinite"
|
|
88
|
+
values="
|
|
89
|
+
M0 210.239C47.9983 83.6213 96.0017 -42.9967 144 60.7474C191.998 164.492 240.002 498.598 288 583.969C335.998 669.341 384.002 506.004 432 409.557C479.998 313.124 528.002 283.608 576 359.731C623.998 435.855 672.002 617.646 720 621.342C767.998 625.039 816.002 450.64 864 272.532C911.998 94.4104 960.002 -87.4215 1008 48.2943C1056 184.01 1104 637.273 1152 658.715C1200 680.157 1248 269.75 1296 110.573C1344 -48.6027 1392 43.4522 1440 135.493;
|
|
90
|
+
M0 210.239C47.9983 210.239 96.0017 210.239 144 210.239C191.998 210.239 240.002 210.239 288 210.239C335.998 210.239 384.002 210.239 432 210.239C479.998 210.239 528.002 210.239 576 210.239C623.998 210.239 672.002 210.239 720 210.239C767.998 210.239 816.002 210.239 864 210.239C911.998 210.239 960.002 210.239 1008 210.239C1056 210.239 1104 210.239 1152 210.239C1200 210.239 1248 210.239 1296 210.239C1344 210.239 1392 210.239 1440 210.239;
|
|
91
|
+
M0 210.239C47.9983 83.6213 96.0017 -42.9967 144 60.7474C191.998 164.492 240.002 498.598 288 583.969C335.998 669.341 384.002 506.004 432 409.557C479.998 313.124 528.002 283.608 576 359.731C623.998 435.855 672.002 617.646 720 621.342C767.998 625.039 816.002 450.64 864 272.532C911.998 94.4104 960.002 -87.4215 1008 48.2943C1056 184.01 1104 637.273 1152 658.715C1200 680.157 1248 269.75 1296 110.573C1344 -48.6027 1392 43.4522 1440 135.493"
|
|
92
|
+
/>
|
|
93
|
+
</path>
|
|
94
|
+
<path
|
|
95
|
+
d="M0 123.04C47.9983 179.277 96.0017 235.528 144 284.985C191.998 334.443 240.002 377.108 288 459.397C335.998 541.686 384.002 663.585 432 683.635C479.998 703.672 528.002 621.847 576 608.889C623.998 595.931 672.002 651.841 720 608.889C767.998 565.924 816.002 424.097 864 359.731C911.998 295.365 960.002 308.446 1008 297.438C1056 286.445 1104 251.363 1152 334.811C1200 418.273 1248 620.278 1296 658.715C1344 697.152 1392 572.048 1440 446.93"
|
|
96
|
+
stroke="#597886">
|
|
97
|
+
<animate
|
|
98
|
+
attributeName="d"
|
|
99
|
+
dur="12s"
|
|
100
|
+
repeatCount="indefinite"
|
|
101
|
+
values="
|
|
102
|
+
M0 123.04C47.9983 179.277 96.0017 235.528 144 284.985C191.998 334.443 240.002 377.108 288 459.397C335.998 541.686 384.002 663.585 432 683.635C479.998 703.672 528.002 621.847 576 608.889C623.998 595.931 672.002 651.841 720 608.889C767.998 565.924 816.002 424.097 864 359.731C911.998 295.365 960.002 308.446 1008 297.438C1056 286.445 1104 251.363 1152 334.811C1200 418.273 1248 620.278 1296 658.715C1344 697.152 1392 572.048 1440 446.93;
|
|
103
|
+
M0 123.04C47.9983 123.04 96.0017 123.04 144 123.04C191.998 123.04 240.002 123.04 288 123.04C335.998 123.04 384.002 123.04 432 123.04C479.998 123.04 528.002 123.04 576 123.04C623.998 123.04 672.002 123.04 720 123.04C767.998 123.04 816.002 123.04 864 123.04C911.998 123.04 960.002 123.04 1008 123.04C1056 123.04 1104 123.04 1152 123.04C1200 123.04 1248 123.04 1296 123.04C1344 123.04 1392 123.04 1440 123.04;
|
|
104
|
+
M0 123.04C47.9983 179.277 96.0017 235.528 144 284.985C191.998 334.443 240.002 377.108 288 459.397C335.998 541.686 384.002 663.585 432 683.635C479.998 703.672 528.002 621.847 576 608.889C623.998 595.931 672.002 651.841 720 608.889C767.998 565.924 816.002 424.097 864 359.731C911.998 295.365 960.002 308.446 1008 297.438C1056 286.445 1104 251.363 1152 334.811C1200 418.273 1248 620.278 1296 658.715C1344 697.152 1392 572.048 1440 446.93"
|
|
105
|
+
/>
|
|
106
|
+
</path>
|
|
107
|
+
</svg>
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
import { BackgroundGraphicMinerva } from 'minerva-components-library';
|
|
2
|
+
import { default as default_2 } from 'react';
|
|
3
|
+
import { default as i18n } from 'i18next';
|
|
4
|
+
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
5
|
+
import * as React_2 from 'react';
|
|
6
|
+
import { ReactNode } from 'react';
|
|
7
|
+
|
|
8
|
+
export declare const ApiConfigProvider: ({ children, initialConfig, }: {
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
initialConfig?: Partial<ApiConfigType>;
|
|
11
|
+
}) => JSX_2.Element;
|
|
12
|
+
|
|
13
|
+
declare interface ApiConfigType {
|
|
14
|
+
apiUrl: string;
|
|
15
|
+
apiKey: string;
|
|
16
|
+
service?: string;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
declare interface AuthContextType {
|
|
20
|
+
isAuthenticated: boolean;
|
|
21
|
+
loadingAuth: boolean;
|
|
22
|
+
loadingData: boolean;
|
|
23
|
+
login: (username: string, password: string) => Promise<void>;
|
|
24
|
+
logout: () => void;
|
|
25
|
+
isManualLogin: boolean;
|
|
26
|
+
setIsManualLogin: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
|
+
callbackUrl: string;
|
|
28
|
+
tokenUrl: string;
|
|
29
|
+
clientId: string;
|
|
30
|
+
clientSecret: string;
|
|
31
|
+
keycloakUrl: string;
|
|
32
|
+
jwksUrl: string;
|
|
33
|
+
isLoggingOut: boolean;
|
|
34
|
+
updateAuth: () => Promise<void>;
|
|
35
|
+
keycloakLogoutUrl: string;
|
|
36
|
+
microsoftLogoutUrl: string;
|
|
37
|
+
services: Service[];
|
|
38
|
+
fetchServices: () => Promise<void>;
|
|
39
|
+
loadingServices: boolean;
|
|
40
|
+
loginRedirectPath: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export declare const AuthProvider: ({ children, callbackUrl, tokenUrl, clientId, clientSecret, keycloakUrl, keycloakLogoutUrl, microsoftLogoutUrl, loginRedirectPath, }: {
|
|
44
|
+
children: ReactNode;
|
|
45
|
+
callbackUrl: string;
|
|
46
|
+
tokenUrl: string;
|
|
47
|
+
clientId: string;
|
|
48
|
+
clientSecret: string;
|
|
49
|
+
keycloakUrl: string;
|
|
50
|
+
keycloakLogoutUrl: string;
|
|
51
|
+
microsoftLogoutUrl: string;
|
|
52
|
+
loginRedirectPath?: string;
|
|
53
|
+
}) => JSX_2.Element;
|
|
54
|
+
|
|
55
|
+
declare interface AutoCreateConversationParams {
|
|
56
|
+
enableAutoCreate: boolean;
|
|
57
|
+
enableAutoCreateCsd: boolean;
|
|
58
|
+
addConversation: (title: string, service: string) => Promise<Conversation>;
|
|
59
|
+
selectConversation: (id: string, service?: string) => void;
|
|
60
|
+
service: string;
|
|
61
|
+
conversations: Conversation[];
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export { BackgroundGraphicMinerva }
|
|
65
|
+
|
|
66
|
+
export declare const CallbackPage: React.FC;
|
|
67
|
+
|
|
68
|
+
export declare const ChatBoard: default_2.FC<ChatProps>;
|
|
69
|
+
|
|
70
|
+
declare interface ChatProps {
|
|
71
|
+
theme: string;
|
|
72
|
+
showDate?: boolean;
|
|
73
|
+
customLogo?: string;
|
|
74
|
+
showHeader?: boolean;
|
|
75
|
+
createWhenLogin?: boolean;
|
|
76
|
+
createWhenCsd?: boolean;
|
|
77
|
+
showControlButtons?: boolean;
|
|
78
|
+
chatVersion?: string;
|
|
79
|
+
className?: string;
|
|
80
|
+
showLogoutButton?: boolean;
|
|
81
|
+
showCreateConversation?: boolean;
|
|
82
|
+
showConversationTitle?: boolean;
|
|
83
|
+
showPlexo?: boolean;
|
|
84
|
+
showFeedbackButtons?: boolean;
|
|
85
|
+
showeditIcon?: boolean;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
declare interface Conversation {
|
|
89
|
+
id: string;
|
|
90
|
+
title: string;
|
|
91
|
+
created_at: string;
|
|
92
|
+
service?: string;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare interface ConversationContextType {
|
|
96
|
+
conversations: Conversation[];
|
|
97
|
+
fetchConversations: () => Promise<void>;
|
|
98
|
+
addConversation: (title: string, service: string) => Promise<Conversation>;
|
|
99
|
+
removeConversation: (id: string, service?: string) => void;
|
|
100
|
+
selectConversation: (id: string, service?: string) => void;
|
|
101
|
+
selectedConversation: Conversation | null;
|
|
102
|
+
selectedConversationId: string | null;
|
|
103
|
+
service: string;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export declare const ConversationProvider: ({ children, enableAutoCreate, enableAutoCreateCsd, }: ConversationProviderProps) => JSX_2.Element;
|
|
107
|
+
|
|
108
|
+
declare interface ConversationProviderProps {
|
|
109
|
+
children: ReactNode;
|
|
110
|
+
enableAutoCreate?: boolean;
|
|
111
|
+
enableAutoCreateCsd?: boolean;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export declare const CustomLogo: default_2.FC<CustomLogoProps>;
|
|
115
|
+
|
|
116
|
+
declare interface CustomLogoProps {
|
|
117
|
+
logo: default_2.ReactNode;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Obtiene la configuración actual de la API.
|
|
122
|
+
*
|
|
123
|
+
* Si la app destino no la configura, usa los valores de DEFAULTS.
|
|
124
|
+
*/
|
|
125
|
+
export declare const getApiConfig: () => {
|
|
126
|
+
apiUrl: string;
|
|
127
|
+
apiKey: string;
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
export { i18n }
|
|
131
|
+
|
|
132
|
+
export declare const Login: React_2.FC<LoginProps>;
|
|
133
|
+
|
|
134
|
+
export declare const LoginLDAP: () => JSX_2.Element;
|
|
135
|
+
|
|
136
|
+
export declare const LoginMixto: React_2.FC<LoginProps_2>;
|
|
137
|
+
|
|
138
|
+
declare interface LoginProps {
|
|
139
|
+
customLogo?: React_2.ReactNode;
|
|
140
|
+
chatVersion?: string;
|
|
141
|
+
miniVersionHeight?: string;
|
|
142
|
+
miniVersionWidth?: string;
|
|
143
|
+
className?: string;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare interface LoginProps_2 {
|
|
147
|
+
customLogo?: React_2.ReactNode;
|
|
148
|
+
chatVersion?: string;
|
|
149
|
+
className?: string;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export declare const MessageInteractionProvider: React.FC<{
|
|
153
|
+
children: React.ReactNode;
|
|
154
|
+
typeWritterSpeed: number;
|
|
155
|
+
}>;
|
|
156
|
+
|
|
157
|
+
export declare const MessageProvider: ({ children }: {
|
|
158
|
+
children: ReactNode;
|
|
159
|
+
}) => JSX_2.Element;
|
|
160
|
+
|
|
161
|
+
export declare const MinervaDocumentation: () => JSX_2.Element;
|
|
162
|
+
|
|
163
|
+
export declare const minervaLocales: {
|
|
164
|
+
es: {
|
|
165
|
+
titles: {
|
|
166
|
+
login: string;
|
|
167
|
+
error: string;
|
|
168
|
+
welcome: string;
|
|
169
|
+
list_conversations: string;
|
|
170
|
+
};
|
|
171
|
+
menus: {
|
|
172
|
+
explorehelper: string;
|
|
173
|
+
one_helper: string;
|
|
174
|
+
two_helper: string;
|
|
175
|
+
three_helper: string;
|
|
176
|
+
four_helper: string;
|
|
177
|
+
five_helper: string;
|
|
178
|
+
quit: string;
|
|
179
|
+
options: string;
|
|
180
|
+
logout: string;
|
|
181
|
+
};
|
|
182
|
+
text: {
|
|
183
|
+
one_helper_title: string;
|
|
184
|
+
one_helper_text: string;
|
|
185
|
+
two_helper_title: string;
|
|
186
|
+
two_helper_text: string;
|
|
187
|
+
three_helper_title: string;
|
|
188
|
+
three_helper_text: string;
|
|
189
|
+
four_helper_title: string;
|
|
190
|
+
four_helper_text: string;
|
|
191
|
+
five_helper_title: string;
|
|
192
|
+
five_helper_text: string;
|
|
193
|
+
new_conversation: string;
|
|
194
|
+
copied: string;
|
|
195
|
+
copycode: string;
|
|
196
|
+
welcome_text: string;
|
|
197
|
+
};
|
|
198
|
+
formLabels: {
|
|
199
|
+
loginEmail: string;
|
|
200
|
+
loginPassword: string;
|
|
201
|
+
loginSend: string;
|
|
202
|
+
loginLdapSend: string;
|
|
203
|
+
placeholderWriteMessage: string;
|
|
204
|
+
buttonSendMessage: string;
|
|
205
|
+
buttonInit: string;
|
|
206
|
+
placeholder_create_conversation: string;
|
|
207
|
+
button_create_conversation: string;
|
|
208
|
+
};
|
|
209
|
+
errorMessages: {
|
|
210
|
+
invalidCredentials: string;
|
|
211
|
+
networkError: string;
|
|
212
|
+
serverCommunicationError: string;
|
|
213
|
+
invalidResponse: string;
|
|
214
|
+
};
|
|
215
|
+
logMessages: {
|
|
216
|
+
noAnswer: string;
|
|
217
|
+
sendMessageError: string;
|
|
218
|
+
serverResponse: string;
|
|
219
|
+
communicationError: string;
|
|
220
|
+
no_conversations_available: string;
|
|
221
|
+
};
|
|
222
|
+
welcomeMessages: {
|
|
223
|
+
welcomeMessage: string;
|
|
224
|
+
startChatting: string;
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
en: {
|
|
228
|
+
titles: {
|
|
229
|
+
login: string;
|
|
230
|
+
error: string;
|
|
231
|
+
welcome: string;
|
|
232
|
+
list_conversations: string;
|
|
233
|
+
};
|
|
234
|
+
menus: {
|
|
235
|
+
explorehelper: string;
|
|
236
|
+
one_helper: string;
|
|
237
|
+
two_helper: string;
|
|
238
|
+
three_helper: string;
|
|
239
|
+
four_helper: string;
|
|
240
|
+
five_helper: string;
|
|
241
|
+
quit: string;
|
|
242
|
+
options: string;
|
|
243
|
+
logout: string;
|
|
244
|
+
};
|
|
245
|
+
text: {
|
|
246
|
+
one_helper_title: string;
|
|
247
|
+
one_helper_text: string;
|
|
248
|
+
two_helper_title: string;
|
|
249
|
+
two_helper_text: string;
|
|
250
|
+
three_helper_title: string;
|
|
251
|
+
three_helper_text: string;
|
|
252
|
+
four_helper_title: string;
|
|
253
|
+
four_helper_text: string;
|
|
254
|
+
five_helper_title: string;
|
|
255
|
+
five_helper_text: string;
|
|
256
|
+
new_conversation: string;
|
|
257
|
+
copied: string;
|
|
258
|
+
copycode: string;
|
|
259
|
+
welcome_text: string;
|
|
260
|
+
};
|
|
261
|
+
formLabels: {
|
|
262
|
+
loginEmail: string;
|
|
263
|
+
loginPassword: string;
|
|
264
|
+
loginSend: string;
|
|
265
|
+
loginLdapSend: string;
|
|
266
|
+
placeholderWriteMessage: string;
|
|
267
|
+
buttonSendMessage: string;
|
|
268
|
+
buttonInit: string;
|
|
269
|
+
placeholder_create_conversation: string;
|
|
270
|
+
button_create_conversation: string;
|
|
271
|
+
};
|
|
272
|
+
errorMessages: {
|
|
273
|
+
invalidCredentials: string;
|
|
274
|
+
networkError: string;
|
|
275
|
+
serverCommunicationError: string;
|
|
276
|
+
invalidResponse: string;
|
|
277
|
+
};
|
|
278
|
+
logMessages: {
|
|
279
|
+
noAnswer: string;
|
|
280
|
+
sendMessageError: string;
|
|
281
|
+
serverResponse: string;
|
|
282
|
+
communicationError: string;
|
|
283
|
+
no_conversations_available: string;
|
|
284
|
+
};
|
|
285
|
+
welcomeMessages: {
|
|
286
|
+
welcomeMessage: string;
|
|
287
|
+
startChatting: string;
|
|
288
|
+
};
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
declare interface Service {
|
|
293
|
+
alias: string;
|
|
294
|
+
service: string;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare type ServiceContextType = {
|
|
298
|
+
service: string;
|
|
299
|
+
setService: (service: string) => void;
|
|
300
|
+
availableServices: {
|
|
301
|
+
alias: string;
|
|
302
|
+
service: string;
|
|
303
|
+
}[];
|
|
304
|
+
};
|
|
305
|
+
|
|
306
|
+
export declare const ServiceProvider: ({ children, usedService, }: {
|
|
307
|
+
children: ReactNode;
|
|
308
|
+
usedService?: string;
|
|
309
|
+
}) => JSX_2.Element;
|
|
310
|
+
|
|
311
|
+
/**
|
|
312
|
+
* Permite que la app destino configure la API antes de usar la librería.
|
|
313
|
+
*/
|
|
314
|
+
export declare const setApiConfig: (config: {
|
|
315
|
+
apiUrl: string;
|
|
316
|
+
apiKey: string;
|
|
317
|
+
}) => void;
|
|
318
|
+
|
|
319
|
+
export declare const setAssetsBasePath: (path: string) => void;
|
|
320
|
+
|
|
321
|
+
export declare const useApiConfig: () => ApiConfigType;
|
|
322
|
+
|
|
323
|
+
export declare const useAuth: () => AuthContextType;
|
|
324
|
+
|
|
325
|
+
export declare const useAutoCreateConversation: ({ enableAutoCreate, enableAutoCreateCsd, addConversation, selectConversation, service, conversations, }: AutoCreateConversationParams) => {
|
|
326
|
+
autoCreateConversation: () => Promise<void>;
|
|
327
|
+
autoCreateConversationCsd: () => Promise<void>;
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
export declare const useConversation: () => ConversationContextType;
|
|
331
|
+
|
|
332
|
+
export declare const useService: () => ServiceContextType;
|
|
333
|
+
|
|
334
|
+
export { }
|