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.
- package/dist/Accordation/index.d.ts +4 -5
- package/dist/Accordation/index.d.ts.map +1 -0
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/ActivityDetails/index.css +19293 -0
- package/dist/ActivityDetails/index.css.map +1 -0
- package/dist/ActivityDetails/index.d.ts +31 -0
- package/dist/ActivityDetails/index.d.ts.map +1 -0
- package/dist/ActivityDetails/index.js +7359 -0
- package/dist/ActivityDetails/index.js.map +1 -0
- package/dist/ActivityDetails/index.mjs +7408 -0
- package/dist/ActivityDetails/index.mjs.map +1 -0
- package/dist/ActivityFilters/index.css +19293 -0
- package/dist/ActivityFilters/index.css.map +1 -0
- package/dist/ActivityFilters/index.d.ts +44 -0
- package/dist/ActivityFilters/index.d.ts.map +1 -0
- package/dist/ActivityFilters/index.js +4906 -0
- package/dist/ActivityFilters/index.js.map +1 -0
- package/dist/ActivityFilters/index.mjs +4921 -0
- package/dist/ActivityFilters/index.mjs.map +1 -0
- package/dist/Alert/index.d.ts +3 -5
- package/dist/Alert/index.d.ts.map +1 -0
- package/dist/Alert/index.js.map +1 -1
- package/dist/Alert/index.mjs.map +1 -1
- package/dist/AlertDialog/index.d.ts +2 -4
- package/dist/AlertDialog/index.d.ts.map +1 -0
- package/dist/AlertDialog/index.js.map +1 -1
- package/dist/AlertDialog/index.mjs.map +1 -1
- package/dist/AlertManager/index.css +127 -0
- package/dist/AlertManager/index.css.map +1 -1
- package/dist/AlertManager/index.d.ts +4 -8
- package/dist/AlertManager/index.d.ts.map +1 -0
- package/dist/AlertManager/index.js +23 -19
- package/dist/AlertManager/index.js.map +1 -1
- package/dist/AlertManager/index.mjs +45 -41
- package/dist/AlertManager/index.mjs.map +1 -1
- package/dist/AlertManagerView/index.d.ts +6 -10
- package/dist/AlertManagerView/index.d.ts.map +1 -0
- package/dist/AlertManagerView/index.js.map +1 -1
- package/dist/AlertManagerView/index.mjs.map +1 -1
- package/dist/Alternative/index.d.ts +6 -9
- package/dist/Alternative/index.d.ts.map +1 -0
- package/dist/Alternative/index.js.map +1 -1
- package/dist/Alternative/index.mjs.map +1 -1
- package/dist/Auth/AuthProvider/index.d.ts +324 -3
- package/dist/Auth/AuthProvider/index.d.ts.map +1 -0
- package/dist/Auth/ProtectedRoute/index.d.ts +324 -3
- package/dist/Auth/ProtectedRoute/index.d.ts.map +1 -0
- package/dist/Auth/PublicRoute/index.d.ts +324 -3
- package/dist/Auth/PublicRoute/index.d.ts.map +1 -0
- package/dist/Auth/getRootDomain/index.d.ts +324 -3
- package/dist/Auth/getRootDomain/index.d.ts.map +1 -0
- package/dist/Auth/index.d.ts +24 -26
- package/dist/Auth/index.d.ts.map +1 -0
- package/dist/Auth/useApiConfig/index.d.ts +3 -3
- package/dist/Auth/useApiConfig/index.d.ts.map +1 -0
- package/dist/Auth/useAuth/index.d.ts +324 -3
- package/dist/Auth/useAuth/index.d.ts.map +1 -0
- package/dist/Auth/useAuthGuard/index.d.ts +324 -3
- package/dist/Auth/useAuthGuard/index.d.ts.map +1 -0
- package/dist/Auth/useRouteAuth/index.d.ts +324 -3
- package/dist/Auth/useRouteAuth/index.d.ts.map +1 -0
- package/dist/Auth/useUrlAuthentication/index.d.ts +3 -4
- package/dist/Auth/useUrlAuthentication/index.d.ts.map +1 -0
- package/dist/Auth/withAuth/index.d.ts +324 -3
- package/dist/Auth/withAuth/index.d.ts.map +1 -0
- package/dist/Auth/zustandAuthAdapter/index.d.ts +2 -3
- package/dist/Auth/zustandAuthAdapter/index.d.ts.map +1 -0
- package/dist/Badge/index.d.ts +4 -6
- package/dist/Badge/index.d.ts.map +1 -0
- package/dist/Badge/index.js.map +1 -1
- package/dist/Badge/index.mjs.map +1 -1
- package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts +5 -7
- package/dist/BreadcrumbMenu/breadcrumbStore/index.d.ts.map +1 -0
- package/dist/BreadcrumbMenu/index.d.ts +4 -8
- package/dist/BreadcrumbMenu/index.d.ts.map +1 -0
- package/dist/BreadcrumbMenu/index.js.map +1 -1
- package/dist/BreadcrumbMenu/index.mjs.map +1 -1
- package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts +7 -10
- package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.ts.map +1 -0
- package/dist/BreadcrumbMenu/useUrlParams/index.d.ts +3 -4
- package/dist/BreadcrumbMenu/useUrlParams/index.d.ts.map +1 -0
- package/dist/Button/index.d.ts +4 -6
- package/dist/Button/index.d.ts.map +1 -0
- package/dist/Button/index.js.map +1 -1
- package/dist/Button/index.mjs.map +1 -1
- package/dist/Calendar/index.d.ts +9 -11
- package/dist/Calendar/index.d.ts.map +1 -0
- package/dist/Calendar/index.js.map +1 -1
- package/dist/Calendar/index.mjs.map +1 -1
- package/dist/Card/index.d.ts +17 -19
- package/dist/Card/index.d.ts.map +1 -0
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs.map +1 -1
- package/dist/CheckBox/index.d.ts +6 -8
- package/dist/CheckBox/index.d.ts.map +1 -0
- package/dist/CheckBox/index.js.map +1 -1
- package/dist/CheckBox/index.mjs.map +1 -1
- package/dist/Chips/index.d.ts +4 -6
- package/dist/Chips/index.d.ts.map +1 -0
- package/dist/Chips/index.js.map +1 -1
- package/dist/Chips/index.mjs.map +1 -1
- package/dist/CorrectActivityModal/index.d.ts +39 -0
- package/dist/CorrectActivityModal/index.d.ts.map +1 -0
- package/dist/CorrectActivityModal/index.js +3674 -0
- package/dist/CorrectActivityModal/index.js.map +1 -0
- package/dist/CorrectActivityModal/index.mjs +3689 -0
- package/dist/CorrectActivityModal/index.mjs.map +1 -0
- package/dist/Divider/index.d.ts +3 -5
- package/dist/Divider/index.d.ts.map +1 -0
- package/dist/Divider/index.js.map +1 -1
- package/dist/Divider/index.mjs.map +1 -1
- package/dist/DownloadButton/index.d.ts +5 -7
- package/dist/DownloadButton/index.d.ts.map +1 -0
- package/dist/DownloadButton/index.js.map +1 -1
- package/dist/DownloadButton/index.mjs.map +1 -1
- package/dist/DropdownMenu/index.d.ts +26 -28
- package/dist/DropdownMenu/index.d.ts.map +1 -0
- package/dist/DropdownMenu/index.js.map +1 -1
- package/dist/DropdownMenu/index.mjs.map +1 -1
- package/dist/EmptyState/index.d.ts +5 -7
- package/dist/EmptyState/index.d.ts.map +1 -0
- package/dist/EmptyState/index.js.map +1 -1
- package/dist/EmptyState/index.mjs.map +1 -1
- package/dist/FileAttachment/index.d.ts +72 -0
- package/dist/FileAttachment/index.d.ts.map +1 -0
- package/dist/FileAttachment/index.js +239 -0
- package/dist/FileAttachment/index.js.map +1 -0
- package/dist/FileAttachment/index.mjs +213 -0
- package/dist/FileAttachment/index.mjs.map +1 -0
- package/dist/IconButton/index.d.ts +6 -8
- package/dist/IconButton/index.d.ts.map +1 -0
- package/dist/IconButton/index.js.map +1 -1
- package/dist/IconButton/index.mjs.map +1 -1
- package/dist/IconRender/index.d.ts +5 -6
- package/dist/IconRender/index.d.ts.map +1 -0
- package/dist/IconRoundedButton/index.d.ts +4 -6
- package/dist/IconRoundedButton/index.d.ts.map +1 -0
- package/dist/IconRoundedButton/index.js.map +1 -1
- package/dist/IconRoundedButton/index.mjs.map +1 -1
- package/dist/Input/index.d.ts +5 -7
- package/dist/Input/index.d.ts.map +1 -0
- package/dist/LatexRenderer/index.d.ts +5 -6
- package/dist/LatexRenderer/index.d.ts.map +1 -0
- package/dist/LatexRenderer/index.js.map +1 -1
- package/dist/LatexRenderer/index.mjs.map +1 -1
- package/dist/LoadingModal/index.d.ts +3 -5
- package/dist/LoadingModal/index.d.ts.map +1 -0
- package/dist/Menu/index.d.ts +12 -14
- package/dist/Menu/index.d.ts.map +1 -0
- package/dist/Menu/index.js.map +1 -1
- package/dist/Menu/index.mjs.map +1 -1
- package/dist/Modal/index.d.ts +3 -5
- package/dist/Modal/index.d.ts.map +1 -0
- package/dist/Modal/index.js.map +1 -1
- package/dist/Modal/index.mjs.map +1 -1
- package/dist/Modal/utils/videoUtils/index.d.ts +4 -5
- package/dist/Modal/utils/videoUtils/index.d.ts.map +1 -0
- package/dist/MultipleChoice/index.d.ts +2 -4
- package/dist/MultipleChoice/index.d.ts.map +1 -0
- package/dist/MultipleChoice/index.js.map +1 -1
- package/dist/MultipleChoice/index.mjs.map +1 -1
- package/dist/NavButton/index.d.ts +5 -7
- package/dist/NavButton/index.d.ts.map +1 -0
- package/dist/NavButton/index.js.map +1 -1
- package/dist/NavButton/index.mjs.map +1 -1
- package/dist/NoSearchResult/index.d.ts +4 -6
- package/dist/NoSearchResult/index.d.ts.map +1 -0
- package/dist/NoSearchResult/index.js.map +1 -1
- package/dist/NoSearchResult/index.mjs.map +1 -1
- package/dist/NotFound/index.d.ts +4 -6
- package/dist/NotFound/index.d.ts.map +1 -0
- package/dist/NotFound/index.js.map +1 -1
- package/dist/NotFound/index.mjs.map +1 -1
- package/dist/NotificationCard/index.d.ts +218 -3
- package/dist/NotificationCard/index.d.ts.map +1 -0
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/ProgressBar/index.d.ts +4 -6
- package/dist/ProgressBar/index.d.ts.map +1 -0
- package/dist/ProgressBar/index.js.map +1 -1
- package/dist/ProgressBar/index.mjs.map +1 -1
- package/dist/ProgressCircle/index.d.ts +4 -6
- package/dist/ProgressCircle/index.d.ts.map +1 -0
- package/dist/ProgressCircle/index.js.map +1 -1
- package/dist/ProgressCircle/index.mjs.map +1 -1
- package/dist/Quiz/index.d.ts +19 -23
- package/dist/Quiz/index.d.ts.map +1 -0
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.ts +14 -17
- package/dist/Quiz/useQuizStore/index.d.ts.map +1 -0
- package/dist/Radio/index.d.ts +14 -15
- package/dist/Radio/index.d.ts.map +1 -0
- package/dist/Radio/index.js.map +1 -1
- package/dist/Radio/index.mjs.map +1 -1
- package/dist/Search/index.d.ts +4 -6
- package/dist/Search/index.d.ts.map +1 -0
- package/dist/Search/index.js.map +1 -1
- package/dist/Search/index.mjs.map +1 -1
- package/dist/Select/index.d.ts +12 -14
- package/dist/Select/index.d.ts.map +1 -0
- package/dist/Select/index.js.map +1 -1
- package/dist/Select/index.mjs.map +1 -1
- package/dist/SelectionButton/index.d.ts +5 -7
- package/dist/SelectionButton/index.d.ts.map +1 -0
- package/dist/SelectionButton/index.js.map +1 -1
- package/dist/SelectionButton/index.mjs.map +1 -1
- package/dist/Skeleton/index.d.ts +10 -12
- package/dist/Skeleton/index.d.ts.map +1 -0
- package/dist/Skeleton/index.js.map +1 -1
- package/dist/Skeleton/index.mjs.map +1 -1
- package/dist/StatisticsCard/index.d.ts +3 -5
- package/dist/StatisticsCard/index.d.ts.map +1 -0
- package/dist/StatisticsCard/index.js.map +1 -1
- package/dist/StatisticsCard/index.mjs.map +1 -1
- package/dist/Stepper/index.d.ts +6 -8
- package/dist/Stepper/index.d.ts.map +1 -0
- package/dist/Stepper/index.js.map +1 -1
- package/dist/Stepper/index.mjs.map +1 -1
- package/dist/SubjectInfo/index.d.ts +17 -2
- package/dist/SubjectInfo/index.d.ts.map +1 -0
- package/dist/Support/TicketModal/index.d.ts +14 -0
- package/dist/Support/TicketModal/index.d.ts.map +1 -0
- package/dist/Support/TicketModal/index.js +1279 -0
- package/dist/Support/TicketModal/index.js.map +1 -0
- package/dist/Support/TicketModal/index.mjs +1248 -0
- package/dist/Support/TicketModal/index.mjs.map +1 -0
- package/dist/Support/index.d.ts +8 -0
- package/dist/Support/index.d.ts.map +1 -0
- package/dist/Support/index.js +2686 -0
- package/dist/Support/index.js.map +1 -0
- package/dist/Support/index.mjs +2676 -0
- package/dist/Support/index.mjs.map +1 -0
- package/dist/Table/TablePagination/index.d.ts +4 -6
- package/dist/Table/TablePagination/index.d.ts.map +1 -0
- package/dist/Table/TablePagination/index.js.map +1 -1
- package/dist/Table/TablePagination/index.mjs.map +1 -1
- package/dist/Table/index.d.ts +18 -19
- package/dist/Table/index.d.ts.map +1 -0
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/index.mjs.map +1 -1
- package/dist/TableProvider/index.css +127 -0
- package/dist/TableProvider/index.css.map +1 -1
- package/dist/TableProvider/index.d.ts +198 -4
- package/dist/TableProvider/index.d.ts.map +1 -0
- package/dist/TableProvider/index.js +23 -19
- package/dist/TableProvider/index.js.map +1 -1
- package/dist/TableProvider/index.mjs +45 -41
- package/dist/TableProvider/index.mjs.map +1 -1
- package/dist/Text/index.d.ts +4 -6
- package/dist/Text/index.d.ts.map +1 -0
- package/dist/Text/index.js.map +1 -1
- package/dist/Text/index.mjs.map +1 -1
- package/dist/TextArea/index.d.ts +6 -8
- package/dist/TextArea/index.d.ts.map +1 -0
- package/dist/TextArea/index.js.map +1 -1
- package/dist/TextArea/index.mjs.map +1 -1
- package/dist/ThemeToggle/index.d.ts +4 -8
- package/dist/ThemeToggle/index.d.ts.map +1 -0
- package/dist/ThemeToggle/index.js.map +1 -1
- package/dist/ThemeToggle/index.mjs.map +1 -1
- package/dist/Toast/ToastStore/index.d.ts +3 -5
- package/dist/Toast/ToastStore/index.d.ts.map +1 -0
- package/dist/Toast/Toaster/index.d.ts +4 -6
- package/dist/Toast/Toaster/index.d.ts.map +1 -0
- package/dist/Toast/Toaster/index.js.map +1 -1
- package/dist/Toast/Toaster/index.mjs.map +1 -1
- package/dist/Toast/index.d.ts +3 -5
- package/dist/Toast/index.d.ts.map +1 -0
- package/dist/Toast/index.js.map +1 -1
- package/dist/Toast/index.mjs.map +1 -1
- package/dist/VideoPlayer/index.d.ts +4 -6
- package/dist/VideoPlayer/index.d.ts.map +1 -0
- package/dist/VideoPlayer/index.js.map +1 -1
- package/dist/VideoPlayer/index.mjs.map +1 -1
- package/dist/Whiteboard/index.d.ts +5 -7
- package/dist/Whiteboard/index.d.ts.map +1 -0
- package/dist/Whiteboard/index.js.map +1 -1
- package/dist/Whiteboard/index.mjs.map +1 -1
- package/dist/assets/icons/subjects/BookOpenText.d.ts +5 -0
- package/dist/assets/icons/subjects/BookOpenText.d.ts.map +1 -0
- package/dist/assets/icons/subjects/ChatEN.d.ts +5 -0
- package/dist/assets/icons/subjects/ChatEN.d.ts.map +1 -0
- package/dist/assets/icons/subjects/ChatES.d.ts +5 -0
- package/dist/assets/icons/subjects/ChatES.d.ts.map +1 -0
- package/dist/assets/icons/subjects/ChatPT.d.ts +5 -0
- package/dist/assets/icons/subjects/ChatPT.d.ts.map +1 -0
- package/dist/assets/icons/subjects/HeadCircuit.d.ts +5 -0
- package/dist/assets/icons/subjects/HeadCircuit.d.ts.map +1 -0
- package/dist/assets/icons/subjects/Microscope.d.ts +5 -0
- package/dist/assets/icons/subjects/Microscope.d.ts.map +1 -0
- package/dist/enums/SubjectEnum.d.ts +19 -0
- package/dist/enums/SubjectEnum.d.ts.map +1 -0
- package/dist/hooks/useAppContent.d.ts +55 -0
- package/dist/hooks/useAppContent.d.ts.map +1 -0
- package/dist/hooks/useAppInitialization.d.ts +21 -0
- package/dist/hooks/useAppInitialization.d.ts.map +1 -0
- package/dist/hooks/useInstitution.d.ts +2 -0
- package/dist/hooks/useInstitution.d.ts.map +1 -0
- package/dist/hooks/useMobile/index.d.ts +4 -5
- package/dist/hooks/useMobile/index.d.ts.map +1 -0
- package/dist/hooks/useNotificationStore.d.ts +34 -0
- package/dist/hooks/useNotificationStore.d.ts.map +1 -0
- package/dist/hooks/useNotifications.d.ts +129 -0
- package/dist/hooks/useNotifications.d.ts.map +1 -0
- package/dist/hooks/useScreen.d.ts +38 -0
- package/dist/hooks/useScreen.d.ts.map +1 -0
- package/dist/hooks/useTheme/index.d.ts +4 -7
- package/dist/hooks/useTheme/index.d.ts.map +1 -0
- package/dist/index.css +127 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +127 -783
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9257 -6883
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +9330 -6973
- package/dist/index.mjs.map +1 -1
- package/dist/store/appStore.d.ts +27 -0
- package/dist/store/appStore.d.ts.map +1 -0
- package/dist/store/authStore.d.ts +75 -0
- package/dist/store/authStore.d.ts.map +1 -0
- package/dist/store/notificationStore.d.ts +89 -0
- package/dist/store/notificationStore.d.ts.map +1 -0
- package/dist/{themeStore-P2X64zC-.d.mts → store/themeStore.d.ts} +8 -12
- package/dist/store/themeStore.d.ts.map +1 -0
- package/dist/styles.css +127 -0
- package/dist/styles.css.map +1 -1
- package/dist/suporthistory-W5LBGAUP.png +0 -0
- package/dist/types/activityDetails.d.ts +127 -0
- package/dist/types/activityDetails.d.ts.map +1 -0
- package/dist/types/activityFilters.d.ts +51 -0
- package/dist/types/activityFilters.d.ts.map +1 -0
- package/dist/types/auth.d.ts +53 -0
- package/dist/types/auth.d.ts.map +1 -0
- package/dist/types/notifications.d.ts +199 -0
- package/dist/types/notifications.d.ts.map +1 -0
- package/dist/types/questionTypes.d.ts +6 -0
- package/dist/types/questionTypes.d.ts.map +1 -0
- package/dist/types/studentActivityCorrection.d.ts +57 -0
- package/dist/types/studentActivityCorrection.d.ts.map +1 -0
- package/dist/types/support/index.d.ts +111 -0
- package/dist/types/support/index.d.ts.map +1 -0
- package/dist/types/support/index.js +115 -0
- package/dist/types/support/index.js.map +1 -0
- package/dist/types/support/index.mjs +84 -0
- package/dist/types/support/index.mjs.map +1 -0
- package/dist/utils/activityFilters.d.ts +23 -0
- package/dist/utils/activityFilters.d.ts.map +1 -0
- package/dist/utils/dropdown.d.ts +12 -0
- package/dist/utils/dropdown.d.ts.map +1 -0
- package/dist/utils/index.d.ts +6 -19
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +24 -2
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/index.mjs +20 -1
- package/dist/utils/index.mjs.map +1 -1
- package/dist/utils/keys.d.ts +24 -0
- package/dist/utils/keys.d.ts.map +1 -0
- package/package.json +21 -4
- package/dist/Accordation/index.d.mts +0 -15
- package/dist/Alert/index.d.mts +0 -13
- package/dist/AlertDialog/index.d.mts +0 -36
- package/dist/AlertManager/index.d.mts +0 -17
- package/dist/AlertManagerView/index.d.mts +0 -31
- package/dist/Alternative/index.d.mts +0 -81
- package/dist/Auth/AuthProvider/index.d.mts +0 -3
- package/dist/Auth/ProtectedRoute/index.d.mts +0 -3
- package/dist/Auth/PublicRoute/index.d.mts +0 -3
- package/dist/Auth/getRootDomain/index.d.mts +0 -3
- package/dist/Auth/index.d.mts +0 -326
- package/dist/Auth/useApiConfig/index.d.mts +0 -43
- package/dist/Auth/useAuth/index.d.mts +0 -3
- package/dist/Auth/useAuthGuard/index.d.mts +0 -3
- package/dist/Auth/useRouteAuth/index.d.mts +0 -3
- package/dist/Auth/useUrlAuthentication/index.d.mts +0 -69
- package/dist/Auth/withAuth/index.d.mts +0 -3
- package/dist/Auth/zustandAuthAdapter/index.d.mts +0 -75
- package/dist/Badge/index.d.mts +0 -46
- package/dist/BreadcrumbMenu/breadcrumbStore/index.d.mts +0 -77
- package/dist/BreadcrumbMenu/index.d.mts +0 -31
- package/dist/BreadcrumbMenu/useBreadcrumbBuilder/index.d.mts +0 -48
- package/dist/BreadcrumbMenu/useUrlParams/index.d.mts +0 -28
- package/dist/Button/index.d.mts +0 -45
- package/dist/Calendar/index.d.mts +0 -60
- package/dist/Card/index.d.mts +0 -150
- package/dist/CheckBox/index.d.mts +0 -74
- package/dist/CheckBoxGroup-9n5C0OH4.d.mts +0 -24
- package/dist/CheckBoxGroup-9n5C0OH4.d.ts +0 -24
- package/dist/Chips/index.d.mts +0 -41
- package/dist/Divider/index.d.mts +0 -32
- package/dist/DownloadButton/index.d.mts +0 -46
- package/dist/DropdownMenu/index.d.mts +0 -82
- package/dist/EmptyState/index.d.mts +0 -65
- package/dist/IconButton/index.d.mts +0 -76
- package/dist/IconRender/index.d.mts +0 -36
- package/dist/IconRoundedButton/index.d.mts +0 -34
- package/dist/Input/index.d.mts +0 -27
- package/dist/LatexRenderer/index.d.mts +0 -50
- package/dist/LoadingModal/index.d.mts +0 -11
- package/dist/Menu/index.d.mts +0 -48
- package/dist/Modal/index.d.mts +0 -76
- package/dist/Modal/utils/videoUtils/index.d.mts +0 -28
- package/dist/MultipleChoice/index.d.mts +0 -20
- package/dist/NavButton/index.d.mts +0 -57
- package/dist/NoSearchResult/index.d.mts +0 -37
- package/dist/NotFound/index.d.mts +0 -58
- package/dist/NotificationCard/index.d.mts +0 -3
- package/dist/NotificationCard-4GgB0Nsf.d.mts +0 -417
- package/dist/NotificationCard-4GgB0Nsf.d.ts +0 -417
- package/dist/ProgressBar/index.d.mts +0 -95
- package/dist/ProgressCircle/index.d.mts +0 -60
- package/dist/Quiz/index.d.mts +0 -55
- package/dist/Quiz/useQuizStore/index.d.mts +0 -258
- package/dist/Radio/index.d.mts +0 -203
- package/dist/Search/index.d.mts +0 -27
- package/dist/Select/index.d.mts +0 -59
- package/dist/SelectionButton/index.d.mts +0 -57
- package/dist/Skeleton/index.d.mts +0 -40
- package/dist/StatisticsCard/index.d.mts +0 -79
- package/dist/Stepper/index.d.mts +0 -169
- package/dist/SubjectInfo/index.d.mts +0 -2
- package/dist/SubjectInfo-Dvt0OodP.d.mts +0 -37
- package/dist/SubjectInfo-Dvt0OodP.d.ts +0 -37
- package/dist/Table/TablePagination/index.d.mts +0 -64
- package/dist/Table/index.d.mts +0 -93
- package/dist/TableProvider/index.d.mts +0 -4
- package/dist/TableProvider-BnAnv3OV.d.mts +0 -239
- package/dist/TableProvider-GfPlLqzg.d.ts +0 -239
- package/dist/Text/index.d.mts +0 -58
- package/dist/TextArea/index.d.mts +0 -74
- package/dist/ThemeToggle/index.d.mts +0 -12
- package/dist/Toast/ToastStore/index.d.mts +0 -19
- package/dist/Toast/Toaster/index.d.mts +0 -16
- package/dist/Toast/index.d.mts +0 -17
- package/dist/VideoPlayer/index.d.mts +0 -52
- package/dist/Whiteboard/index.d.mts +0 -34
- package/dist/hooks/useMobile/index.d.mts +0 -29
- package/dist/hooks/useTheme/index.d.mts +0 -17
- package/dist/index.d.mts +0 -783
- package/dist/styles.d.mts +0 -2
- package/dist/styles.d.ts +0 -2
- package/dist/themeStore-P2X64zC-.d.ts +0 -79
- package/dist/types-DqZRjqxh.d.ts +0 -67
- package/dist/types-pd3QVhSu.d.mts +0 -67
- package/dist/utils/index.d.mts +0 -27
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as react from 'react';
|
|
2
|
-
import { ReactNode, ButtonHTMLAttributes } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* NavButton component for Analytica Ensino platforms
|
|
6
|
-
*
|
|
7
|
-
* Um botão de navegação com ícone e texto para navegação principal.
|
|
8
|
-
* Ideal para menus de navegação, sidebar, tabs de navegação, etc.
|
|
9
|
-
* Suporta forwardRef para acesso programático ao elemento DOM.
|
|
10
|
-
*
|
|
11
|
-
* @param icon - O ícone a ser exibido no botão
|
|
12
|
-
* @param label - O texto/label a ser exibido
|
|
13
|
-
* @param selected - Estado de seleção do botão
|
|
14
|
-
* @param className - Classes CSS adicionais
|
|
15
|
-
* @param props - Todos os outros atributos HTML padrão de button
|
|
16
|
-
* @returns Um elemento button estilizado para navegação
|
|
17
|
-
*
|
|
18
|
-
* @example
|
|
19
|
-
* ```tsx
|
|
20
|
-
* <NavButton
|
|
21
|
-
* icon={<HomeIcon />}
|
|
22
|
-
* label="Início"
|
|
23
|
-
* selected={false}
|
|
24
|
-
* onClick={() => navigate('/')}
|
|
25
|
-
* />
|
|
26
|
-
* ```
|
|
27
|
-
*
|
|
28
|
-
* @example
|
|
29
|
-
* ```tsx
|
|
30
|
-
* // Usando ref para foco programático
|
|
31
|
-
* const buttonRef = useRef<HTMLButtonElement>(null);
|
|
32
|
-
*
|
|
33
|
-
* const handleFocus = () => {
|
|
34
|
-
* buttonRef.current?.focus();
|
|
35
|
-
* };
|
|
36
|
-
*
|
|
37
|
-
* <NavButton
|
|
38
|
-
* ref={buttonRef}
|
|
39
|
-
* icon={<HomeIcon />}
|
|
40
|
-
* label="Dashboard"
|
|
41
|
-
* selected={isActive}
|
|
42
|
-
* onClick={() => setActiveTab('dashboard')}
|
|
43
|
-
* />
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
declare const NavButton: react.ForwardRefExoticComponent<{
|
|
47
|
-
/** Ícone a ser exibido no botão */
|
|
48
|
-
icon: ReactNode;
|
|
49
|
-
/** Texto/label a ser exibido ao lado do ícone */
|
|
50
|
-
label: string;
|
|
51
|
-
/** Estado de seleção do botão */
|
|
52
|
-
selected?: boolean;
|
|
53
|
-
/** Additional CSS classes to apply */
|
|
54
|
-
className?: string;
|
|
55
|
-
} & ButtonHTMLAttributes<HTMLButtonElement> & react.RefAttributes<HTMLButtonElement>>;
|
|
56
|
-
|
|
57
|
-
export { NavButton as default };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
interface NoSearchResultProps {
|
|
4
|
-
/**
|
|
5
|
-
* Image source for the illustration
|
|
6
|
-
*/
|
|
7
|
-
image: string;
|
|
8
|
-
/**
|
|
9
|
-
* Title text to display
|
|
10
|
-
* @default "Nenhum resultado encontrado"
|
|
11
|
-
*/
|
|
12
|
-
title?: string;
|
|
13
|
-
/**
|
|
14
|
-
* Description text to display below the title
|
|
15
|
-
* @default "Não encontramos nenhum resultado com esse nome. Tente revisar a busca ou usar outra palavra-chave."
|
|
16
|
-
*/
|
|
17
|
-
description?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Component displayed when no search results are found
|
|
21
|
-
* Shows an illustration with customizable title and description in horizontal layout
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```tsx
|
|
25
|
-
* import { NoSearchResult } from 'analytica-frontend-lib';
|
|
26
|
-
* import noSearchImage from './assets/no-search.png';
|
|
27
|
-
*
|
|
28
|
-
* <NoSearchResult
|
|
29
|
-
* image={noSearchImage}
|
|
30
|
-
* title="Nenhum resultado encontrado"
|
|
31
|
-
* description="Tente usar outros filtros"
|
|
32
|
-
* />
|
|
33
|
-
* ```
|
|
34
|
-
*/
|
|
35
|
-
declare const NoSearchResult: ({ image, title, description }: NoSearchResultProps) => react_jsx_runtime.JSX.Element;
|
|
36
|
-
|
|
37
|
-
export { type NoSearchResultProps, NoSearchResult as default };
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Props interface for the NotFound component
|
|
5
|
-
*
|
|
6
|
-
* @interface NotFoundProps
|
|
7
|
-
* @property {string} [title] - Custom title text (default: "Página não encontrada")
|
|
8
|
-
* @property {string} [description] - Custom description text
|
|
9
|
-
* @property {string} [buttonText] - Custom button text (default: "Voltar")
|
|
10
|
-
* @property {() => void} [onButtonClick] - Callback function for button click
|
|
11
|
-
* @property {string} [className] - Additional CSS classes for the container
|
|
12
|
-
* @property {'404' | '500' | 'custom'} [errorType] - Type of error to display (default: '404')
|
|
13
|
-
* @property {string} [customErrorCode] - Custom error code when errorType is 'custom'
|
|
14
|
-
*/
|
|
15
|
-
interface NotFoundProps {
|
|
16
|
-
title?: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
buttonText?: string;
|
|
19
|
-
onButtonClick?: () => void;
|
|
20
|
-
className?: string;
|
|
21
|
-
errorType?: '404' | '500' | 'custom';
|
|
22
|
-
customErrorCode?: string;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* NotFound component for displaying error pages
|
|
26
|
-
*
|
|
27
|
-
* A reusable component for displaying 404, 500, or custom error pages
|
|
28
|
-
* with configurable content and navigation button.
|
|
29
|
-
*
|
|
30
|
-
* @param {NotFoundProps} props - The component props
|
|
31
|
-
* @returns {JSX.Element} The NotFound component
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```typescript
|
|
35
|
-
* // Basic 404 page
|
|
36
|
-
* <NotFound onButtonClick={() => navigate('/dashboard')} />
|
|
37
|
-
*
|
|
38
|
-
* // Custom error page
|
|
39
|
-
* <NotFound
|
|
40
|
-
* errorType="500"
|
|
41
|
-
* title="Erro interno do servidor"
|
|
42
|
-
* description="Algo deu errado. Tente novamente mais tarde."
|
|
43
|
-
* buttonText="Tentar novamente"
|
|
44
|
-
* onButtonClick={() => window.location.reload()}
|
|
45
|
-
* />
|
|
46
|
-
*
|
|
47
|
-
* // Custom error code
|
|
48
|
-
* <NotFound
|
|
49
|
-
* errorType="custom"
|
|
50
|
-
* customErrorCode="403"
|
|
51
|
-
* title="Acesso negado"
|
|
52
|
-
* description="Você não tem permissão para acessar esta página."
|
|
53
|
-
* />
|
|
54
|
-
* ```
|
|
55
|
-
*/
|
|
56
|
-
declare const NotFound: ({ title, description, buttonText, onButtonClick, className, errorType, customErrorCode, }: NotFoundProps) => react_jsx_runtime.JSX.Element;
|
|
57
|
-
|
|
58
|
-
export { type NotFoundProps, NotFound as default };
|
|
@@ -1,417 +0,0 @@
|
|
|
1
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Types for notification system
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Notification type enum
|
|
9
|
-
*/
|
|
10
|
-
type NotificationType = 'ACTIVITY' | 'TRAIL' | 'GOAL' | 'ANNOUNCEMENT' | 'GENERAL';
|
|
11
|
-
/**
|
|
12
|
-
* Entity type for navigation
|
|
13
|
-
*/
|
|
14
|
-
declare enum NotificationEntityType {
|
|
15
|
-
ACTIVITY = "ACTIVITY",
|
|
16
|
-
TRAIL = "TRAIL",
|
|
17
|
-
GOAL = "GOAL"
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Notification interface
|
|
21
|
-
*/
|
|
22
|
-
interface Notification {
|
|
23
|
-
/**
|
|
24
|
-
* Unique identifier for the notification
|
|
25
|
-
*/
|
|
26
|
-
id: string;
|
|
27
|
-
/**
|
|
28
|
-
* Notification title
|
|
29
|
-
*/
|
|
30
|
-
title: string;
|
|
31
|
-
/**
|
|
32
|
-
* Notification message content
|
|
33
|
-
*/
|
|
34
|
-
message: string;
|
|
35
|
-
/**
|
|
36
|
-
* Type of notification
|
|
37
|
-
*/
|
|
38
|
-
type: NotificationType;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the notification has been read
|
|
41
|
-
*/
|
|
42
|
-
isRead: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* When the notification was created
|
|
45
|
-
*/
|
|
46
|
-
createdAt: Date;
|
|
47
|
-
/**
|
|
48
|
-
* Type of entity this notification refers to (optional)
|
|
49
|
-
*/
|
|
50
|
-
entityType?: NotificationEntityType | null;
|
|
51
|
-
/**
|
|
52
|
-
* ID of the entity this notification refers to (optional)
|
|
53
|
-
*/
|
|
54
|
-
entityId?: string | null;
|
|
55
|
-
/**
|
|
56
|
-
* Action link for global notifications (optional)
|
|
57
|
-
*/
|
|
58
|
-
actionLink?: string | null;
|
|
59
|
-
/**
|
|
60
|
-
* Sender information (optional)
|
|
61
|
-
*/
|
|
62
|
-
sender?: {
|
|
63
|
-
id: string;
|
|
64
|
-
user: {
|
|
65
|
-
id: string;
|
|
66
|
-
name: string;
|
|
67
|
-
email: string;
|
|
68
|
-
};
|
|
69
|
-
} | null;
|
|
70
|
-
/**
|
|
71
|
-
* Activity information (optional)
|
|
72
|
-
*/
|
|
73
|
-
activity?: {
|
|
74
|
-
id: string;
|
|
75
|
-
title: string;
|
|
76
|
-
type: string;
|
|
77
|
-
} | null;
|
|
78
|
-
/**
|
|
79
|
-
* Goal information (optional)
|
|
80
|
-
*/
|
|
81
|
-
goal?: {
|
|
82
|
-
id: string;
|
|
83
|
-
title: string;
|
|
84
|
-
} | null;
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Backend notification response from API
|
|
88
|
-
*/
|
|
89
|
-
interface BackendNotification {
|
|
90
|
-
id: string;
|
|
91
|
-
senderUserInstitutionId: string | null;
|
|
92
|
-
receiverUserInstitutionId: string;
|
|
93
|
-
title: string;
|
|
94
|
-
description: string;
|
|
95
|
-
entityType: string | null;
|
|
96
|
-
entityId: string | null;
|
|
97
|
-
actionLink?: string | null;
|
|
98
|
-
read: boolean;
|
|
99
|
-
createdAt: string;
|
|
100
|
-
updatedAt: string;
|
|
101
|
-
sender?: {
|
|
102
|
-
id: string;
|
|
103
|
-
user: {
|
|
104
|
-
id: string;
|
|
105
|
-
name: string;
|
|
106
|
-
email: string;
|
|
107
|
-
};
|
|
108
|
-
} | null;
|
|
109
|
-
activity?: {
|
|
110
|
-
id: string;
|
|
111
|
-
title: string;
|
|
112
|
-
type: string;
|
|
113
|
-
} | null;
|
|
114
|
-
goal?: {
|
|
115
|
-
id: string;
|
|
116
|
-
title: string;
|
|
117
|
-
} | null;
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* API response for fetching notifications from backend
|
|
121
|
-
*/
|
|
122
|
-
interface BackendNotificationsResponse {
|
|
123
|
-
notifications: BackendNotification[];
|
|
124
|
-
pagination: {
|
|
125
|
-
page: number;
|
|
126
|
-
limit: number;
|
|
127
|
-
total: number;
|
|
128
|
-
totalPages: number;
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* API response for fetching notifications (frontend format)
|
|
133
|
-
*/
|
|
134
|
-
interface NotificationsResponse {
|
|
135
|
-
/**
|
|
136
|
-
* List of notifications
|
|
137
|
-
*/
|
|
138
|
-
notifications: Notification[];
|
|
139
|
-
/**
|
|
140
|
-
* Total count of notifications
|
|
141
|
-
*/
|
|
142
|
-
totalCount: number;
|
|
143
|
-
/**
|
|
144
|
-
* Count of unread notifications
|
|
145
|
-
*/
|
|
146
|
-
unreadCount: number;
|
|
147
|
-
/**
|
|
148
|
-
* Whether there are more notifications to load
|
|
149
|
-
*/
|
|
150
|
-
hasMore: boolean;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Parameters for fetching notifications
|
|
154
|
-
*/
|
|
155
|
-
interface FetchNotificationsParams {
|
|
156
|
-
/**
|
|
157
|
-
* Page number for pagination
|
|
158
|
-
*/
|
|
159
|
-
page?: number;
|
|
160
|
-
/**
|
|
161
|
-
* Number of items per page
|
|
162
|
-
*/
|
|
163
|
-
limit?: number;
|
|
164
|
-
/**
|
|
165
|
-
* Filter by read status
|
|
166
|
-
*/
|
|
167
|
-
read?: boolean;
|
|
168
|
-
/**
|
|
169
|
-
* Filter by entity type
|
|
170
|
-
*/
|
|
171
|
-
entityType?: string;
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Notification grouped by time period
|
|
175
|
-
*/
|
|
176
|
-
interface NotificationGroup {
|
|
177
|
-
/**
|
|
178
|
-
* Group label (e.g., "Hoje", "Última semana")
|
|
179
|
-
*/
|
|
180
|
-
label: string;
|
|
181
|
-
/**
|
|
182
|
-
* Notifications in this group
|
|
183
|
-
*/
|
|
184
|
-
notifications: Notification[];
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* API client interface for dependency injection
|
|
188
|
-
*/
|
|
189
|
-
interface NotificationApiClient {
|
|
190
|
-
get: <T>(url: string, config?: {
|
|
191
|
-
params?: Record<string, unknown>;
|
|
192
|
-
}) => Promise<{
|
|
193
|
-
data: T;
|
|
194
|
-
}>;
|
|
195
|
-
patch: <T>(url: string, data?: Record<string, unknown>) => Promise<{
|
|
196
|
-
data: T;
|
|
197
|
-
}>;
|
|
198
|
-
delete: <T>(url: string) => Promise<{
|
|
199
|
-
data: T;
|
|
200
|
-
}>;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
interface NotificationItem extends Omit<Notification, 'createdAt'> {
|
|
204
|
-
time: string;
|
|
205
|
-
createdAt: string | Date;
|
|
206
|
-
}
|
|
207
|
-
interface BaseNotificationProps {
|
|
208
|
-
/**
|
|
209
|
-
* Additional CSS classes
|
|
210
|
-
*/
|
|
211
|
-
className?: string;
|
|
212
|
-
/**
|
|
213
|
-
* Empty state image path
|
|
214
|
-
*/
|
|
215
|
-
emptyStateImage?: string;
|
|
216
|
-
/**
|
|
217
|
-
* Empty state title
|
|
218
|
-
*/
|
|
219
|
-
emptyStateTitle?: string;
|
|
220
|
-
/**
|
|
221
|
-
* Empty state description
|
|
222
|
-
*/
|
|
223
|
-
emptyStateDescription?: string;
|
|
224
|
-
}
|
|
225
|
-
interface SingleNotificationCardMode extends BaseNotificationProps {
|
|
226
|
-
/**
|
|
227
|
-
* Component mode - single card
|
|
228
|
-
*/
|
|
229
|
-
mode: 'single';
|
|
230
|
-
/**
|
|
231
|
-
* The notification title
|
|
232
|
-
*/
|
|
233
|
-
title: string;
|
|
234
|
-
/**
|
|
235
|
-
* The notification message content
|
|
236
|
-
*/
|
|
237
|
-
message: string;
|
|
238
|
-
/**
|
|
239
|
-
* Time displayed (e.g., "Há 3h", "12 Fev")
|
|
240
|
-
*/
|
|
241
|
-
time: string;
|
|
242
|
-
/**
|
|
243
|
-
* Whether the notification has been read
|
|
244
|
-
*/
|
|
245
|
-
isRead: boolean;
|
|
246
|
-
/**
|
|
247
|
-
* Callback when user marks notification as read
|
|
248
|
-
*/
|
|
249
|
-
onMarkAsRead: () => void;
|
|
250
|
-
/**
|
|
251
|
-
* Callback when user deletes notification
|
|
252
|
-
*/
|
|
253
|
-
onDelete: () => void;
|
|
254
|
-
/**
|
|
255
|
-
* Optional callback for navigation action
|
|
256
|
-
*/
|
|
257
|
-
onNavigate?: () => void;
|
|
258
|
-
/**
|
|
259
|
-
* Label for the action button (only shown if onNavigate is provided)
|
|
260
|
-
*/
|
|
261
|
-
actionLabel?: string;
|
|
262
|
-
}
|
|
263
|
-
interface NotificationListMode extends BaseNotificationProps {
|
|
264
|
-
/**
|
|
265
|
-
* Component mode - list
|
|
266
|
-
*/
|
|
267
|
-
mode: 'list';
|
|
268
|
-
/**
|
|
269
|
-
* Array of notifications for list mode
|
|
270
|
-
*/
|
|
271
|
-
notifications?: NotificationItem[];
|
|
272
|
-
/**
|
|
273
|
-
* Array of grouped notifications
|
|
274
|
-
*/
|
|
275
|
-
groupedNotifications?: NotificationGroup[];
|
|
276
|
-
/**
|
|
277
|
-
* Loading state for list mode
|
|
278
|
-
*/
|
|
279
|
-
loading?: boolean;
|
|
280
|
-
/**
|
|
281
|
-
* Error state for list mode
|
|
282
|
-
*/
|
|
283
|
-
error?: string | null;
|
|
284
|
-
/**
|
|
285
|
-
* Callback for retry when error occurs
|
|
286
|
-
*/
|
|
287
|
-
onRetry?: () => void;
|
|
288
|
-
/**
|
|
289
|
-
* Callback when user marks a notification as read in list mode
|
|
290
|
-
*/
|
|
291
|
-
onMarkAsReadById?: (id: string) => void;
|
|
292
|
-
/**
|
|
293
|
-
* Callback when user deletes a notification in list mode
|
|
294
|
-
*/
|
|
295
|
-
onDeleteById?: (id: string) => void;
|
|
296
|
-
/**
|
|
297
|
-
* Callback when user navigates from a notification in list mode
|
|
298
|
-
*/
|
|
299
|
-
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
300
|
-
/**
|
|
301
|
-
* Callback when user clicks on a global notification
|
|
302
|
-
*/
|
|
303
|
-
onGlobalNotificationClick?: (notification: Notification) => void;
|
|
304
|
-
/**
|
|
305
|
-
* Function to get action label for a notification
|
|
306
|
-
*/
|
|
307
|
-
getActionLabel?: (entityType?: NotificationEntityType) => string | undefined;
|
|
308
|
-
/**
|
|
309
|
-
* Custom empty state component
|
|
310
|
-
*/
|
|
311
|
-
renderEmpty?: () => ReactNode;
|
|
312
|
-
}
|
|
313
|
-
interface NotificationCenterMode extends BaseNotificationProps {
|
|
314
|
-
/**
|
|
315
|
-
* Component mode - center
|
|
316
|
-
*/
|
|
317
|
-
mode: 'center';
|
|
318
|
-
/**
|
|
319
|
-
* Array of grouped notifications
|
|
320
|
-
*/
|
|
321
|
-
groupedNotifications?: NotificationGroup[];
|
|
322
|
-
/**
|
|
323
|
-
* Loading state for center mode
|
|
324
|
-
*/
|
|
325
|
-
loading?: boolean;
|
|
326
|
-
/**
|
|
327
|
-
* Error state for center mode
|
|
328
|
-
*/
|
|
329
|
-
error?: string | null;
|
|
330
|
-
/**
|
|
331
|
-
* Callback for retry when error occurs
|
|
332
|
-
*/
|
|
333
|
-
onRetry?: () => void;
|
|
334
|
-
/**
|
|
335
|
-
* Whether center mode is currently active (controls dropdown/modal visibility)
|
|
336
|
-
*/
|
|
337
|
-
isActive?: boolean;
|
|
338
|
-
/**
|
|
339
|
-
* Callback when center mode is toggled
|
|
340
|
-
*/
|
|
341
|
-
onToggleActive?: () => void;
|
|
342
|
-
/**
|
|
343
|
-
* Number of unread notifications for badge display
|
|
344
|
-
*/
|
|
345
|
-
unreadCount?: number;
|
|
346
|
-
/**
|
|
347
|
-
* Callback when all notifications should be marked as read
|
|
348
|
-
*/
|
|
349
|
-
onMarkAllAsRead?: () => void;
|
|
350
|
-
/**
|
|
351
|
-
* Callback to fetch notifications (called when center opens)
|
|
352
|
-
*/
|
|
353
|
-
onFetchNotifications?: () => void;
|
|
354
|
-
/**
|
|
355
|
-
* Callback when user marks a notification as read in center mode
|
|
356
|
-
*/
|
|
357
|
-
onMarkAsReadById?: (id: string) => void;
|
|
358
|
-
/**
|
|
359
|
-
* Callback when user deletes a notification in center mode
|
|
360
|
-
*/
|
|
361
|
-
onDeleteById?: (id: string) => void;
|
|
362
|
-
/**
|
|
363
|
-
* Callback when user navigates from a notification in center mode
|
|
364
|
-
*/
|
|
365
|
-
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
366
|
-
/**
|
|
367
|
-
* Function to get action label for a notification
|
|
368
|
-
*/
|
|
369
|
-
getActionLabel?: (entityType?: NotificationEntityType) => string | undefined;
|
|
370
|
-
/**
|
|
371
|
-
* Callback when dropdown open state changes (for synchronization with parent)
|
|
372
|
-
*/
|
|
373
|
-
onOpenChange?: (open: boolean) => void;
|
|
374
|
-
}
|
|
375
|
-
type NotificationCardProps = SingleNotificationCardMode | NotificationListMode | NotificationCenterMode;
|
|
376
|
-
interface LegacyNotificationCardProps extends BaseNotificationProps {
|
|
377
|
-
title?: string;
|
|
378
|
-
message?: string;
|
|
379
|
-
time?: string;
|
|
380
|
-
isRead?: boolean;
|
|
381
|
-
onMarkAsRead?: () => void;
|
|
382
|
-
onDelete?: () => void;
|
|
383
|
-
onNavigate?: () => void;
|
|
384
|
-
actionLabel?: string;
|
|
385
|
-
notifications?: NotificationItem[];
|
|
386
|
-
groupedNotifications?: NotificationGroup[];
|
|
387
|
-
loading?: boolean;
|
|
388
|
-
error?: string | null;
|
|
389
|
-
onRetry?: () => void;
|
|
390
|
-
onMarkAsReadById?: (id: string) => void;
|
|
391
|
-
onDeleteById?: (id: string) => void;
|
|
392
|
-
onNavigateById?: (entityType?: NotificationEntityType, entityId?: string) => void;
|
|
393
|
-
onGlobalNotificationClick?: (notification: Notification) => void;
|
|
394
|
-
getActionLabel?: (entityType?: NotificationEntityType) => string | undefined;
|
|
395
|
-
renderEmpty?: () => ReactNode;
|
|
396
|
-
variant?: 'card' | 'center';
|
|
397
|
-
isActive?: boolean;
|
|
398
|
-
onToggleActive?: () => void;
|
|
399
|
-
unreadCount?: number;
|
|
400
|
-
onMarkAllAsRead?: () => void;
|
|
401
|
-
onFetchNotifications?: () => void;
|
|
402
|
-
onOpenChange?: (open: boolean) => void;
|
|
403
|
-
}
|
|
404
|
-
/**
|
|
405
|
-
* NotificationCard component - can display single notification, list of notifications, or center mode
|
|
406
|
-
*
|
|
407
|
-
* @param props - The notification card properties
|
|
408
|
-
* @returns JSX element representing the notification card, list, or center
|
|
409
|
-
*/
|
|
410
|
-
declare const NotificationCard: (props: NotificationCardProps) => react_jsx_runtime.JSX.Element;
|
|
411
|
-
/**
|
|
412
|
-
* Legacy NotificationCard component for backward compatibility
|
|
413
|
-
* Automatically detects mode based on provided props
|
|
414
|
-
*/
|
|
415
|
-
declare const LegacyNotificationCard: (props: LegacyNotificationCardProps) => react_jsx_runtime.JSX.Element;
|
|
416
|
-
|
|
417
|
-
export { type BackendNotification as B, type FetchNotificationsParams as F, type LegacyNotificationCardProps as L, type NotificationApiClient as N, type Notification as a, type NotificationGroup as b, NotificationEntityType as c, type NotificationType as d, NotificationCard as e, type NotificationItem as f, type BackendNotificationsResponse as g, type NotificationsResponse as h, type NotificationCardProps as i, LegacyNotificationCard as j };
|