analytica-frontend-lib 1.2.24 → 1.2.28

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 (446) hide show
  1. package/dist/Accordation/index.d.ts +4 -5
  2. package/dist/Accordation/index.d.ts.map +1 -0
  3. package/dist/Accordation/index.js.map +1 -1
  4. package/dist/Accordation/index.mjs.map +1 -1
  5. package/dist/ActivityDetails/index.css +19293 -0
  6. package/dist/ActivityDetails/index.css.map +1 -0
  7. package/dist/ActivityDetails/index.d.ts +31 -0
  8. package/dist/ActivityDetails/index.d.ts.map +1 -0
  9. package/dist/ActivityDetails/index.js +7359 -0
  10. package/dist/ActivityDetails/index.js.map +1 -0
  11. package/dist/ActivityDetails/index.mjs +7408 -0
  12. package/dist/ActivityDetails/index.mjs.map +1 -0
  13. package/dist/ActivityFilters/index.css +19293 -0
  14. package/dist/ActivityFilters/index.css.map +1 -0
  15. package/dist/ActivityFilters/index.d.ts +44 -0
  16. package/dist/ActivityFilters/index.d.ts.map +1 -0
  17. package/dist/ActivityFilters/index.js +4906 -0
  18. package/dist/ActivityFilters/index.js.map +1 -0
  19. package/dist/ActivityFilters/index.mjs +4921 -0
  20. package/dist/ActivityFilters/index.mjs.map +1 -0
  21. package/dist/Alert/index.d.ts +3 -5
  22. package/dist/Alert/index.d.ts.map +1 -0
  23. package/dist/Alert/index.js.map +1 -1
  24. package/dist/Alert/index.mjs.map +1 -1
  25. package/dist/AlertDialog/index.d.ts +2 -4
  26. package/dist/AlertDialog/index.d.ts.map +1 -0
  27. package/dist/AlertDialog/index.js.map +1 -1
  28. package/dist/AlertDialog/index.mjs.map +1 -1
  29. package/dist/AlertManager/index.css +127 -0
  30. package/dist/AlertManager/index.css.map +1 -1
  31. package/dist/AlertManager/index.d.ts +4 -8
  32. package/dist/AlertManager/index.d.ts.map +1 -0
  33. package/dist/AlertManager/index.js +23 -19
  34. package/dist/AlertManager/index.js.map +1 -1
  35. package/dist/AlertManager/index.mjs +45 -41
  36. package/dist/AlertManager/index.mjs.map +1 -1
  37. package/dist/AlertManagerView/index.d.ts +6 -10
  38. package/dist/AlertManagerView/index.d.ts.map +1 -0
  39. package/dist/AlertManagerView/index.js.map +1 -1
  40. package/dist/AlertManagerView/index.mjs.map +1 -1
  41. package/dist/Alternative/index.d.ts +6 -9
  42. package/dist/Alternative/index.d.ts.map +1 -0
  43. package/dist/Alternative/index.js.map +1 -1
  44. package/dist/Alternative/index.mjs.map +1 -1
  45. package/dist/Auth/AuthProvider/index.d.ts +324 -3
  46. package/dist/Auth/AuthProvider/index.d.ts.map +1 -0
  47. package/dist/Auth/ProtectedRoute/index.d.ts +324 -3
  48. package/dist/Auth/ProtectedRoute/index.d.ts.map +1 -0
  49. package/dist/Auth/PublicRoute/index.d.ts +324 -3
  50. package/dist/Auth/PublicRoute/index.d.ts.map +1 -0
  51. package/dist/Auth/getRootDomain/index.d.ts +324 -3
  52. package/dist/Auth/getRootDomain/index.d.ts.map +1 -0
  53. package/dist/Auth/index.d.ts +24 -26
  54. package/dist/Auth/index.d.ts.map +1 -0
  55. package/dist/Auth/useApiConfig/index.d.ts +3 -3
  56. package/dist/Auth/useApiConfig/index.d.ts.map +1 -0
  57. package/dist/Auth/useAuth/index.d.ts +324 -3
  58. package/dist/Auth/useAuth/index.d.ts.map +1 -0
  59. package/dist/Auth/useAuthGuard/index.d.ts +324 -3
  60. package/dist/Auth/useAuthGuard/index.d.ts.map +1 -0
  61. package/dist/Auth/useRouteAuth/index.d.ts +324 -3
  62. package/dist/Auth/useRouteAuth/index.d.ts.map +1 -0
  63. package/dist/Auth/useUrlAuthentication/index.d.ts +3 -4
  64. package/dist/Auth/useUrlAuthentication/index.d.ts.map +1 -0
  65. package/dist/Auth/withAuth/index.d.ts +324 -3
  66. package/dist/Auth/withAuth/index.d.ts.map +1 -0
  67. package/dist/Auth/zustandAuthAdapter/index.d.ts +2 -3
  68. package/dist/Auth/zustandAuthAdapter/index.d.ts.map +1 -0
  69. package/dist/Badge/index.d.ts +4 -6
  70. package/dist/Badge/index.d.ts.map +1 -0
  71. package/dist/Badge/index.js.map +1 -1
  72. package/dist/Badge/index.mjs.map +1 -1
  73. package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts +5 -7
  74. package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts.map +1 -0
  75. package/dist/BreadcrumbMenu/index.d.ts +4 -8
  76. package/dist/BreadcrumbMenu/index.d.ts.map +1 -0
  77. package/dist/BreadcrumbMenu/index.js.map +1 -1
  78. package/dist/BreadcrumbMenu/index.mjs.map +1 -1
  79. package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts +7 -10
  80. package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts.map +1 -0
  81. package/dist/BreadcrumbMenu/useUrlParams/index.d.ts +3 -4
  82. package/dist/BreadcrumbMenu/useUrlParams/index.d.ts.map +1 -0
  83. package/dist/Button/index.d.ts +4 -6
  84. package/dist/Button/index.d.ts.map +1 -0
  85. package/dist/Button/index.js.map +1 -1
  86. package/dist/Button/index.mjs.map +1 -1
  87. package/dist/Calendar/index.d.ts +9 -11
  88. package/dist/Calendar/index.d.ts.map +1 -0
  89. package/dist/Calendar/index.js.map +1 -1
  90. package/dist/Calendar/index.mjs.map +1 -1
  91. package/dist/Card/index.d.ts +17 -19
  92. package/dist/Card/index.d.ts.map +1 -0
  93. package/dist/Card/index.js.map +1 -1
  94. package/dist/Card/index.mjs.map +1 -1
  95. package/dist/CheckBox/index.d.ts +6 -8
  96. package/dist/CheckBox/index.d.ts.map +1 -0
  97. package/dist/CheckBox/index.js.map +1 -1
  98. package/dist/CheckBox/index.mjs.map +1 -1
  99. package/dist/Chips/index.d.ts +4 -6
  100. package/dist/Chips/index.d.ts.map +1 -0
  101. package/dist/Chips/index.js.map +1 -1
  102. package/dist/Chips/index.mjs.map +1 -1
  103. package/dist/CorrectActivityModal/index.d.ts +39 -0
  104. package/dist/CorrectActivityModal/index.d.ts.map +1 -0
  105. package/dist/CorrectActivityModal/index.js +3674 -0
  106. package/dist/CorrectActivityModal/index.js.map +1 -0
  107. package/dist/CorrectActivityModal/index.mjs +3689 -0
  108. package/dist/CorrectActivityModal/index.mjs.map +1 -0
  109. package/dist/Divider/index.d.ts +3 -5
  110. package/dist/Divider/index.d.ts.map +1 -0
  111. package/dist/Divider/index.js.map +1 -1
  112. package/dist/Divider/index.mjs.map +1 -1
  113. package/dist/DownloadButton/index.d.ts +5 -7
  114. package/dist/DownloadButton/index.d.ts.map +1 -0
  115. package/dist/DownloadButton/index.js.map +1 -1
  116. package/dist/DownloadButton/index.mjs.map +1 -1
  117. package/dist/DropdownMenu/index.d.ts +26 -28
  118. package/dist/DropdownMenu/index.d.ts.map +1 -0
  119. package/dist/DropdownMenu/index.js.map +1 -1
  120. package/dist/DropdownMenu/index.mjs.map +1 -1
  121. package/dist/EmptyState/index.d.ts +5 -7
  122. package/dist/EmptyState/index.d.ts.map +1 -0
  123. package/dist/EmptyState/index.js.map +1 -1
  124. package/dist/EmptyState/index.mjs.map +1 -1
  125. package/dist/FileAttachment/index.d.ts +72 -0
  126. package/dist/FileAttachment/index.d.ts.map +1 -0
  127. package/dist/FileAttachment/index.js +239 -0
  128. package/dist/FileAttachment/index.js.map +1 -0
  129. package/dist/FileAttachment/index.mjs +213 -0
  130. package/dist/FileAttachment/index.mjs.map +1 -0
  131. package/dist/IconButton/index.d.ts +6 -8
  132. package/dist/IconButton/index.d.ts.map +1 -0
  133. package/dist/IconButton/index.js.map +1 -1
  134. package/dist/IconButton/index.mjs.map +1 -1
  135. package/dist/IconRender/index.d.ts +5 -6
  136. package/dist/IconRender/index.d.ts.map +1 -0
  137. package/dist/IconRoundedButton/index.d.ts +4 -6
  138. package/dist/IconRoundedButton/index.d.ts.map +1 -0
  139. package/dist/IconRoundedButton/index.js.map +1 -1
  140. package/dist/IconRoundedButton/index.mjs.map +1 -1
  141. package/dist/Input/index.d.ts +5 -7
  142. package/dist/Input/index.d.ts.map +1 -0
  143. package/dist/LatexRenderer/index.d.ts +5 -6
  144. package/dist/LatexRenderer/index.d.ts.map +1 -0
  145. package/dist/LatexRenderer/index.js.map +1 -1
  146. package/dist/LatexRenderer/index.mjs.map +1 -1
  147. package/dist/LoadingModal/index.d.ts +3 -5
  148. package/dist/LoadingModal/index.d.ts.map +1 -0
  149. package/dist/Menu/index.d.ts +12 -14
  150. package/dist/Menu/index.d.ts.map +1 -0
  151. package/dist/Menu/index.js.map +1 -1
  152. package/dist/Menu/index.mjs.map +1 -1
  153. package/dist/Modal/index.d.ts +3 -5
  154. package/dist/Modal/index.d.ts.map +1 -0
  155. package/dist/Modal/index.js.map +1 -1
  156. package/dist/Modal/index.mjs.map +1 -1
  157. package/dist/Modal/utils/videoUtils/index.d.ts +4 -5
  158. package/dist/Modal/utils/videoUtils/index.d.ts.map +1 -0
  159. package/dist/MultipleChoice/index.d.ts +2 -4
  160. package/dist/MultipleChoice/index.d.ts.map +1 -0
  161. package/dist/MultipleChoice/index.js.map +1 -1
  162. package/dist/MultipleChoice/index.mjs.map +1 -1
  163. package/dist/NavButton/index.d.ts +5 -7
  164. package/dist/NavButton/index.d.ts.map +1 -0
  165. package/dist/NavButton/index.js.map +1 -1
  166. package/dist/NavButton/index.mjs.map +1 -1
  167. package/dist/NoSearchResult/index.d.ts +4 -6
  168. package/dist/NoSearchResult/index.d.ts.map +1 -0
  169. package/dist/NoSearchResult/index.js.map +1 -1
  170. package/dist/NoSearchResult/index.mjs.map +1 -1
  171. package/dist/NotFound/index.d.ts +4 -6
  172. package/dist/NotFound/index.d.ts.map +1 -0
  173. package/dist/NotFound/index.js.map +1 -1
  174. package/dist/NotFound/index.mjs.map +1 -1
  175. package/dist/NotificationCard/index.d.ts +218 -3
  176. package/dist/NotificationCard/index.d.ts.map +1 -0
  177. package/dist/NotificationCard/index.js.map +1 -1
  178. package/dist/NotificationCard/index.mjs.map +1 -1
  179. package/dist/ProgressBar/index.d.ts +4 -6
  180. package/dist/ProgressBar/index.d.ts.map +1 -0
  181. package/dist/ProgressBar/index.js.map +1 -1
  182. package/dist/ProgressBar/index.mjs.map +1 -1
  183. package/dist/ProgressCircle/index.d.ts +4 -6
  184. package/dist/ProgressCircle/index.d.ts.map +1 -0
  185. package/dist/ProgressCircle/index.js.map +1 -1
  186. package/dist/ProgressCircle/index.mjs.map +1 -1
  187. package/dist/Quiz/index.d.ts +19 -23
  188. package/dist/Quiz/index.d.ts.map +1 -0
  189. package/dist/Quiz/index.js.map +1 -1
  190. package/dist/Quiz/index.mjs.map +1 -1
  191. package/dist/Quiz/useQuizStore/index.d.ts +14 -17
  192. package/dist/Quiz/useQuizStore/index.d.ts.map +1 -0
  193. package/dist/Radio/index.d.ts +14 -15
  194. package/dist/Radio/index.d.ts.map +1 -0
  195. package/dist/Radio/index.js.map +1 -1
  196. package/dist/Radio/index.mjs.map +1 -1
  197. package/dist/Search/index.d.ts +4 -6
  198. package/dist/Search/index.d.ts.map +1 -0
  199. package/dist/Search/index.js.map +1 -1
  200. package/dist/Search/index.mjs.map +1 -1
  201. package/dist/Select/index.d.ts +12 -14
  202. package/dist/Select/index.d.ts.map +1 -0
  203. package/dist/Select/index.js.map +1 -1
  204. package/dist/Select/index.mjs.map +1 -1
  205. package/dist/SelectionButton/index.d.ts +5 -7
  206. package/dist/SelectionButton/index.d.ts.map +1 -0
  207. package/dist/SelectionButton/index.js.map +1 -1
  208. package/dist/SelectionButton/index.mjs.map +1 -1
  209. package/dist/Skeleton/index.d.ts +10 -12
  210. package/dist/Skeleton/index.d.ts.map +1 -0
  211. package/dist/Skeleton/index.js.map +1 -1
  212. package/dist/Skeleton/index.mjs.map +1 -1
  213. package/dist/StatisticsCard/index.d.ts +3 -5
  214. package/dist/StatisticsCard/index.d.ts.map +1 -0
  215. package/dist/StatisticsCard/index.js.map +1 -1
  216. package/dist/StatisticsCard/index.mjs.map +1 -1
  217. package/dist/Stepper/index.d.ts +6 -8
  218. package/dist/Stepper/index.d.ts.map +1 -0
  219. package/dist/Stepper/index.js.map +1 -1
  220. package/dist/Stepper/index.mjs.map +1 -1
  221. package/dist/SubjectInfo/index.d.ts +17 -2
  222. package/dist/SubjectInfo/index.d.ts.map +1 -0
  223. package/dist/Support/TicketModal/index.d.ts +14 -0
  224. package/dist/Support/TicketModal/index.d.ts.map +1 -0
  225. package/dist/Support/TicketModal/index.js +1279 -0
  226. package/dist/Support/TicketModal/index.js.map +1 -0
  227. package/dist/Support/TicketModal/index.mjs +1248 -0
  228. package/dist/Support/TicketModal/index.mjs.map +1 -0
  229. package/dist/Support/index.d.ts +8 -0
  230. package/dist/Support/index.d.ts.map +1 -0
  231. package/dist/Support/index.js +2686 -0
  232. package/dist/Support/index.js.map +1 -0
  233. package/dist/Support/index.mjs +2676 -0
  234. package/dist/Support/index.mjs.map +1 -0
  235. package/dist/Table/TablePagination/index.d.ts +4 -6
  236. package/dist/Table/TablePagination/index.d.ts.map +1 -0
  237. package/dist/Table/TablePagination/index.js.map +1 -1
  238. package/dist/Table/TablePagination/index.mjs.map +1 -1
  239. package/dist/Table/index.d.ts +18 -19
  240. package/dist/Table/index.d.ts.map +1 -0
  241. package/dist/Table/index.js.map +1 -1
  242. package/dist/Table/index.mjs.map +1 -1
  243. package/dist/TableProvider/index.css +127 -0
  244. package/dist/TableProvider/index.css.map +1 -1
  245. package/dist/TableProvider/index.d.ts +198 -4
  246. package/dist/TableProvider/index.d.ts.map +1 -0
  247. package/dist/TableProvider/index.js +23 -19
  248. package/dist/TableProvider/index.js.map +1 -1
  249. package/dist/TableProvider/index.mjs +45 -41
  250. package/dist/TableProvider/index.mjs.map +1 -1
  251. package/dist/Text/index.d.ts +4 -6
  252. package/dist/Text/index.d.ts.map +1 -0
  253. package/dist/Text/index.js.map +1 -1
  254. package/dist/Text/index.mjs.map +1 -1
  255. package/dist/TextArea/index.d.ts +6 -8
  256. package/dist/TextArea/index.d.ts.map +1 -0
  257. package/dist/TextArea/index.js.map +1 -1
  258. package/dist/TextArea/index.mjs.map +1 -1
  259. package/dist/ThemeToggle/index.d.ts +4 -8
  260. package/dist/ThemeToggle/index.d.ts.map +1 -0
  261. package/dist/ThemeToggle/index.js.map +1 -1
  262. package/dist/ThemeToggle/index.mjs.map +1 -1
  263. package/dist/Toast/ToastStore/index.d.ts +3 -5
  264. package/dist/Toast/ToastStore/index.d.ts.map +1 -0
  265. package/dist/Toast/Toaster/index.d.ts +4 -6
  266. package/dist/Toast/Toaster/index.d.ts.map +1 -0
  267. package/dist/Toast/Toaster/index.js.map +1 -1
  268. package/dist/Toast/Toaster/index.mjs.map +1 -1
  269. package/dist/Toast/index.d.ts +3 -5
  270. package/dist/Toast/index.d.ts.map +1 -0
  271. package/dist/Toast/index.js.map +1 -1
  272. package/dist/Toast/index.mjs.map +1 -1
  273. package/dist/VideoPlayer/index.d.ts +4 -6
  274. package/dist/VideoPlayer/index.d.ts.map +1 -0
  275. package/dist/VideoPlayer/index.js.map +1 -1
  276. package/dist/VideoPlayer/index.mjs.map +1 -1
  277. package/dist/Whiteboard/index.d.ts +5 -7
  278. package/dist/Whiteboard/index.d.ts.map +1 -0
  279. package/dist/Whiteboard/index.js.map +1 -1
  280. package/dist/Whiteboard/index.mjs.map +1 -1
  281. package/dist/assets/icons/subjects/BookOpenText.d.ts +5 -0
  282. package/dist/assets/icons/subjects/BookOpenText.d.ts.map +1 -0
  283. package/dist/assets/icons/subjects/ChatEN.d.ts +5 -0
  284. package/dist/assets/icons/subjects/ChatEN.d.ts.map +1 -0
  285. package/dist/assets/icons/subjects/ChatES.d.ts +5 -0
  286. package/dist/assets/icons/subjects/ChatES.d.ts.map +1 -0
  287. package/dist/assets/icons/subjects/ChatPT.d.ts +5 -0
  288. package/dist/assets/icons/subjects/ChatPT.d.ts.map +1 -0
  289. package/dist/assets/icons/subjects/HeadCircuit.d.ts +5 -0
  290. package/dist/assets/icons/subjects/HeadCircuit.d.ts.map +1 -0
  291. package/dist/assets/icons/subjects/Microscope.d.ts +5 -0
  292. package/dist/assets/icons/subjects/Microscope.d.ts.map +1 -0
  293. package/dist/enums/SubjectEnum.d.ts +19 -0
  294. package/dist/enums/SubjectEnum.d.ts.map +1 -0
  295. package/dist/hooks/useAppContent.d.ts +55 -0
  296. package/dist/hooks/useAppContent.d.ts.map +1 -0
  297. package/dist/hooks/useAppInitialization.d.ts +21 -0
  298. package/dist/hooks/useAppInitialization.d.ts.map +1 -0
  299. package/dist/hooks/useInstitution.d.ts +2 -0
  300. package/dist/hooks/useInstitution.d.ts.map +1 -0
  301. package/dist/hooks/useMobile/index.d.ts +4 -5
  302. package/dist/hooks/useMobile/index.d.ts.map +1 -0
  303. package/dist/hooks/useNotificationStore.d.ts +34 -0
  304. package/dist/hooks/useNotificationStore.d.ts.map +1 -0
  305. package/dist/hooks/useNotifications.d.ts +129 -0
  306. package/dist/hooks/useNotifications.d.ts.map +1 -0
  307. package/dist/hooks/useScreen.d.ts +38 -0
  308. package/dist/hooks/useScreen.d.ts.map +1 -0
  309. package/dist/hooks/useTheme/index.d.ts +4 -7
  310. package/dist/hooks/useTheme/index.d.ts.map +1 -0
  311. package/dist/index.css +127 -0
  312. package/dist/index.css.map +1 -1
  313. package/dist/index.d.ts +127 -783
  314. package/dist/index.d.ts.map +1 -0
  315. package/dist/index.js +9257 -6883
  316. package/dist/index.js.map +1 -1
  317. package/dist/index.mjs +9330 -6973
  318. package/dist/index.mjs.map +1 -1
  319. package/dist/store/appStore.d.ts +27 -0
  320. package/dist/store/appStore.d.ts.map +1 -0
  321. package/dist/store/authStore.d.ts +75 -0
  322. package/dist/store/authStore.d.ts.map +1 -0
  323. package/dist/store/notificationStore.d.ts +89 -0
  324. package/dist/store/notificationStore.d.ts.map +1 -0
  325. package/dist/{themeStore-P2X64zC-.d.mts → store/themeStore.d.ts} +8 -12
  326. package/dist/store/themeStore.d.ts.map +1 -0
  327. package/dist/styles.css +127 -0
  328. package/dist/styles.css.map +1 -1
  329. package/dist/suporthistory-W5LBGAUP.png +0 -0
  330. package/dist/types/activityDetails.d.ts +127 -0
  331. package/dist/types/activityDetails.d.ts.map +1 -0
  332. package/dist/types/activityFilters.d.ts +51 -0
  333. package/dist/types/activityFilters.d.ts.map +1 -0
  334. package/dist/types/auth.d.ts +53 -0
  335. package/dist/types/auth.d.ts.map +1 -0
  336. package/dist/types/notifications.d.ts +199 -0
  337. package/dist/types/notifications.d.ts.map +1 -0
  338. package/dist/types/questionTypes.d.ts +6 -0
  339. package/dist/types/questionTypes.d.ts.map +1 -0
  340. package/dist/types/studentActivityCorrection.d.ts +57 -0
  341. package/dist/types/studentActivityCorrection.d.ts.map +1 -0
  342. package/dist/types/support/index.d.ts +111 -0
  343. package/dist/types/support/index.d.ts.map +1 -0
  344. package/dist/types/support/index.js +115 -0
  345. package/dist/types/support/index.js.map +1 -0
  346. package/dist/types/support/index.mjs +84 -0
  347. package/dist/types/support/index.mjs.map +1 -0
  348. package/dist/utils/activityFilters.d.ts +23 -0
  349. package/dist/utils/activityFilters.d.ts.map +1 -0
  350. package/dist/utils/dropdown.d.ts +12 -0
  351. package/dist/utils/dropdown.d.ts.map +1 -0
  352. package/dist/utils/index.d.ts +6 -19
  353. package/dist/utils/index.d.ts.map +1 -0
  354. package/dist/utils/index.js +24 -2
  355. package/dist/utils/index.js.map +1 -1
  356. package/dist/utils/index.mjs +20 -1
  357. package/dist/utils/index.mjs.map +1 -1
  358. package/dist/utils/keys.d.ts +24 -0
  359. package/dist/utils/keys.d.ts.map +1 -0
  360. package/package.json +21 -4
  361. package/dist/Accordation/index.d.mts +0 -15
  362. package/dist/Alert/index.d.mts +0 -13
  363. package/dist/AlertDialog/index.d.mts +0 -36
  364. package/dist/AlertManager/index.d.mts +0 -17
  365. package/dist/AlertManagerView/index.d.mts +0 -31
  366. package/dist/Alternative/index.d.mts +0 -81
  367. package/dist/Auth/AuthProvider/index.d.mts +0 -3
  368. package/dist/Auth/ProtectedRoute/index.d.mts +0 -3
  369. package/dist/Auth/PublicRoute/index.d.mts +0 -3
  370. package/dist/Auth/getRootDomain/index.d.mts +0 -3
  371. package/dist/Auth/index.d.mts +0 -326
  372. package/dist/Auth/useApiConfig/index.d.mts +0 -43
  373. package/dist/Auth/useAuth/index.d.mts +0 -3
  374. package/dist/Auth/useAuthGuard/index.d.mts +0 -3
  375. package/dist/Auth/useRouteAuth/index.d.mts +0 -3
  376. package/dist/Auth/useUrlAuthentication/index.d.mts +0 -69
  377. package/dist/Auth/withAuth/index.d.mts +0 -3
  378. package/dist/Auth/zustandAuthAdapter/index.d.mts +0 -75
  379. package/dist/Badge/index.d.mts +0 -46
  380. package/dist/BreadcrumbMenu/breadcrumbStore/index.d.mts +0 -77
  381. package/dist/BreadcrumbMenu/index.d.mts +0 -31
  382. package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.mts +0 -48
  383. package/dist/BreadcrumbMenu/useUrlParams/index.d.mts +0 -28
  384. package/dist/Button/index.d.mts +0 -45
  385. package/dist/Calendar/index.d.mts +0 -60
  386. package/dist/Card/index.d.mts +0 -150
  387. package/dist/CheckBox/index.d.mts +0 -74
  388. package/dist/CheckBoxGroup-9n5C0OH4.d.mts +0 -24
  389. package/dist/CheckBoxGroup-9n5C0OH4.d.ts +0 -24
  390. package/dist/Chips/index.d.mts +0 -41
  391. package/dist/Divider/index.d.mts +0 -32
  392. package/dist/DownloadButton/index.d.mts +0 -46
  393. package/dist/DropdownMenu/index.d.mts +0 -82
  394. package/dist/EmptyState/index.d.mts +0 -65
  395. package/dist/IconButton/index.d.mts +0 -76
  396. package/dist/IconRender/index.d.mts +0 -36
  397. package/dist/IconRoundedButton/index.d.mts +0 -34
  398. package/dist/Input/index.d.mts +0 -27
  399. package/dist/LatexRenderer/index.d.mts +0 -50
  400. package/dist/LoadingModal/index.d.mts +0 -11
  401. package/dist/Menu/index.d.mts +0 -48
  402. package/dist/Modal/index.d.mts +0 -76
  403. package/dist/Modal/utils/videoUtils/index.d.mts +0 -28
  404. package/dist/MultipleChoice/index.d.mts +0 -20
  405. package/dist/NavButton/index.d.mts +0 -57
  406. package/dist/NoSearchResult/index.d.mts +0 -37
  407. package/dist/NotFound/index.d.mts +0 -58
  408. package/dist/NotificationCard/index.d.mts +0 -3
  409. package/dist/NotificationCard-4GgB0Nsf.d.mts +0 -417
  410. package/dist/NotificationCard-4GgB0Nsf.d.ts +0 -417
  411. package/dist/ProgressBar/index.d.mts +0 -95
  412. package/dist/ProgressCircle/index.d.mts +0 -60
  413. package/dist/Quiz/index.d.mts +0 -55
  414. package/dist/Quiz/useQuizStore/index.d.mts +0 -258
  415. package/dist/Radio/index.d.mts +0 -203
  416. package/dist/Search/index.d.mts +0 -27
  417. package/dist/Select/index.d.mts +0 -59
  418. package/dist/SelectionButton/index.d.mts +0 -57
  419. package/dist/Skeleton/index.d.mts +0 -40
  420. package/dist/StatisticsCard/index.d.mts +0 -79
  421. package/dist/Stepper/index.d.mts +0 -169
  422. package/dist/SubjectInfo/index.d.mts +0 -2
  423. package/dist/SubjectInfo-Dvt0OodP.d.mts +0 -37
  424. package/dist/SubjectInfo-Dvt0OodP.d.ts +0 -37
  425. package/dist/Table/TablePagination/index.d.mts +0 -64
  426. package/dist/Table/index.d.mts +0 -93
  427. package/dist/TableProvider/index.d.mts +0 -4
  428. package/dist/TableProvider-BnAnv3OV.d.mts +0 -239
  429. package/dist/TableProvider-GfPlLqzg.d.ts +0 -239
  430. package/dist/Text/index.d.mts +0 -58
  431. package/dist/TextArea/index.d.mts +0 -74
  432. package/dist/ThemeToggle/index.d.mts +0 -12
  433. package/dist/Toast/ToastStore/index.d.mts +0 -19
  434. package/dist/Toast/Toaster/index.d.mts +0 -16
  435. package/dist/Toast/index.d.mts +0 -17
  436. package/dist/VideoPlayer/index.d.mts +0 -52
  437. package/dist/Whiteboard/index.d.mts +0 -34
  438. package/dist/hooks/useMobile/index.d.mts +0 -29
  439. package/dist/hooks/useTheme/index.d.mts +0 -17
  440. package/dist/index.d.mts +0 -783
  441. package/dist/styles.d.mts +0 -2
  442. package/dist/styles.d.ts +0 -2
  443. package/dist/themeStore-P2X64zC-.d.ts +0 -79
  444. package/dist/types-DqZRjqxh.d.ts +0 -67
  445. package/dist/types-pd3QVhSu.d.mts +0 -67
  446. package/dist/utils/index.d.mts +0 -27
@@ -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';
@@ -1,69 +0,0 @@
1
- /**
2
- * Options interface for the useUrlAuthentication hook
3
- *
4
- * @template Tokens - Type for authentication tokens
5
- * @template Session - Type for session information
6
- * @template Profile - Type for profile information
7
- * @template User - Type for user information
8
- *
9
- * @interface UseUrlAuthOptions
10
- * @property {(tokens: Tokens) => void} setTokens - Function to set authentication tokens
11
- * @property {(session: Session) => void} setSessionInfo - Function to set session information
12
- * @property {(profile: Profile) => void} [setSelectedProfile] - Optional function to set selected profile
13
- * @property {(user: User) => void} [setUser] - Optional function to set user data
14
- * @property {object} api - API instance with get method
15
- * @property {(endpoint: string, config: unknown) => Promise<unknown>} api.get - API get method
16
- * @property {string} endpoint - API endpoint to fetch session data
17
- * @property {(searchParams: URLSearchParams) => object} [extractParams] - Custom parameter extraction function
18
- * @property {() => void} [clearParamsFromURL] - Function to clear URL parameters after processing
19
- * @property {number} [maxRetries] - Maximum number of retry attempts (default: 3)
20
- * @property {number} [retryDelay] - Base delay between retries in milliseconds (default: 1000)
21
- * @property {(error: unknown) => void} [onError] - Error handler callback
22
- */
23
- interface UseUrlAuthOptions<Tokens = unknown, Session = unknown, Profile = unknown, User = unknown> {
24
- setTokens: (tokens: Tokens) => void;
25
- setSessionInfo: (session: Session) => void;
26
- setSelectedProfile?: (profile: Profile) => void;
27
- setUser?: (user: User) => void;
28
- api: {
29
- get: (endpoint: string, config: unknown) => Promise<unknown>;
30
- };
31
- endpoint: string;
32
- extractParams?: (searchParams: URLSearchParams) => {
33
- sessionId: string;
34
- token: string;
35
- refreshToken: string;
36
- };
37
- clearParamsFromURL?: () => void;
38
- maxRetries?: number;
39
- retryDelay?: number;
40
- onError?: (error: unknown) => void;
41
- }
42
- /**
43
- * Hook for handling URL-based authentication
44
- * Extracts authentication parameters from URL and processes them
45
- *
46
- * @template Tokens - Type for authentication tokens
47
- * @template Session - Type for session information
48
- * @template Profile - Type for profile information
49
- * @template User - Type for user information
50
- *
51
- * @param {UseUrlAuthOptions<Tokens, Session, Profile, User>} options - Configuration options
52
- * @returns {void}
53
- *
54
- * @example
55
- * ```typescript
56
- * useUrlAuthentication({
57
- * setTokens: (tokens) => authStore.setTokens(tokens),
58
- * setSessionInfo: (session) => authStore.setSessionInfo(session),
59
- * setSelectedProfile: (profile) => authStore.setProfile(profile),
60
- * setUser: (user) => authStore.setUser(user),
61
- * api: apiInstance,
62
- * endpoint: '/auth/session',
63
- * clearParamsFromURL: () => navigate('/', { replace: true })
64
- * });
65
- * ```
66
- */
67
- declare function useUrlAuthentication<Tokens = unknown, Session = unknown, Profile = unknown, User = unknown>(options: UseUrlAuthOptions<Tokens, Session, Profile, User>): void;
68
-
69
- export { type UseUrlAuthOptions, useUrlAuthentication };
@@ -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,75 +0,0 @@
1
- /**
2
- * Generic adapter for integrating AuthProvider with Zustand stores
3
- * Users should import this file and pass their store instance
4
- *
5
- * @template S - Zustand store type that contains auth-related state
6
- * @param {object} useAuthStore - Zustand store hook with getState method
7
- * @param {() => S} useAuthStore.getState - Function to get current store state
8
- * @returns {object} Adapter object with auth functions
9
- *
10
- * @example
11
- * ```typescript
12
- * // Define your Zustand store type
13
- * interface AuthStore {
14
- * sessionInfo?: SessionInfo;
15
- * tokens?: AuthTokens;
16
- * user?: AuthUser;
17
- * signOut: () => void;
18
- * }
19
- *
20
- * // Create the adapter
21
- * const authAdapter = createZustandAuthAdapter(useAuthStore);
22
- *
23
- * // Use with AuthProvider
24
- * <AuthProvider
25
- * checkAuthFn={authAdapter.checkAuth}
26
- * signOutFn={authAdapter.signOut}
27
- * getUserFn={authAdapter.getUser}
28
- * getSessionFn={authAdapter.getSessionInfo}
29
- * getTokensFn={authAdapter.getTokens}
30
- * >
31
- * <App />
32
- * </AuthProvider>
33
- * ```
34
- */
35
- declare function createZustandAuthAdapter<S extends {
36
- sessionInfo?: unknown;
37
- tokens?: unknown;
38
- user?: unknown;
39
- signOut?: () => void;
40
- }>(useAuthStore: {
41
- getState: () => S;
42
- }): {
43
- /**
44
- * Check if the user is authenticated based on sessionInfo and tokens
45
- *
46
- * @returns {Promise<boolean>} Promise that resolves to authentication status
47
- */
48
- checkAuth: () => Promise<boolean>;
49
- /**
50
- * Get the current user from the store
51
- *
52
- * @returns {unknown} Current user data from the store
53
- */
54
- getUser: () => unknown;
55
- /**
56
- * Get the current session information from the store
57
- *
58
- * @returns {unknown} Current session info from the store
59
- */
60
- getSessionInfo: () => unknown;
61
- /**
62
- * Get the current authentication tokens from the store
63
- *
64
- * @returns {unknown} Current tokens from the store
65
- */
66
- getTokens: () => unknown;
67
- /**
68
- * Sign out the user by calling the store's signOut function if available
69
- *
70
- * @returns {void}
71
- */
72
- signOut: () => void;
73
- };
74
-
75
- export { createZustandAuthAdapter };