analytica-frontend-lib 1.1.80 → 1.1.82

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/index.d.mts CHANGED
@@ -26,15 +26,13 @@ export { default as ProgressCircle } from './ProgressCircle/index.mjs';
26
26
  export { default as Stepper } from './Stepper/index.mjs';
27
27
  export { default as Calendar } from './Calendar/index.mjs';
28
28
  export { default as Modal } from './Modal/index.mjs';
29
- export { CardAccordation } from './Accordation/index.mjs';
30
- export { AlternativesList } from './Alternative/index.mjs';
31
29
  export { AlertDialog } from './AlertDialog/index.mjs';
32
- export { MultipleChoiceList } from './MultipleChoice/index.mjs';
33
- export { default as IconRender } from './IconRender/index.mjs';
30
+ export { default as LoadingModal } from './LoadingModal/index.mjs';
31
+ import { N as NotificationApiClient, a as Notification, F as FetchNotificationsParams, b as NotificationGroup, c as NotificationEntityType, d as NotificationType } from './NotificationCard-4GgB0Nsf.mjs';
32
+ export { B as BackendNotification, g as BackendNotificationsResponse, e as NotificationCard, f as NotificationItem, h as NotificationsResponse } from './NotificationCard-4GgB0Nsf.mjs';
33
+ export { ThemeToggle } from './ThemeToggle/index.mjs';
34
34
  export { d as SubjectData, e as SubjectEnum, I as SubjectIconProps, S as SubjectInfo, b as getSubjectColorClass, a as getSubjectIcon, g as getSubjectInfo, c as getSubjectName } from './SubjectInfo-Dvt0OodP.mjs';
35
- export { DeviceType, getDeviceType, useMobile } from './hooks/useMobile/index.mjs';
36
- export { useTheme } from './hooks/useTheme/index.mjs';
37
- export { cn, getSubjectColorWithOpacity, syncDropdownState } from './utils/index.mjs';
35
+ export { c as ThemeActions, T as ThemeMode, b as ThemeState, a as ThemeStore, u as useThemeStore } from './themeStore-P2X64zC-.mjs';
38
36
  export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger, ProfileToggleTheme } from './DropdownMenu/index.mjs';
39
37
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.mjs';
40
38
  export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.mjs';
@@ -43,7 +41,10 @@ export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle
43
41
  export { default as NotFound } from './NotFound/index.mjs';
44
42
  export { default as VideoPlayer } from './VideoPlayer/index.mjs';
45
43
  export { default as Whiteboard } from './Whiteboard/index.mjs';
44
+ export { default as DownloadButton, DownloadButtonProps, DownloadContent } from './DownloadButton/index.mjs';
46
45
  export { AuthProvider, ProtectedRoute, PublicRoute, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from './Auth/index.mjs';
46
+ export { CardAccordation } from './Accordation/index.mjs';
47
+ export { AlternativesList } from './Alternative/index.mjs';
47
48
  export { createZustandAuthAdapter } from './Auth/zustandAuthAdapter/index.mjs';
48
49
  export { useUrlAuthentication } from './Auth/useUrlAuthentication/index.mjs';
49
50
  export { useApiConfig } from './Auth/useApiConfig/index.mjs';
@@ -51,11 +52,11 @@ export { Quiz, QuizContent, QuizFooter, QuizHeader, QuizQuestionList, QuizTitle
51
52
  import * as react_jsx_runtime from 'react/jsx-runtime';
52
53
  import { Question } from './Quiz/useQuizStore/index.mjs';
53
54
  export { ANSWER_STATUS, QUESTION_DIFFICULTY, QUESTION_STATUS, QUESTION_TYPE, QUIZ_TYPE, QuestionResult, QuizInterface, QuizState, SUBTYPE_ENUM, UserAnswerItem, useQuizStore } from './Quiz/useQuizStore/index.mjs';
54
- export { default as LoadingModal } from './LoadingModal/index.mjs';
55
- import { N as NotificationApiClient, a as Notification, F as FetchNotificationsParams, b as NotificationGroup, c as NotificationEntityType, d as NotificationType } from './NotificationCard-4GgB0Nsf.mjs';
56
- export { B as BackendNotification, g as BackendNotificationsResponse, e as NotificationCard, f as NotificationItem, h as NotificationsResponse } from './NotificationCard-4GgB0Nsf.mjs';
57
- export { ThemeToggle } from './ThemeToggle/index.mjs';
58
- export { c as ThemeActions, T as ThemeMode, b as ThemeState, a as ThemeStore, u as useThemeStore } from './themeStore-P2X64zC-.mjs';
55
+ export { MultipleChoiceList } from './MultipleChoice/index.mjs';
56
+ export { default as IconRender } from './IconRender/index.mjs';
57
+ export { DeviceType, getDeviceType, useMobile } from './hooks/useMobile/index.mjs';
58
+ export { useTheme } from './hooks/useTheme/index.mjs';
59
+ export { cn, getSubjectColorWithOpacity, syncDropdownState } from './utils/index.mjs';
59
60
  import 'zustand/middleware';
60
61
  import 'clsx';
61
62
 
@@ -146,39 +147,6 @@ declare const CheckboxListItem: react.ForwardRefExoticComponent<{
146
147
  className?: string;
147
148
  } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "checked" | "type" | "name" | "onChange"> & react.RefAttributes<HTMLInputElement>>;
148
149
 
149
- declare const getStatusBadge: (status?: "correct" | "incorrect") => react_jsx_runtime.JSX.Element | null;
150
- interface QuizVariantInterface {
151
- paddingBottom?: string;
152
- }
153
- declare const QuizAlternative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
154
- declare const QuizMultipleChoice: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
155
- declare const QuizDissertative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
156
- declare const QuizTrueOrFalse: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
157
- declare const QuizConnectDots: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
158
- declare const QuizImageQuestion: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
159
-
160
- declare const QuizHeaderResult: react.ForwardRefExoticComponent<{
161
- className?: string;
162
- } & react.RefAttributes<HTMLDivElement>>;
163
- declare const QuizResultHeaderTitle: react.ForwardRefExoticComponent<{
164
- className?: string;
165
- showBadge?: boolean;
166
- } & react.RefAttributes<HTMLDivElement>>;
167
- declare const QuizResultTitle: react.ForwardRefExoticComponent<{
168
- className?: string;
169
- } & react.RefAttributes<HTMLParagraphElement>>;
170
- declare const QuizResultPerformance: react.ForwardRefExoticComponent<{
171
- showDetails?: boolean;
172
- } & react.RefAttributes<HTMLDivElement>>;
173
- declare const QuizListResult: react.ForwardRefExoticComponent<{
174
- className?: string;
175
- onSubjectClick?: (subject: string) => void;
176
- } & react.RefAttributes<HTMLDivElement>>;
177
- declare const QuizListResultByMateria: ({ subject, onQuestionClick, }: {
178
- subject: string;
179
- onQuestionClick: (question: Question) => void;
180
- }) => react_jsx_runtime.JSX.Element;
181
-
182
150
  /**
183
151
  * Notification store state interface
184
152
  */
@@ -427,4 +395,37 @@ declare const createNotificationsHook: (apiClient: NotificationApiClient) => ()
427
395
  }[];
428
396
  };
429
397
 
398
+ declare const getStatusBadge: (status?: "correct" | "incorrect") => react_jsx_runtime.JSX.Element | null;
399
+ interface QuizVariantInterface {
400
+ paddingBottom?: string;
401
+ }
402
+ declare const QuizAlternative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
403
+ declare const QuizMultipleChoice: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
404
+ declare const QuizDissertative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
405
+ declare const QuizTrueOrFalse: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
406
+ declare const QuizConnectDots: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
407
+ declare const QuizImageQuestion: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
408
+
409
+ declare const QuizHeaderResult: react.ForwardRefExoticComponent<{
410
+ className?: string;
411
+ } & react.RefAttributes<HTMLDivElement>>;
412
+ declare const QuizResultHeaderTitle: react.ForwardRefExoticComponent<{
413
+ className?: string;
414
+ showBadge?: boolean;
415
+ } & react.RefAttributes<HTMLDivElement>>;
416
+ declare const QuizResultTitle: react.ForwardRefExoticComponent<{
417
+ className?: string;
418
+ } & react.RefAttributes<HTMLParagraphElement>>;
419
+ declare const QuizResultPerformance: react.ForwardRefExoticComponent<{
420
+ showDetails?: boolean;
421
+ } & react.RefAttributes<HTMLDivElement>>;
422
+ declare const QuizListResult: react.ForwardRefExoticComponent<{
423
+ className?: string;
424
+ onSubjectClick?: (subject: string) => void;
425
+ } & react.RefAttributes<HTMLDivElement>>;
426
+ declare const QuizListResultByMateria: ({ subject, onQuestionClick, }: {
427
+ subject: string;
428
+ onQuestionClick: (question: Question) => void;
429
+ }) => react_jsx_runtime.JSX.Element;
430
+
430
431
  export { CheckboxList, CheckboxListItem, FetchNotificationsParams, Notification, type NotificationActions, NotificationApiClient, NotificationEntityType, NotificationGroup, type NotificationState, type NotificationStore, NotificationType, Question, QuizAlternative, QuizConnectDots, QuizDissertative, QuizHeaderResult, QuizImageQuestion, QuizListResult, QuizListResultByMateria, QuizMultipleChoice, QuizResultHeaderTitle, QuizResultPerformance, QuizResultTitle, QuizTrueOrFalse, createNotificationStore, createNotificationsHook, createUseNotificationStore, createUseNotifications, formatTimeAgo, getStatusBadge };
package/dist/index.d.ts CHANGED
@@ -26,15 +26,13 @@ export { default as ProgressCircle } from './ProgressCircle/index.js';
26
26
  export { default as Stepper } from './Stepper/index.js';
27
27
  export { default as Calendar } from './Calendar/index.js';
28
28
  export { default as Modal } from './Modal/index.js';
29
- export { CardAccordation } from './Accordation/index.js';
30
- export { AlternativesList } from './Alternative/index.js';
31
29
  export { AlertDialog } from './AlertDialog/index.js';
32
- export { MultipleChoiceList } from './MultipleChoice/index.js';
33
- export { default as IconRender } from './IconRender/index.js';
30
+ export { default as LoadingModal } from './LoadingModal/index.js';
31
+ import { N as NotificationApiClient, a as Notification, F as FetchNotificationsParams, b as NotificationGroup, c as NotificationEntityType, d as NotificationType } from './NotificationCard-4GgB0Nsf.js';
32
+ export { B as BackendNotification, g as BackendNotificationsResponse, e as NotificationCard, f as NotificationItem, h as NotificationsResponse } from './NotificationCard-4GgB0Nsf.js';
33
+ export { ThemeToggle } from './ThemeToggle/index.js';
34
34
  export { d as SubjectData, e as SubjectEnum, I as SubjectIconProps, S as SubjectInfo, b as getSubjectColorClass, a as getSubjectIcon, g as getSubjectInfo, c as getSubjectName } from './SubjectInfo-Dvt0OodP.js';
35
- export { DeviceType, getDeviceType, useMobile } from './hooks/useMobile/index.js';
36
- export { useTheme } from './hooks/useTheme/index.js';
37
- export { cn, getSubjectColorWithOpacity, syncDropdownState } from './utils/index.js';
35
+ export { c as ThemeActions, T as ThemeMode, b as ThemeState, a as ThemeStore, u as useThemeStore } from './themeStore-P2X64zC-.js';
38
36
  export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuSection, ProfileMenuTrigger, ProfileToggleTheme } from './DropdownMenu/index.js';
39
37
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.js';
40
38
  export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.js';
@@ -43,7 +41,10 @@ export { Skeleton, SkeletonCard, SkeletonCircle, SkeletonList, SkeletonRectangle
43
41
  export { default as NotFound } from './NotFound/index.js';
44
42
  export { default as VideoPlayer } from './VideoPlayer/index.js';
45
43
  export { default as Whiteboard } from './Whiteboard/index.js';
44
+ export { default as DownloadButton, DownloadButtonProps, DownloadContent } from './DownloadButton/index.js';
46
45
  export { AuthProvider, ProtectedRoute, PublicRoute, getRootDomain, useAuth, useAuthGuard, useRouteAuth, withAuth } from './Auth/index.js';
46
+ export { CardAccordation } from './Accordation/index.js';
47
+ export { AlternativesList } from './Alternative/index.js';
47
48
  export { createZustandAuthAdapter } from './Auth/zustandAuthAdapter/index.js';
48
49
  export { useUrlAuthentication } from './Auth/useUrlAuthentication/index.js';
49
50
  export { useApiConfig } from './Auth/useApiConfig/index.js';
@@ -51,11 +52,11 @@ export { Quiz, QuizContent, QuizFooter, QuizHeader, QuizQuestionList, QuizTitle
51
52
  import * as react_jsx_runtime from 'react/jsx-runtime';
52
53
  import { Question } from './Quiz/useQuizStore/index.js';
53
54
  export { ANSWER_STATUS, QUESTION_DIFFICULTY, QUESTION_STATUS, QUESTION_TYPE, QUIZ_TYPE, QuestionResult, QuizInterface, QuizState, SUBTYPE_ENUM, UserAnswerItem, useQuizStore } from './Quiz/useQuizStore/index.js';
54
- export { default as LoadingModal } from './LoadingModal/index.js';
55
- import { N as NotificationApiClient, a as Notification, F as FetchNotificationsParams, b as NotificationGroup, c as NotificationEntityType, d as NotificationType } from './NotificationCard-4GgB0Nsf.js';
56
- export { B as BackendNotification, g as BackendNotificationsResponse, e as NotificationCard, f as NotificationItem, h as NotificationsResponse } from './NotificationCard-4GgB0Nsf.js';
57
- export { ThemeToggle } from './ThemeToggle/index.js';
58
- export { c as ThemeActions, T as ThemeMode, b as ThemeState, a as ThemeStore, u as useThemeStore } from './themeStore-P2X64zC-.js';
55
+ export { MultipleChoiceList } from './MultipleChoice/index.js';
56
+ export { default as IconRender } from './IconRender/index.js';
57
+ export { DeviceType, getDeviceType, useMobile } from './hooks/useMobile/index.js';
58
+ export { useTheme } from './hooks/useTheme/index.js';
59
+ export { cn, getSubjectColorWithOpacity, syncDropdownState } from './utils/index.js';
59
60
  import 'zustand/middleware';
60
61
  import 'clsx';
61
62
 
@@ -146,39 +147,6 @@ declare const CheckboxListItem: react.ForwardRefExoticComponent<{
146
147
  className?: string;
147
148
  } & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "value" | "checked" | "type" | "name" | "onChange"> & react.RefAttributes<HTMLInputElement>>;
148
149
 
149
- declare const getStatusBadge: (status?: "correct" | "incorrect") => react_jsx_runtime.JSX.Element | null;
150
- interface QuizVariantInterface {
151
- paddingBottom?: string;
152
- }
153
- declare const QuizAlternative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
154
- declare const QuizMultipleChoice: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
155
- declare const QuizDissertative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
156
- declare const QuizTrueOrFalse: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
157
- declare const QuizConnectDots: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
158
- declare const QuizImageQuestion: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
159
-
160
- declare const QuizHeaderResult: react.ForwardRefExoticComponent<{
161
- className?: string;
162
- } & react.RefAttributes<HTMLDivElement>>;
163
- declare const QuizResultHeaderTitle: react.ForwardRefExoticComponent<{
164
- className?: string;
165
- showBadge?: boolean;
166
- } & react.RefAttributes<HTMLDivElement>>;
167
- declare const QuizResultTitle: react.ForwardRefExoticComponent<{
168
- className?: string;
169
- } & react.RefAttributes<HTMLParagraphElement>>;
170
- declare const QuizResultPerformance: react.ForwardRefExoticComponent<{
171
- showDetails?: boolean;
172
- } & react.RefAttributes<HTMLDivElement>>;
173
- declare const QuizListResult: react.ForwardRefExoticComponent<{
174
- className?: string;
175
- onSubjectClick?: (subject: string) => void;
176
- } & react.RefAttributes<HTMLDivElement>>;
177
- declare const QuizListResultByMateria: ({ subject, onQuestionClick, }: {
178
- subject: string;
179
- onQuestionClick: (question: Question) => void;
180
- }) => react_jsx_runtime.JSX.Element;
181
-
182
150
  /**
183
151
  * Notification store state interface
184
152
  */
@@ -427,4 +395,37 @@ declare const createNotificationsHook: (apiClient: NotificationApiClient) => ()
427
395
  }[];
428
396
  };
429
397
 
398
+ declare const getStatusBadge: (status?: "correct" | "incorrect") => react_jsx_runtime.JSX.Element | null;
399
+ interface QuizVariantInterface {
400
+ paddingBottom?: string;
401
+ }
402
+ declare const QuizAlternative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
403
+ declare const QuizMultipleChoice: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
404
+ declare const QuizDissertative: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
405
+ declare const QuizTrueOrFalse: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
406
+ declare const QuizConnectDots: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
407
+ declare const QuizImageQuestion: ({ paddingBottom }: QuizVariantInterface) => react_jsx_runtime.JSX.Element;
408
+
409
+ declare const QuizHeaderResult: react.ForwardRefExoticComponent<{
410
+ className?: string;
411
+ } & react.RefAttributes<HTMLDivElement>>;
412
+ declare const QuizResultHeaderTitle: react.ForwardRefExoticComponent<{
413
+ className?: string;
414
+ showBadge?: boolean;
415
+ } & react.RefAttributes<HTMLDivElement>>;
416
+ declare const QuizResultTitle: react.ForwardRefExoticComponent<{
417
+ className?: string;
418
+ } & react.RefAttributes<HTMLParagraphElement>>;
419
+ declare const QuizResultPerformance: react.ForwardRefExoticComponent<{
420
+ showDetails?: boolean;
421
+ } & react.RefAttributes<HTMLDivElement>>;
422
+ declare const QuizListResult: react.ForwardRefExoticComponent<{
423
+ className?: string;
424
+ onSubjectClick?: (subject: string) => void;
425
+ } & react.RefAttributes<HTMLDivElement>>;
426
+ declare const QuizListResultByMateria: ({ subject, onQuestionClick, }: {
427
+ subject: string;
428
+ onQuestionClick: (question: Question) => void;
429
+ }) => react_jsx_runtime.JSX.Element;
430
+
430
431
  export { CheckboxList, CheckboxListItem, FetchNotificationsParams, Notification, type NotificationActions, NotificationApiClient, NotificationEntityType, NotificationGroup, type NotificationState, type NotificationStore, NotificationType, Question, QuizAlternative, QuizConnectDots, QuizDissertative, QuizHeaderResult, QuizImageQuestion, QuizListResult, QuizListResultByMateria, QuizMultipleChoice, QuizResultHeaderTitle, QuizResultPerformance, QuizResultTitle, QuizTrueOrFalse, createNotificationStore, createNotificationsHook, createUseNotificationStore, createUseNotifications, formatTimeAgo, getStatusBadge };