analytica-frontend-lib 1.1.64 → 1.1.66
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.js +28 -2
- package/dist/Accordation/index.js.map +1 -1
- package/dist/Accordation/index.mjs +28 -2
- package/dist/Accordation/index.mjs.map +1 -1
- package/dist/Card/index.d.mts +1 -1
- package/dist/Card/index.d.ts +1 -1
- package/dist/Card/index.js +28 -2
- package/dist/Card/index.js.map +1 -1
- package/dist/Card/index.mjs +28 -2
- package/dist/Card/index.mjs.map +1 -1
- package/dist/NotificationCard/index.d.mts +1 -1
- package/dist/NotificationCard/index.d.ts +1 -1
- package/dist/NotificationCard/index.js +23 -2
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +21 -1
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/{NotificationCard-4GgB0Nsf.d.mts → NotificationCard-DMdkuVEr.d.mts} +7 -2
- package/dist/{NotificationCard-4GgB0Nsf.d.ts → NotificationCard-DMdkuVEr.d.ts} +7 -2
- package/dist/Quiz/index.js +29 -3
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +29 -3
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Quiz/useQuizStore/index.d.mts +1 -1
- package/dist/Quiz/useQuizStore/index.d.ts +1 -1
- package/dist/Quiz/useQuizStore/index.js +1 -1
- package/dist/Quiz/useQuizStore/index.js.map +1 -1
- package/dist/Quiz/useQuizStore/index.mjs +1 -1
- package/dist/Quiz/useQuizStore/index.mjs.map +1 -1
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +179 -127
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +178 -127
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Types for notification system
|
|
@@ -200,6 +200,11 @@ interface NotificationApiClient {
|
|
|
200
200
|
}>;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
/**
|
|
204
|
+
* Synchronizes notification state when dropdown closes externally
|
|
205
|
+
* This ensures the notification icon state matches the dropdown state
|
|
206
|
+
*/
|
|
207
|
+
declare const syncNotificationState: (open: boolean, isNotificationActive: boolean, setActiveStates: Dispatch<SetStateAction<Record<string, boolean>>>, key?: string) => void;
|
|
203
208
|
interface NotificationItem extends Omit<Notification, 'createdAt'> {
|
|
204
209
|
time: string;
|
|
205
210
|
createdAt: string | Date;
|
|
@@ -414,4 +419,4 @@ declare const NotificationCard: (props: NotificationCardProps) => react_jsx_runt
|
|
|
414
419
|
*/
|
|
415
420
|
declare const LegacyNotificationCard: (props: LegacyNotificationCardProps) => react_jsx_runtime.JSX.Element;
|
|
416
421
|
|
|
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 };
|
|
422
|
+
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, syncNotificationState as s };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
2
|
+
import { ReactNode, Dispatch, SetStateAction } from 'react';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Types for notification system
|
|
@@ -200,6 +200,11 @@ interface NotificationApiClient {
|
|
|
200
200
|
}>;
|
|
201
201
|
}
|
|
202
202
|
|
|
203
|
+
/**
|
|
204
|
+
* Synchronizes notification state when dropdown closes externally
|
|
205
|
+
* This ensures the notification icon state matches the dropdown state
|
|
206
|
+
*/
|
|
207
|
+
declare const syncNotificationState: (open: boolean, isNotificationActive: boolean, setActiveStates: Dispatch<SetStateAction<Record<string, boolean>>>, key?: string) => void;
|
|
203
208
|
interface NotificationItem extends Omit<Notification, 'createdAt'> {
|
|
204
209
|
time: string;
|
|
205
210
|
createdAt: string | Date;
|
|
@@ -414,4 +419,4 @@ declare const NotificationCard: (props: NotificationCardProps) => react_jsx_runt
|
|
|
414
419
|
*/
|
|
415
420
|
declare const LegacyNotificationCard: (props: LegacyNotificationCardProps) => react_jsx_runtime.JSX.Element;
|
|
416
421
|
|
|
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 };
|
|
422
|
+
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, syncNotificationState as s };
|
package/dist/Quiz/index.js
CHANGED
|
@@ -4729,10 +4729,36 @@ var CardStatus = (0, import_react13.forwardRef)(
|
|
|
4729
4729
|
return "Incorreta";
|
|
4730
4730
|
case "unanswered":
|
|
4731
4731
|
return "Em branco";
|
|
4732
|
+
case "pending":
|
|
4733
|
+
return "Avalia\xE7\xE3o pendente";
|
|
4732
4734
|
default:
|
|
4733
4735
|
return "Em branco";
|
|
4734
4736
|
}
|
|
4735
4737
|
};
|
|
4738
|
+
const getIconBadge = (status2) => {
|
|
4739
|
+
switch (status2) {
|
|
4740
|
+
case "correct":
|
|
4741
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.CheckCircle, {});
|
|
4742
|
+
case "incorrect":
|
|
4743
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.XCircle, {});
|
|
4744
|
+
case "pending":
|
|
4745
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.Clock, {});
|
|
4746
|
+
default:
|
|
4747
|
+
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_phosphor_react9.XCircle, {});
|
|
4748
|
+
}
|
|
4749
|
+
};
|
|
4750
|
+
const getActionBadge = (status2) => {
|
|
4751
|
+
switch (status2) {
|
|
4752
|
+
case "correct":
|
|
4753
|
+
return "success";
|
|
4754
|
+
case "incorrect":
|
|
4755
|
+
return "error";
|
|
4756
|
+
case "pending":
|
|
4757
|
+
return "info";
|
|
4758
|
+
default:
|
|
4759
|
+
return "info";
|
|
4760
|
+
}
|
|
4761
|
+
};
|
|
4736
4762
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
4737
4763
|
CardBase,
|
|
4738
4764
|
{
|
|
@@ -4748,10 +4774,10 @@ var CardStatus = (0, import_react13.forwardRef)(
|
|
|
4748
4774
|
status && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
4749
4775
|
Badge_default,
|
|
4750
4776
|
{
|
|
4751
|
-
action: status
|
|
4777
|
+
action: getActionBadge(status),
|
|
4752
4778
|
variant: "solid",
|
|
4753
4779
|
size: "medium",
|
|
4754
|
-
iconLeft: status
|
|
4780
|
+
iconLeft: getIconBadge(status),
|
|
4755
4781
|
children: getLabelBadge(status)
|
|
4756
4782
|
}
|
|
4757
4783
|
),
|
|
@@ -5598,7 +5624,7 @@ var QuizContent = (0, import_react14.forwardRef)(({ paddingBottom }) => {
|
|
|
5598
5624
|
const currentQuestion = getCurrentQuestion();
|
|
5599
5625
|
const questionComponents = {
|
|
5600
5626
|
["ALTERNATIVA" /* ALTERNATIVA */]: QuizAlternative,
|
|
5601
|
-
["
|
|
5627
|
+
["MULTIPLA_ESCOLHA" /* MULTIPLA_ESCOLHA */]: QuizMultipleChoice,
|
|
5602
5628
|
["DISSERTATIVA" /* DISSERTATIVA */]: QuizDissertative,
|
|
5603
5629
|
["VERDADEIRO_FALSO" /* VERDADEIRO_FALSO */]: QuizTrueOrFalse,
|
|
5604
5630
|
["LIGAR_PONTOS" /* LIGAR_PONTOS */]: QuizConnectDots,
|