analytica-frontend-lib 1.2.25 → 1.2.29

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.
Files changed (355) hide show
  1. package/dist/Accordation/index.d.ts +4 -5
  2. package/dist/Accordation/index.d.ts.map +1 -0
  3. package/dist/ActivityDetails/index.css +19293 -0
  4. package/dist/ActivityDetails/index.css.map +1 -0
  5. package/dist/ActivityDetails/index.d.ts +31 -0
  6. package/dist/ActivityDetails/index.d.ts.map +1 -0
  7. package/dist/ActivityDetails/index.js +7389 -0
  8. package/dist/ActivityDetails/index.js.map +1 -0
  9. package/dist/ActivityDetails/index.mjs +7438 -0
  10. package/dist/ActivityDetails/index.mjs.map +1 -0
  11. package/dist/ActivityFilters/index.css +112 -0
  12. package/dist/ActivityFilters/index.css.map +1 -1
  13. package/dist/ActivityFilters/index.d.ts +44 -5
  14. package/dist/ActivityFilters/index.d.ts.map +1 -0
  15. package/dist/ActivityFilters/index.js +67 -33
  16. package/dist/ActivityFilters/index.js.map +1 -1
  17. package/dist/ActivityFilters/index.mjs +89 -55
  18. package/dist/ActivityFilters/index.mjs.map +1 -1
  19. package/dist/Alert/index.d.ts +3 -5
  20. package/dist/Alert/index.d.ts.map +1 -0
  21. package/dist/AlertDialog/index.d.ts +2 -4
  22. package/dist/AlertDialog/index.d.ts.map +1 -0
  23. package/dist/AlertManager/index.css +112 -0
  24. package/dist/AlertManager/index.css.map +1 -1
  25. package/dist/AlertManager/index.d.ts +4 -8
  26. package/dist/AlertManager/index.d.ts.map +1 -0
  27. package/dist/AlertManager/index.js +56 -22
  28. package/dist/AlertManager/index.js.map +1 -1
  29. package/dist/AlertManager/index.mjs +78 -44
  30. package/dist/AlertManager/index.mjs.map +1 -1
  31. package/dist/AlertManagerView/index.d.ts +6 -10
  32. package/dist/AlertManagerView/index.d.ts.map +1 -0
  33. package/dist/Alternative/index.d.ts +6 -9
  34. package/dist/Alternative/index.d.ts.map +1 -0
  35. package/dist/Auth/AuthProvider/index.d.ts +324 -3
  36. package/dist/Auth/AuthProvider/index.d.ts.map +1 -0
  37. package/dist/Auth/ProtectedRoute/index.d.ts +324 -3
  38. package/dist/Auth/ProtectedRoute/index.d.ts.map +1 -0
  39. package/dist/Auth/PublicRoute/index.d.ts +324 -3
  40. package/dist/Auth/PublicRoute/index.d.ts.map +1 -0
  41. package/dist/Auth/getRootDomain/index.d.ts +324 -3
  42. package/dist/Auth/getRootDomain/index.d.ts.map +1 -0
  43. package/dist/Auth/index.d.ts +24 -26
  44. package/dist/Auth/index.d.ts.map +1 -0
  45. package/dist/Auth/useApiConfig/index.d.ts +3 -3
  46. package/dist/Auth/useApiConfig/index.d.ts.map +1 -0
  47. package/dist/Auth/useAuth/index.d.ts +324 -3
  48. package/dist/Auth/useAuth/index.d.ts.map +1 -0
  49. package/dist/Auth/useAuthGuard/index.d.ts +324 -3
  50. package/dist/Auth/useAuthGuard/index.d.ts.map +1 -0
  51. package/dist/Auth/useRouteAuth/index.d.ts +324 -3
  52. package/dist/Auth/useRouteAuth/index.d.ts.map +1 -0
  53. package/dist/Auth/useUrlAuthentication/index.d.ts +3 -4
  54. package/dist/Auth/useUrlAuthentication/index.d.ts.map +1 -0
  55. package/dist/Auth/withAuth/index.d.ts +324 -3
  56. package/dist/Auth/withAuth/index.d.ts.map +1 -0
  57. package/dist/Auth/zustandAuthAdapter/index.d.ts +2 -3
  58. package/dist/Auth/zustandAuthAdapter/index.d.ts.map +1 -0
  59. package/dist/Badge/index.d.ts +4 -6
  60. package/dist/Badge/index.d.ts.map +1 -0
  61. package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts +5 -7
  62. package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts.map +1 -0
  63. package/dist/BreadcrumbMenu/index.d.ts +4 -8
  64. package/dist/BreadcrumbMenu/index.d.ts.map +1 -0
  65. package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts +7 -10
  66. package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts.map +1 -0
  67. package/dist/BreadcrumbMenu/useUrlParams/index.d.ts +3 -4
  68. package/dist/BreadcrumbMenu/useUrlParams/index.d.ts.map +1 -0
  69. package/dist/Button/index.d.ts +4 -6
  70. package/dist/Button/index.d.ts.map +1 -0
  71. package/dist/Calendar/index.d.ts +9 -11
  72. package/dist/Calendar/index.d.ts.map +1 -0
  73. package/dist/Card/index.d.ts +17 -19
  74. package/dist/Card/index.d.ts.map +1 -0
  75. package/dist/CheckBox/index.d.ts +6 -8
  76. package/dist/CheckBox/index.d.ts.map +1 -0
  77. package/dist/Chips/index.d.ts +4 -6
  78. package/dist/Chips/index.d.ts.map +1 -0
  79. package/dist/CorrectActivityModal/index.d.ts +39 -0
  80. package/dist/CorrectActivityModal/index.d.ts.map +1 -0
  81. package/dist/CorrectActivityModal/index.js +3674 -0
  82. package/dist/CorrectActivityModal/index.js.map +1 -0
  83. package/dist/CorrectActivityModal/index.mjs +3689 -0
  84. package/dist/CorrectActivityModal/index.mjs.map +1 -0
  85. package/dist/Divider/index.d.ts +3 -5
  86. package/dist/Divider/index.d.ts.map +1 -0
  87. package/dist/DownloadButton/index.d.ts +5 -7
  88. package/dist/DownloadButton/index.d.ts.map +1 -0
  89. package/dist/DropdownMenu/index.d.ts +26 -28
  90. package/dist/DropdownMenu/index.d.ts.map +1 -0
  91. package/dist/EmptyState/index.d.ts +5 -7
  92. package/dist/EmptyState/index.d.ts.map +1 -0
  93. package/dist/FileAttachment/index.d.ts +72 -0
  94. package/dist/FileAttachment/index.d.ts.map +1 -0
  95. package/dist/FileAttachment/index.js +239 -0
  96. package/dist/FileAttachment/index.js.map +1 -0
  97. package/dist/FileAttachment/index.mjs +213 -0
  98. package/dist/FileAttachment/index.mjs.map +1 -0
  99. package/dist/IconButton/index.d.ts +6 -8
  100. package/dist/IconButton/index.d.ts.map +1 -0
  101. package/dist/IconRender/index.d.ts +5 -6
  102. package/dist/IconRender/index.d.ts.map +1 -0
  103. package/dist/IconRoundedButton/index.d.ts +4 -6
  104. package/dist/IconRoundedButton/index.d.ts.map +1 -0
  105. package/dist/Input/index.d.ts +5 -7
  106. package/dist/Input/index.d.ts.map +1 -0
  107. package/dist/LatexRenderer/index.d.ts +5 -6
  108. package/dist/LatexRenderer/index.d.ts.map +1 -0
  109. package/dist/LoadingModal/index.d.ts +3 -5
  110. package/dist/LoadingModal/index.d.ts.map +1 -0
  111. package/dist/Menu/index.d.ts +12 -14
  112. package/dist/Menu/index.d.ts.map +1 -0
  113. package/dist/Modal/index.d.ts +3 -5
  114. package/dist/Modal/index.d.ts.map +1 -0
  115. package/dist/Modal/utils/videoUtils/index.d.ts +4 -5
  116. package/dist/Modal/utils/videoUtils/index.d.ts.map +1 -0
  117. package/dist/MultipleChoice/index.d.ts +2 -4
  118. package/dist/MultipleChoice/index.d.ts.map +1 -0
  119. package/dist/NavButton/index.d.ts +5 -7
  120. package/dist/NavButton/index.d.ts.map +1 -0
  121. package/dist/NoSearchResult/index.d.ts +4 -6
  122. package/dist/NoSearchResult/index.d.ts.map +1 -0
  123. package/dist/NotFound/index.d.ts +4 -6
  124. package/dist/NotFound/index.d.ts.map +1 -0
  125. package/dist/NotificationCard/index.d.ts +218 -3
  126. package/dist/NotificationCard/index.d.ts.map +1 -0
  127. package/dist/ProgressBar/index.d.ts +4 -6
  128. package/dist/ProgressBar/index.d.ts.map +1 -0
  129. package/dist/ProgressCircle/index.d.ts +4 -6
  130. package/dist/ProgressCircle/index.d.ts.map +1 -0
  131. package/dist/Quiz/index.d.ts +19 -23
  132. package/dist/Quiz/index.d.ts.map +1 -0
  133. package/dist/Quiz/useQuizStore/index.d.ts +14 -17
  134. package/dist/Quiz/useQuizStore/index.d.ts.map +1 -0
  135. package/dist/Radio/index.d.ts +14 -15
  136. package/dist/Radio/index.d.ts.map +1 -0
  137. package/dist/Search/index.d.ts +4 -6
  138. package/dist/Search/index.d.ts.map +1 -0
  139. package/dist/Select/index.d.ts +12 -14
  140. package/dist/Select/index.d.ts.map +1 -0
  141. package/dist/SelectionButton/index.d.ts +5 -7
  142. package/dist/SelectionButton/index.d.ts.map +1 -0
  143. package/dist/Skeleton/index.d.ts +10 -12
  144. package/dist/Skeleton/index.d.ts.map +1 -0
  145. package/dist/StatisticsCard/index.d.ts +3 -5
  146. package/dist/StatisticsCard/index.d.ts.map +1 -0
  147. package/dist/Stepper/index.d.ts +6 -8
  148. package/dist/Stepper/index.d.ts.map +1 -0
  149. package/dist/SubjectInfo/index.d.ts +17 -2
  150. package/dist/SubjectInfo/index.d.ts.map +1 -0
  151. package/dist/Support/TicketModal/index.d.ts +14 -0
  152. package/dist/Support/TicketModal/index.d.ts.map +1 -0
  153. package/dist/Support/TicketModal/index.js +1279 -0
  154. package/dist/Support/TicketModal/index.js.map +1 -0
  155. package/dist/Support/TicketModal/index.mjs +1248 -0
  156. package/dist/Support/TicketModal/index.mjs.map +1 -0
  157. package/dist/Support/index.d.ts +8 -0
  158. package/dist/Support/index.d.ts.map +1 -0
  159. package/dist/Support/index.js +2686 -0
  160. package/dist/Support/index.js.map +1 -0
  161. package/dist/Support/index.mjs +2676 -0
  162. package/dist/Support/index.mjs.map +1 -0
  163. package/dist/Table/TablePagination/index.d.ts +4 -6
  164. package/dist/Table/TablePagination/index.d.ts.map +1 -0
  165. package/dist/Table/index.d.ts +18 -19
  166. package/dist/Table/index.d.ts.map +1 -0
  167. package/dist/TableProvider/index.css +112 -0
  168. package/dist/TableProvider/index.css.map +1 -1
  169. package/dist/TableProvider/index.d.ts +198 -4
  170. package/dist/TableProvider/index.d.ts.map +1 -0
  171. package/dist/TableProvider/index.js +56 -22
  172. package/dist/TableProvider/index.js.map +1 -1
  173. package/dist/TableProvider/index.mjs +78 -44
  174. package/dist/TableProvider/index.mjs.map +1 -1
  175. package/dist/Text/index.d.ts +4 -6
  176. package/dist/Text/index.d.ts.map +1 -0
  177. package/dist/TextArea/index.d.ts +6 -8
  178. package/dist/TextArea/index.d.ts.map +1 -0
  179. package/dist/ThemeToggle/index.d.ts +4 -8
  180. package/dist/ThemeToggle/index.d.ts.map +1 -0
  181. package/dist/Toast/ToastStore/index.d.ts +3 -5
  182. package/dist/Toast/ToastStore/index.d.ts.map +1 -0
  183. package/dist/Toast/Toaster/index.d.ts +4 -6
  184. package/dist/Toast/Toaster/index.d.ts.map +1 -0
  185. package/dist/Toast/index.d.ts +3 -5
  186. package/dist/Toast/index.d.ts.map +1 -0
  187. package/dist/VideoPlayer/index.d.ts +4 -6
  188. package/dist/VideoPlayer/index.d.ts.map +1 -0
  189. package/dist/Whiteboard/index.d.ts +5 -7
  190. package/dist/Whiteboard/index.d.ts.map +1 -0
  191. package/dist/assets/icons/subjects/BookOpenText.d.ts +5 -0
  192. package/dist/assets/icons/subjects/BookOpenText.d.ts.map +1 -0
  193. package/dist/assets/icons/subjects/ChatEN.d.ts +5 -0
  194. package/dist/assets/icons/subjects/ChatEN.d.ts.map +1 -0
  195. package/dist/assets/icons/subjects/ChatES.d.ts +5 -0
  196. package/dist/assets/icons/subjects/ChatES.d.ts.map +1 -0
  197. package/dist/assets/icons/subjects/ChatPT.d.ts +5 -0
  198. package/dist/assets/icons/subjects/ChatPT.d.ts.map +1 -0
  199. package/dist/assets/icons/subjects/HeadCircuit.d.ts +5 -0
  200. package/dist/assets/icons/subjects/HeadCircuit.d.ts.map +1 -0
  201. package/dist/assets/icons/subjects/Microscope.d.ts +5 -0
  202. package/dist/assets/icons/subjects/Microscope.d.ts.map +1 -0
  203. package/dist/enums/SubjectEnum.d.ts +19 -0
  204. package/dist/enums/SubjectEnum.d.ts.map +1 -0
  205. package/dist/hooks/useAppContent.d.ts +55 -0
  206. package/dist/hooks/useAppContent.d.ts.map +1 -0
  207. package/dist/hooks/useAppInitialization.d.ts +21 -0
  208. package/dist/hooks/useAppInitialization.d.ts.map +1 -0
  209. package/dist/hooks/useInstitution.d.ts +2 -0
  210. package/dist/hooks/useInstitution.d.ts.map +1 -0
  211. package/dist/hooks/useMobile/index.d.ts +4 -5
  212. package/dist/hooks/useMobile/index.d.ts.map +1 -0
  213. package/dist/hooks/useNotificationStore.d.ts +34 -0
  214. package/dist/hooks/useNotificationStore.d.ts.map +1 -0
  215. package/dist/hooks/useNotifications.d.ts +129 -0
  216. package/dist/hooks/useNotifications.d.ts.map +1 -0
  217. package/dist/hooks/useScreen.d.ts +38 -0
  218. package/dist/hooks/useScreen.d.ts.map +1 -0
  219. package/dist/hooks/useTheme/index.d.ts +4 -7
  220. package/dist/hooks/useTheme/index.d.ts.map +1 -0
  221. package/dist/index.css +112 -0
  222. package/dist/index.css.map +1 -1
  223. package/dist/index.d.ts +127 -789
  224. package/dist/index.d.ts.map +1 -0
  225. package/dist/index.js +9031 -7012
  226. package/dist/index.js.map +1 -1
  227. package/dist/index.mjs +9093 -7085
  228. package/dist/index.mjs.map +1 -1
  229. package/dist/store/appStore.d.ts +27 -0
  230. package/dist/store/appStore.d.ts.map +1 -0
  231. package/dist/store/authStore.d.ts +75 -0
  232. package/dist/store/authStore.d.ts.map +1 -0
  233. package/dist/store/notificationStore.d.ts +89 -0
  234. package/dist/store/notificationStore.d.ts.map +1 -0
  235. package/dist/{themeStore-P2X64zC-.d.ts → store/themeStore.d.ts} +8 -12
  236. package/dist/store/themeStore.d.ts.map +1 -0
  237. package/dist/styles.css +112 -0
  238. package/dist/styles.css.map +1 -1
  239. package/dist/suporthistory-W5LBGAUP.png +0 -0
  240. package/dist/types/activityDetails.d.ts +127 -0
  241. package/dist/types/activityDetails.d.ts.map +1 -0
  242. package/dist/types/activityFilters.d.ts +51 -0
  243. package/dist/types/activityFilters.d.ts.map +1 -0
  244. package/dist/types/auth.d.ts +53 -0
  245. package/dist/types/auth.d.ts.map +1 -0
  246. package/dist/types/notifications.d.ts +199 -0
  247. package/dist/types/notifications.d.ts.map +1 -0
  248. package/dist/types/questionTypes.d.ts +6 -0
  249. package/dist/types/questionTypes.d.ts.map +1 -0
  250. package/dist/types/studentActivityCorrection.d.ts +57 -0
  251. package/dist/types/studentActivityCorrection.d.ts.map +1 -0
  252. package/dist/types/support/index.d.ts +111 -0
  253. package/dist/types/support/index.d.ts.map +1 -0
  254. package/dist/types/support/index.js +115 -0
  255. package/dist/types/support/index.js.map +1 -0
  256. package/dist/types/support/index.mjs +84 -0
  257. package/dist/types/support/index.mjs.map +1 -0
  258. package/dist/utils/activityFilters.d.ts +23 -0
  259. package/dist/utils/activityFilters.d.ts.map +1 -0
  260. package/dist/utils/dropdown.d.ts +12 -0
  261. package/dist/utils/dropdown.d.ts.map +1 -0
  262. package/dist/utils/index.d.ts +6 -43
  263. package/dist/utils/index.d.ts.map +1 -0
  264. package/dist/utils/keys.d.ts +24 -0
  265. package/dist/utils/keys.d.ts.map +1 -0
  266. package/package.json +20 -4
  267. package/dist/Accordation/index.d.mts +0 -15
  268. package/dist/ActivityFilters/index.d.mts +0 -5
  269. package/dist/ActivityFilters-Cs3TpGAY.d.ts +0 -97
  270. package/dist/ActivityFilters-CsX8y41f.d.mts +0 -97
  271. package/dist/Alert/index.d.mts +0 -13
  272. package/dist/AlertDialog/index.d.mts +0 -36
  273. package/dist/AlertManager/index.d.mts +0 -17
  274. package/dist/AlertManagerView/index.d.mts +0 -31
  275. package/dist/Alternative/index.d.mts +0 -81
  276. package/dist/Auth/AuthProvider/index.d.mts +0 -3
  277. package/dist/Auth/ProtectedRoute/index.d.mts +0 -3
  278. package/dist/Auth/PublicRoute/index.d.mts +0 -3
  279. package/dist/Auth/getRootDomain/index.d.mts +0 -3
  280. package/dist/Auth/index.d.mts +0 -326
  281. package/dist/Auth/useApiConfig/index.d.mts +0 -43
  282. package/dist/Auth/useAuth/index.d.mts +0 -3
  283. package/dist/Auth/useAuthGuard/index.d.mts +0 -3
  284. package/dist/Auth/useRouteAuth/index.d.mts +0 -3
  285. package/dist/Auth/useUrlAuthentication/index.d.mts +0 -69
  286. package/dist/Auth/withAuth/index.d.mts +0 -3
  287. package/dist/Auth/zustandAuthAdapter/index.d.mts +0 -75
  288. package/dist/Badge/index.d.mts +0 -46
  289. package/dist/BreadcrumbMenu/breadcrumbStore/index.d.mts +0 -77
  290. package/dist/BreadcrumbMenu/index.d.mts +0 -31
  291. package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.mts +0 -48
  292. package/dist/BreadcrumbMenu/useUrlParams/index.d.mts +0 -28
  293. package/dist/Button/index.d.mts +0 -45
  294. package/dist/Calendar/index.d.mts +0 -60
  295. package/dist/Card/index.d.mts +0 -150
  296. package/dist/CheckBox/index.d.mts +0 -74
  297. package/dist/CheckBoxGroup-9n5C0OH4.d.mts +0 -24
  298. package/dist/CheckBoxGroup-9n5C0OH4.d.ts +0 -24
  299. package/dist/Chips/index.d.mts +0 -41
  300. package/dist/Divider/index.d.mts +0 -32
  301. package/dist/DownloadButton/index.d.mts +0 -46
  302. package/dist/DropdownMenu/index.d.mts +0 -82
  303. package/dist/EmptyState/index.d.mts +0 -65
  304. package/dist/IconButton/index.d.mts +0 -76
  305. package/dist/IconRender/index.d.mts +0 -36
  306. package/dist/IconRoundedButton/index.d.mts +0 -34
  307. package/dist/Input/index.d.mts +0 -27
  308. package/dist/LatexRenderer/index.d.mts +0 -50
  309. package/dist/LoadingModal/index.d.mts +0 -11
  310. package/dist/Menu/index.d.mts +0 -48
  311. package/dist/Modal/index.d.mts +0 -76
  312. package/dist/Modal/utils/videoUtils/index.d.mts +0 -28
  313. package/dist/MultipleChoice/index.d.mts +0 -20
  314. package/dist/NavButton/index.d.mts +0 -57
  315. package/dist/NoSearchResult/index.d.mts +0 -37
  316. package/dist/NotFound/index.d.mts +0 -58
  317. package/dist/NotificationCard/index.d.mts +0 -3
  318. package/dist/NotificationCard-4GgB0Nsf.d.mts +0 -417
  319. package/dist/NotificationCard-4GgB0Nsf.d.ts +0 -417
  320. package/dist/ProgressBar/index.d.mts +0 -95
  321. package/dist/ProgressCircle/index.d.mts +0 -60
  322. package/dist/Quiz/index.d.mts +0 -55
  323. package/dist/Quiz/useQuizStore/index.d.mts +0 -258
  324. package/dist/Radio/index.d.mts +0 -203
  325. package/dist/Search/index.d.mts +0 -27
  326. package/dist/Select/index.d.mts +0 -59
  327. package/dist/SelectionButton/index.d.mts +0 -57
  328. package/dist/Skeleton/index.d.mts +0 -40
  329. package/dist/StatisticsCard/index.d.mts +0 -79
  330. package/dist/Stepper/index.d.mts +0 -169
  331. package/dist/SubjectInfo/index.d.mts +0 -2
  332. package/dist/SubjectInfo-Dvt0OodP.d.mts +0 -37
  333. package/dist/SubjectInfo-Dvt0OodP.d.ts +0 -37
  334. package/dist/Table/TablePagination/index.d.mts +0 -64
  335. package/dist/Table/index.d.mts +0 -93
  336. package/dist/TableProvider/index.d.mts +0 -4
  337. package/dist/TableProvider-BnAnv3OV.d.mts +0 -239
  338. package/dist/TableProvider-GfPlLqzg.d.ts +0 -239
  339. package/dist/Text/index.d.mts +0 -58
  340. package/dist/TextArea/index.d.mts +0 -74
  341. package/dist/ThemeToggle/index.d.mts +0 -12
  342. package/dist/Toast/ToastStore/index.d.mts +0 -19
  343. package/dist/Toast/Toaster/index.d.mts +0 -16
  344. package/dist/Toast/index.d.mts +0 -17
  345. package/dist/VideoPlayer/index.d.mts +0 -52
  346. package/dist/Whiteboard/index.d.mts +0 -34
  347. package/dist/hooks/useMobile/index.d.mts +0 -29
  348. package/dist/hooks/useTheme/index.d.mts +0 -17
  349. package/dist/index.d.mts +0 -789
  350. package/dist/styles.d.mts +0 -2
  351. package/dist/styles.d.ts +0 -2
  352. package/dist/themeStore-P2X64zC-.d.mts +0 -79
  353. package/dist/types-DqZRjqxh.d.ts +0 -67
  354. package/dist/types-pd3QVhSu.d.mts +0 -67
  355. package/dist/utils/index.d.mts +0 -51
@@ -1,97 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { C as CategoryConfig } from './CheckBoxGroup-9n5C0OH4.mjs';
3
- import { QUESTION_TYPE } from './Quiz/useQuizStore/index.mjs';
4
-
5
- /**
6
- * Activity Filters Data interface
7
- * Represents the current state of all filters
8
- */
9
- interface ActivityFiltersData {
10
- types: QUESTION_TYPE[];
11
- bankIds: string[];
12
- knowledgeIds: string[];
13
- topicIds: string[];
14
- subtopicIds: string[];
15
- contentIds: string[];
16
- }
17
- /**
18
- * Bank interface for vestibular banks
19
- */
20
- interface Bank {
21
- examInstitution: string;
22
- id?: string;
23
- name?: string;
24
- [key: string]: unknown;
25
- }
26
- /**
27
- * Knowledge Area interface
28
- */
29
- interface KnowledgeArea {
30
- id: string;
31
- name: string;
32
- color: string;
33
- icon?: string;
34
- [key: string]: unknown;
35
- }
36
- /**
37
- * Knowledge Item interface for knowledge structure
38
- */
39
- interface KnowledgeItem {
40
- id: string;
41
- name: string;
42
- [key: string]: unknown;
43
- }
44
- /**
45
- * Knowledge Structure State interface
46
- */
47
- interface KnowledgeStructureState {
48
- topics: KnowledgeItem[];
49
- subtopics: KnowledgeItem[];
50
- contents: KnowledgeItem[];
51
- loading: boolean;
52
- error: string | null;
53
- }
54
-
55
- interface ActivityFiltersProps {
56
- onFiltersChange: (filters: ActivityFiltersData) => void;
57
- variant?: 'default' | 'popover';
58
- banks?: Bank[];
59
- knowledgeAreas?: KnowledgeArea[];
60
- knowledgeStructure?: KnowledgeStructureState;
61
- knowledgeCategories?: CategoryConfig[];
62
- loadingBanks?: boolean;
63
- loadingKnowledge?: boolean;
64
- loadingSubjects?: boolean;
65
- banksError?: string | null;
66
- subjectsError?: string | null;
67
- loadBanks?: () => void | Promise<void>;
68
- loadKnowledge?: () => void | Promise<void>;
69
- loadTopics?: (subjectIds: string[]) => void | Promise<void>;
70
- loadSubtopics?: (topicIds: string[]) => void | Promise<void>;
71
- loadContents?: (subtopicIds: string[]) => void | Promise<void>;
72
- handleCategoriesChange?: (updatedCategories: CategoryConfig[]) => void;
73
- selectedKnowledgeSummary?: {
74
- topics: string[];
75
- subtopics: string[];
76
- contents: string[];
77
- };
78
- enableSummary?: boolean;
79
- onClearFilters?: () => void;
80
- onApplyFilters?: () => void;
81
- }
82
- /**
83
- * ActivityFilters component for filtering questions
84
- * Manages question types, banks, subjects, and knowledge structure selections
85
- */
86
- declare const ActivityFilters: ({ onFiltersChange, variant, banks, knowledgeAreas, knowledgeStructure, knowledgeCategories, loadingBanks, loadingKnowledge: _loadingKnowledge, loadingSubjects, banksError, subjectsError, loadBanks, loadKnowledge, loadTopics, loadSubtopics: _loadSubtopics, loadContents: _loadContents, handleCategoriesChange, selectedKnowledgeSummary, enableSummary, onClearFilters, onApplyFilters, }: ActivityFiltersProps) => react_jsx_runtime.JSX.Element;
87
- interface ActivityFiltersPopoverProps extends Omit<ActivityFiltersProps, 'variant' | 'onFiltersChange'> {
88
- onFiltersChange: (filters: ActivityFiltersData) => void;
89
- triggerLabel?: string;
90
- }
91
- /**
92
- * ActivityFiltersPopover component
93
- * Wraps ActivityFilters in a Popover/DropdownMenu triggered by a Button
94
- */
95
- declare const ActivityFiltersPopover: ({ onFiltersChange, triggerLabel, ...activityFiltersProps }: ActivityFiltersPopoverProps) => react_jsx_runtime.JSX.Element;
96
-
97
- export { ActivityFilters as A, type Bank as B, type KnowledgeArea as K, ActivityFiltersPopover as a, type ActivityFiltersProps as b, type ActivityFiltersPopoverProps as c, type ActivityFiltersData as d, type KnowledgeItem as e, type KnowledgeStructureState as f };
@@ -1,13 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { HTMLAttributes } from 'react';
3
-
4
- type AlertProps = {
5
- title?: string;
6
- description: string;
7
- variant?: 'solid' | 'outline';
8
- action?: 'default' | 'info' | 'success' | 'warning' | 'error';
9
- className?: string;
10
- } & HTMLAttributes<HTMLDivElement>;
11
- declare const Alert: ({ variant, title, description, action, className, ...props }: AlertProps) => react_jsx_runtime.JSX.Element;
12
-
13
- export { Alert as default };
@@ -1,36 +0,0 @@
1
- import * as react from 'react';
2
- import { HTMLAttributes } from 'react';
3
-
4
- interface AlertDialogProps extends HTMLAttributes<HTMLDivElement> {
5
- /** Title of the alert dialog */
6
- title: string;
7
- /** Whether the alert dialog is open (controlled mode) */
8
- isOpen: boolean;
9
- /** Function called when the alert dialog is opened or closed (controlled mode) */
10
- onChangeOpen: (open: boolean) => void;
11
- /** Whether clicking the backdrop should close the alert dialog */
12
- closeOnBackdropClick?: boolean;
13
- /** Whether pressing Escape should close the alert dialog */
14
- closeOnEscape?: boolean;
15
- /** Additional CSS classes for the alert dialog content */
16
- className?: string;
17
- /** Function called when submit button is clicked */
18
- onSubmit?: (value?: unknown) => void;
19
- /** Value to pass to onSubmit function */
20
- submitValue?: unknown;
21
- /** Function called when cancel button is clicked */
22
- onCancel?: (value?: unknown) => void;
23
- /** Value to pass to onCancel function */
24
- cancelValue?: unknown;
25
- /** Description of the alert dialog */
26
- description: string;
27
- /** Label of the cancel button */
28
- cancelButtonLabel?: string;
29
- /** Label of the submit button */
30
- submitButtonLabel?: string;
31
- /** Size of the alert dialog */
32
- size?: 'extra-small' | 'small' | 'medium' | 'large' | 'extra-large';
33
- }
34
- declare const AlertDialog: react.ForwardRefExoticComponent<AlertDialogProps & react.RefAttributes<HTMLDivElement>>;
35
-
36
- export { AlertDialog };
@@ -1,17 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { A as AlertsConfig } from '../types-pd3QVhSu.mjs';
3
- import 'react';
4
- import '../CheckBoxGroup-9n5C0OH4.mjs';
5
-
6
- interface AlertsManagerProps {
7
- config: AlertsConfig;
8
- isOpen?: boolean;
9
- onClose?: () => void;
10
- /** URL da imagem após upload (prioritária - será exibida primeiro) */
11
- imageLink?: string | null;
12
- /** Imagem padrão a ser exibida quando não há imagem selecionada (deve ser URL string - o front deve converter File para URL se necessário) */
13
- defaultImage?: string | null;
14
- }
15
- declare const AlertsManager: ({ config, isOpen, onClose, imageLink, defaultImage, }: AlertsManagerProps) => react_jsx_runtime.JSX.Element;
16
-
17
- export { AlertsManager };
@@ -1,31 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { a as AlertData } from '../types-pd3QVhSu.mjs';
3
- import 'react';
4
- import '../CheckBoxGroup-9n5C0OH4.mjs';
5
-
6
- interface AlertViewData extends Omit<AlertData, 'image'> {
7
- image?: string;
8
- sentAt: string | Date;
9
- recipients: RecipientStatus[];
10
- }
11
- interface RecipientStatus {
12
- id: string;
13
- name: string;
14
- status: 'viewed' | 'pending';
15
- }
16
- interface AlertsManagerViewProps {
17
- alertData: AlertViewData;
18
- isOpen?: boolean;
19
- onClose?: () => void;
20
- /** URL da imagem após upload (prioritária - será exibida primeiro) */
21
- imageLink?: string | null;
22
- /** Imagem padrão a ser exibida quando não há imagem no alertData (URL string) */
23
- defaultImage?: string | null;
24
- currentPage?: number;
25
- totalPages?: number;
26
- onPageChange?: (page: number) => void;
27
- itemsPerPage?: number;
28
- }
29
- declare const AlertsManagerView: ({ alertData, isOpen, onClose, imageLink, defaultImage, currentPage, totalPages: externalTotalPages, onPageChange, itemsPerPage, }: AlertsManagerViewProps) => react_jsx_runtime.JSX.Element;
30
-
31
- export { type AlertViewData, AlertsManagerView, type RecipientStatus };
@@ -1,81 +0,0 @@
1
- import * as react from 'react';
2
- import { HTMLAttributes } from 'react';
3
- import * as react_jsx_runtime from 'react/jsx-runtime';
4
-
5
- /**
6
- * Interface para definir uma alternativa
7
- */
8
- interface Alternative {
9
- value: string;
10
- label: string;
11
- status?: 'correct' | 'incorrect' | 'neutral';
12
- disabled?: boolean;
13
- description?: string;
14
- }
15
- /**
16
- * Props do componente AlternativesList
17
- */
18
- interface AlternativesListProps {
19
- /** Lista de alternativas */
20
- alternatives: Alternative[];
21
- /** Nome do grupo de radio */
22
- name?: string;
23
- /** Valor selecionado por padrão */
24
- defaultValue?: string;
25
- /** Valor controlado */
26
- value?: string;
27
- /** Callback quando uma alternativa é selecionada */
28
- onValueChange?: (value: string) => void;
29
- /** Se o componente está desabilitado */
30
- disabled?: boolean;
31
- /** Layout das alternativas */
32
- layout?: 'default' | 'compact' | 'detailed';
33
- /** Classes CSS adicionais */
34
- className?: string;
35
- /** Modo de exibição: interativo (com radios funcionais) ou readonly (apenas visual) */
36
- mode?: 'interactive' | 'readonly';
37
- /** Valor selecionado pelo usuário (apenas para modo readonly) */
38
- selectedValue?: string;
39
- }
40
- /**
41
- * Componente reutilizável para exibir lista de alternativas com RadioGroup
42
- *
43
- * Suporta dois modos:
44
- * - `interactive`: Permite interação com radios (padrão)
45
- * - `readonly`: Apenas exibição visual dos estados
46
- *
47
- * @example
48
- * ```tsx
49
- * // Modo interativo (padrão)
50
- * <AlternativesList
51
- * mode="interactive"
52
- * alternatives={[
53
- * { value: "a", label: "Alternativa A", status: "correct" },
54
- * { value: "b", label: "Alternativa B", status: "incorrect" },
55
- * { value: "c", label: "Alternativa C" }
56
- * ]}
57
- * defaultValue="a"
58
- * onValueChange={(value) => console.log(value)}
59
- * />
60
- *
61
- * // Modo readonly - mostra seleção do usuário
62
- * <AlternativesList
63
- * mode="readonly"
64
- * selectedValue="b" // O que o usuário selecionou
65
- * alternatives={[
66
- * { value: "a", label: "Resposta A", status: "correct" }, // Mostra como correta
67
- * { value: "b", label: "Resposta B" }, // Mostra radio selecionado + badge incorreto
68
- * { value: "c", label: "Resposta C" }
69
- * ]}
70
- * />
71
- * ```
72
- */
73
- declare const AlternativesList: ({ alternatives, name, defaultValue, value, onValueChange, disabled, layout, className, mode, selectedValue, }: AlternativesListProps) => react_jsx_runtime.JSX.Element;
74
- interface HeaderAlternativeProps extends HTMLAttributes<HTMLDivElement> {
75
- title: string;
76
- subTitle: string;
77
- content: string;
78
- }
79
- declare const HeaderAlternative: react.ForwardRefExoticComponent<HeaderAlternativeProps & react.RefAttributes<HTMLDivElement>>;
80
-
81
- export { type Alternative, AlternativesList, type AlternativesListProps, HeaderAlternative };
@@ -1,3 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { AuthContextType, AuthProvider, AuthProviderProps, AuthState, AuthTokens, AuthUser, ProtectedRoute, ProtectedRouteProps, PublicRoute, PublicRouteProps, SessionInfo, default, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from '../index.mjs';
@@ -1,3 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { AuthContextType, AuthProvider, AuthProviderProps, AuthState, AuthTokens, AuthUser, ProtectedRoute, ProtectedRouteProps, PublicRoute, PublicRouteProps, SessionInfo, default, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from '../index.mjs';
@@ -1,3 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { AuthContextType, AuthProvider, AuthProviderProps, AuthState, AuthTokens, AuthUser, ProtectedRoute, ProtectedRouteProps, PublicRoute, PublicRouteProps, SessionInfo, default, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from '../index.mjs';
@@ -1,3 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { AuthContextType, AuthProvider, AuthProviderProps, AuthState, AuthTokens, AuthUser, ProtectedRoute, ProtectedRouteProps, PublicRoute, PublicRouteProps, SessionInfo, default, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from '../index.mjs';
@@ -1,326 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { ReactNode, ComponentType } from 'react';
3
-
4
- /**
5
- * Interface for basic authentication tokens
6
- *
7
- * @interface AuthTokens
8
- * @property {string} token - Main authentication token
9
- * @property {string} refreshToken - Token used to refresh the main token
10
- * @property {unknown} [key] - Additional properties that can be included
11
- */
12
- interface AuthTokens {
13
- token: string;
14
- refreshToken: string;
15
- [key: string]: unknown;
16
- }
17
- /**
18
- * Interface for basic user information
19
- *
20
- * @interface AuthUser
21
- * @property {string} id - Unique user identifier
22
- * @property {string} [name] - Optional user name
23
- * @property {string} [email] - Optional user email
24
- * @property {unknown} [key] - Additional user properties
25
- */
26
- interface AuthUser {
27
- id: string;
28
- name?: string;
29
- email?: string;
30
- [key: string]: unknown;
31
- }
32
- /**
33
- * Interface for basic session information
34
- *
35
- * @interface SessionInfo
36
- * @property {string} [institutionId] - Optional institution identifier
37
- * @property {string} [profileId] - Optional profile identifier
38
- * @property {string} [schoolId] - Optional school identifier
39
- * @property {string} [schoolYearId] - Optional school year identifier
40
- * @property {string} [classId] - Optional class identifier
41
- * @property {unknown} [key] - Additional session properties
42
- */
43
- interface SessionInfo {
44
- institutionId?: string;
45
- profileId?: string;
46
- schoolId?: string;
47
- schoolYearId?: string;
48
- classId?: string;
49
- [key: string]: unknown;
50
- }
51
- /**
52
- * Interface for authentication state
53
- *
54
- * @interface AuthState
55
- * @property {boolean} isAuthenticated - Whether the user is authenticated
56
- * @property {boolean} isLoading - Whether authentication is being checked
57
- * @property {AuthUser | null} [user] - Current user information
58
- * @property {SessionInfo | null} [sessionInfo] - Current session information
59
- * @property {AuthTokens | null} [tokens] - Current authentication tokens
60
- */
61
- interface AuthState {
62
- isAuthenticated: boolean;
63
- isLoading: boolean;
64
- user?: AuthUser | null;
65
- sessionInfo?: SessionInfo | null;
66
- tokens?: AuthTokens | null;
67
- }
68
- /**
69
- * Interface for authentication context functions and state
70
- *
71
- * @interface AuthContextType
72
- * @extends {AuthState}
73
- * @property {() => Promise<boolean>} checkAuth - Function to check authentication status
74
- * @property {() => void} signOut - Function to sign out the user
75
- */
76
- interface AuthContextType extends AuthState {
77
- checkAuth: () => Promise<boolean>;
78
- signOut: () => void;
79
- }
80
- /**
81
- * Props for the AuthProvider component
82
- *
83
- * @interface AuthProviderProps
84
- * @property {ReactNode} children - Child components
85
- * @property {() => Promise<boolean> | boolean} [checkAuthFn] - Function to check if user is authenticated
86
- * @property {() => void} [signOutFn] - Function to handle logout
87
- * @property {Partial<AuthState>} [initialAuthState] - Initial authentication state
88
- * @property {() => AuthUser | null | undefined} [getUserFn] - Function to get user data
89
- * @property {() => SessionInfo | null | undefined} [getSessionFn] - Function to get session info
90
- * @property {() => AuthTokens | null | undefined} [getTokensFn] - Function to get tokens
91
- */
92
- interface AuthProviderProps {
93
- children: ReactNode;
94
- /**
95
- * Função para verificar se o usuário está autenticado
96
- * Deve retornar uma Promise<boolean>
97
- */
98
- checkAuthFn?: () => Promise<boolean> | boolean;
99
- /**
100
- * Função para fazer logout
101
- */
102
- signOutFn?: () => void;
103
- /**
104
- * Estado de autenticação inicial
105
- */
106
- initialAuthState?: Partial<AuthState>;
107
- /**
108
- * Função para obter dados do usuário (opcional)
109
- */
110
- getUserFn?: () => AuthUser | null | undefined;
111
- /**
112
- * Função para obter informações da sessão (opcional)
113
- */
114
- getSessionFn?: () => SessionInfo | null | undefined;
115
- /**
116
- * Função para obter tokens (opcional)
117
- */
118
- getTokensFn?: () => AuthTokens | null | undefined;
119
- }
120
- /**
121
- * Authentication provider that manages global auth state
122
- * Compatible with any store (Zustand, Redux, Context, etc.)
123
- *
124
- * @param {AuthProviderProps} props - The provider props
125
- * @returns {JSX.Element} The provider component
126
- *
127
- * @example
128
- * ```tsx
129
- * <AuthProvider
130
- * checkAuthFn={checkAuthFunction}
131
- * signOutFn={signOutFunction}
132
- * getUserFn={getUserFunction}
133
- * >
134
- * <App />
135
- * </AuthProvider>
136
- * ```
137
- */
138
- declare const AuthProvider: ({ children, checkAuthFn, signOutFn, initialAuthState, getUserFn, getSessionFn, getTokensFn, }: AuthProviderProps) => react_jsx_runtime.JSX.Element;
139
- /**
140
- * Hook to use the authentication context
141
- *
142
- * @throws {Error} When used outside of AuthProvider
143
- * @returns {AuthContextType} The authentication context
144
- *
145
- * @example
146
- * ```tsx
147
- * const { isAuthenticated, user, signOut } = useAuth();
148
- * ```
149
- */
150
- declare const useAuth: () => AuthContextType;
151
- /**
152
- * Props for the ProtectedRoute component
153
- *
154
- * @interface ProtectedRouteProps
155
- * @property {ReactNode} children - Components to render when authenticated
156
- * @property {string} [redirectTo] - Path to redirect when not authenticated (default: '/')
157
- * @property {ReactNode} [loadingComponent] - Custom loading component
158
- * @property {(authState: AuthState) => boolean} [additionalCheck] - Additional authentication check
159
- */
160
- interface ProtectedRouteProps {
161
- children: ReactNode;
162
- /**
163
- * Path para redirecionamento quando não autenticado
164
- */
165
- redirectTo?: string;
166
- /**
167
- * Componente de loading personalizado
168
- */
169
- loadingComponent?: ReactNode;
170
- /**
171
- * Função adicional de verificação (ex: verificar permissões específicas)
172
- */
173
- additionalCheck?: (authState: AuthState) => boolean;
174
- }
175
- /**
176
- * Componente para proteger rotas que requerem autenticação
177
- *
178
- * @example
179
- * ```tsx
180
- * <ProtectedRoute redirectTo="/login">
181
- * <PainelPage />
182
- * </ProtectedRoute>
183
- * ```
184
- */
185
- declare const ProtectedRoute: ({ children, redirectTo, loadingComponent, additionalCheck, }: ProtectedRouteProps) => react_jsx_runtime.JSX.Element | null;
186
- /**
187
- * Props for the PublicRoute component
188
- *
189
- * @interface PublicRouteProps
190
- * @property {ReactNode} children - Components to render
191
- * @property {string} [redirectTo] - Path to redirect to (default: '/painel')
192
- * @property {boolean} [redirectIfAuthenticated] - Whether to redirect if authenticated
193
- * @property {boolean} [checkAuthBeforeRender] - Whether to check auth before rendering
194
- */
195
- interface PublicRouteProps {
196
- children: ReactNode;
197
- /**
198
- * Path para redirecionamento
199
- */
200
- redirectTo?: string;
201
- /**
202
- * Se deve redirecionar quando usuário estiver autenticado
203
- */
204
- redirectIfAuthenticated?: boolean;
205
- /**
206
- * Se deve verificar autenticação antes de renderizar
207
- */
208
- checkAuthBeforeRender?: boolean;
209
- }
210
- /**
211
- * Componente para rotas públicas (login, recuperação de senha, etc.)
212
- * Opcionalmente redireciona se o usuário já estiver autenticado
213
- *
214
- * @example
215
- * ```tsx
216
- * <PublicRoute redirectTo="/painel" redirectIfAuthenticated={true}>
217
- * <LoginPage />
218
- * </PublicRoute>
219
- * ```
220
- */
221
- declare const PublicRoute: ({ children, redirectTo, redirectIfAuthenticated, checkAuthBeforeRender, }: PublicRouteProps) => react_jsx_runtime.JSX.Element;
222
- /**
223
- * Higher-Order Component to protect components with authentication
224
- *
225
- * @template P - Component props type
226
- * @param {ComponentType<P>} Component - Component to wrap with authentication
227
- * @param {Omit<ProtectedRouteProps, 'children'>} [options] - Protection options
228
- * @returns {(props: P) => JSX.Element} Wrapped component
229
- *
230
- * @example
231
- * ```tsx
232
- * const ProtectedComponent = withAuth(MyComponent, {
233
- * redirectTo: "/login",
234
- * loadingComponent: <CustomSpinner />
235
- * });
236
- * ```
237
- */
238
- declare const withAuth: <P extends object>(Component: ComponentType<P>, options?: Omit<ProtectedRouteProps, "children">) => (props: P) => react_jsx_runtime.JSX.Element;
239
- /**
240
- * Hook for authentication guard with custom checks
241
- *
242
- * @param {object} [options] - Guard options
243
- * @param {boolean} [options.requireAuth=true] - Whether authentication is required
244
- * @param {(authState: AuthState) => boolean} [options.customCheck] - Custom check function
245
- * @returns {object} Guard result with canAccess, isLoading, and authState
246
- *
247
- * @example
248
- * ```tsx
249
- * const { canAccess, isLoading } = useAuthGuard({
250
- * requireAuth: true,
251
- * customCheck: (authState) => authState.user?.role === 'admin'
252
- * });
253
- * ```
254
- */
255
- declare const useAuthGuard: (options?: {
256
- requireAuth?: boolean;
257
- customCheck?: (authState: AuthState) => boolean;
258
- }) => {
259
- canAccess: boolean;
260
- isLoading: boolean;
261
- authState: AuthContextType;
262
- };
263
- /**
264
- * Hook to check authentication on specific routes
265
- * Useful for conditional checks within components
266
- *
267
- * @param {string} [fallbackPath='/'] - Path to redirect when not authenticated
268
- * @returns {object} Object with isAuthenticated, isLoading, and redirectToLogin function
269
- *
270
- * @example
271
- * ```tsx
272
- * const { isAuthenticated, redirectToLogin } = useRouteAuth();
273
- *
274
- * if (!isAuthenticated) {
275
- * return redirectToLogin();
276
- * }
277
- * ```
278
- */
279
- declare const useRouteAuth: (fallbackPath?: string) => {
280
- isAuthenticated: boolean;
281
- isLoading: boolean;
282
- redirectToLogin: () => react_jsx_runtime.JSX.Element;
283
- };
284
- /**
285
- * Get the root domain from the current window location
286
- * Handles localhost, IP addresses, and subdomain cases, including Brazilian .com.br domains
287
- *
288
- * @returns {string} The root domain URL
289
- *
290
- * @example
291
- * ```typescript
292
- * // Domain examples
293
- * aluno.analiticaensino.com.br -> analiticaensino.com.br
294
- * subdomain.example.com -> example.com
295
- *
296
- * // IP address examples
297
- * 127.0.0.1:3000 -> 127.0.0.1:3000
298
- * [::1]:8080 -> [::1]:8080
299
- *
300
- * // Localhost examples
301
- * localhost:3000 -> localhost:3000
302
- * ```
303
- */
304
- declare const getRootDomain: () => string;
305
- declare const _default: {
306
- AuthProvider: ({ children, checkAuthFn, signOutFn, initialAuthState, getUserFn, getSessionFn, getTokensFn, }: AuthProviderProps) => react_jsx_runtime.JSX.Element;
307
- ProtectedRoute: ({ children, redirectTo, loadingComponent, additionalCheck, }: ProtectedRouteProps) => react_jsx_runtime.JSX.Element | null;
308
- PublicRoute: ({ children, redirectTo, redirectIfAuthenticated, checkAuthBeforeRender, }: PublicRouteProps) => react_jsx_runtime.JSX.Element;
309
- withAuth: <P extends object>(Component: ComponentType<P>, options?: Omit<ProtectedRouteProps, "children">) => (props: P) => react_jsx_runtime.JSX.Element;
310
- useAuth: () => AuthContextType;
311
- useAuthGuard: (options?: {
312
- requireAuth?: boolean;
313
- customCheck?: (authState: AuthState) => boolean;
314
- }) => {
315
- canAccess: boolean;
316
- isLoading: boolean;
317
- authState: AuthContextType;
318
- };
319
- useRouteAuth: (fallbackPath?: string) => {
320
- isAuthenticated: boolean;
321
- isLoading: boolean;
322
- redirectToLogin: () => react_jsx_runtime.JSX.Element;
323
- };
324
- };
325
-
326
- export { type AuthContextType, AuthProvider, type AuthProviderProps, type AuthState, type AuthTokens, type AuthUser, ProtectedRoute, type ProtectedRouteProps, PublicRoute, type PublicRouteProps, type SessionInfo, _default as default, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth };
@@ -1,43 +0,0 @@
1
- /**
2
- * Type definition for API client with get method
3
- *
4
- * @template T - Type extending object with get method
5
- */
6
- type ApiClient<T = unknown> = {
7
- get: (endpoint: string, config?: T) => Promise<unknown>;
8
- };
9
- /**
10
- * Creates a memoized API configuration object compatible with useUrlAuthentication
11
- *
12
- * This hook wraps an API client instance to create a consistent interface
13
- * for the useUrlAuthentication hook, ensuring proper memoization to prevent
14
- * unnecessary re-renders.
15
- *
16
- * @template T - Generic type for API client configuration
17
- * @param {ApiClient<T>} api - Axios instance or any API client with a get method
18
- * @returns {object} Memoized API configuration object with get method
19
- *
20
- * @example
21
- * ```typescript
22
- * import { useApiConfig } from 'analytica-frontend-lib';
23
- * import { useApi } from './services/apiService';
24
- *
25
- * function App() {
26
- * const api = useApi();
27
- * const apiConfig = useApiConfig(api);
28
- *
29
- * useUrlAuthentication({
30
- * setTokens,
31
- * setSessionInfo,
32
- * setSelectedProfile,
33
- * api: apiConfig,
34
- * endpoint: '/auth/session-info',
35
- * });
36
- * }
37
- * ```
38
- */
39
- declare function useApiConfig<T = unknown>(api: ApiClient<T>): {
40
- get: (endpoint: string, config: unknown) => Promise<unknown>;
41
- };
42
-
43
- export { useApiConfig };
@@ -1,3 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { AuthContextType, AuthProvider, AuthProviderProps, AuthState, AuthTokens, AuthUser, ProtectedRoute, ProtectedRouteProps, PublicRoute, PublicRouteProps, SessionInfo, default, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from '../index.mjs';
@@ -1,3 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { AuthContextType, AuthProvider, AuthProviderProps, AuthState, AuthTokens, AuthUser, ProtectedRoute, ProtectedRouteProps, PublicRoute, PublicRouteProps, SessionInfo, default, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from '../index.mjs';
@@ -1,3 +0,0 @@
1
- import 'react/jsx-runtime';
2
- import 'react';
3
- export { AuthContextType, AuthProvider, AuthProviderProps, AuthState, AuthTokens, AuthUser, ProtectedRoute, ProtectedRouteProps, PublicRoute, PublicRouteProps, SessionInfo, default, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from '../index.mjs';