analytica-frontend-lib 1.1.4 → 1.1.5
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/Menu/index.d.mts +1 -27
- package/dist/Menu/index.d.ts +1 -27
- package/dist/Menu/index.js +0 -43
- package/dist/Menu/index.js.map +1 -1
- package/dist/Menu/index.mjs +1 -44
- package/dist/Menu/index.mjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +0 -43
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -50
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6233,8 +6233,7 @@ import {
|
|
|
6233
6233
|
isValidElement as isValidElement5,
|
|
6234
6234
|
Children as Children5,
|
|
6235
6235
|
cloneElement as cloneElement5,
|
|
6236
|
-
useState as useState12
|
|
6237
|
-
useCallback
|
|
6236
|
+
useState as useState12
|
|
6238
6237
|
} from "react";
|
|
6239
6238
|
import { CaretLeft as CaretLeft2, CaretRight as CaretRight3 } from "phosphor-react";
|
|
6240
6239
|
import { jsx as jsx33, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
@@ -6517,47 +6516,6 @@ var injectStore5 = (children, store) => Children5.map(children, (child) => {
|
|
|
6517
6516
|
...typedChild.props.children ? { children: injectStore5(typedChild.props.children, store) } : {}
|
|
6518
6517
|
});
|
|
6519
6518
|
});
|
|
6520
|
-
var Breadcrumb = forwardRef17(
|
|
6521
|
-
({ currentPage, parentPageName, onBackClick, className, ...props }, ref) => {
|
|
6522
|
-
const handleBackToParent = useCallback(() => {
|
|
6523
|
-
onBackClick();
|
|
6524
|
-
}, [onBackClick]);
|
|
6525
|
-
const breadcrumbClassName = `py-4 ${typeof className === "string" ? className : ""}`;
|
|
6526
|
-
const { defaultValue: _unused, ...menuProps } = props;
|
|
6527
|
-
return /* @__PURE__ */ jsx33(
|
|
6528
|
-
Menu,
|
|
6529
|
-
{
|
|
6530
|
-
ref,
|
|
6531
|
-
variant: "breadcrumb",
|
|
6532
|
-
defaultValue: currentPage.toLowerCase(),
|
|
6533
|
-
className: breadcrumbClassName,
|
|
6534
|
-
...menuProps,
|
|
6535
|
-
children: /* @__PURE__ */ jsxs27(MenuContent, { variant: "breadcrumb", children: [
|
|
6536
|
-
/* @__PURE__ */ jsx33(
|
|
6537
|
-
MenuItem,
|
|
6538
|
-
{
|
|
6539
|
-
variant: "breadcrumb",
|
|
6540
|
-
value: parentPageName.toLowerCase(),
|
|
6541
|
-
onClick: handleBackToParent,
|
|
6542
|
-
separator: true,
|
|
6543
|
-
children: parentPageName
|
|
6544
|
-
}
|
|
6545
|
-
),
|
|
6546
|
-
/* @__PURE__ */ jsx33(
|
|
6547
|
-
MenuItem,
|
|
6548
|
-
{
|
|
6549
|
-
variant: "breadcrumb",
|
|
6550
|
-
value: currentPage.toLowerCase(),
|
|
6551
|
-
disabled: true,
|
|
6552
|
-
children: currentPage
|
|
6553
|
-
}
|
|
6554
|
-
)
|
|
6555
|
-
] })
|
|
6556
|
-
}
|
|
6557
|
-
);
|
|
6558
|
-
}
|
|
6559
|
-
);
|
|
6560
|
-
Breadcrumb.displayName = "Breadcrumb";
|
|
6561
6519
|
var Menu_default = Menu;
|
|
6562
6520
|
|
|
6563
6521
|
// src/components/Skeleton/Skeleton.tsx
|
|
@@ -6819,7 +6777,7 @@ import {
|
|
|
6819
6777
|
useContext,
|
|
6820
6778
|
useEffect as useEffect11,
|
|
6821
6779
|
useState as useState13,
|
|
6822
|
-
useCallback
|
|
6780
|
+
useCallback,
|
|
6823
6781
|
useMemo as useMemo4
|
|
6824
6782
|
} from "react";
|
|
6825
6783
|
import { useLocation, Navigate } from "react-router-dom";
|
|
@@ -6839,7 +6797,7 @@ var AuthProvider = ({
|
|
|
6839
6797
|
isLoading: true,
|
|
6840
6798
|
...initialAuthState
|
|
6841
6799
|
});
|
|
6842
|
-
const checkAuth =
|
|
6800
|
+
const checkAuth = useCallback(async () => {
|
|
6843
6801
|
try {
|
|
6844
6802
|
setAuthState((prev) => ({ ...prev, isLoading: true }));
|
|
6845
6803
|
if (!checkAuthFn) {
|
|
@@ -6870,7 +6828,7 @@ var AuthProvider = ({
|
|
|
6870
6828
|
return false;
|
|
6871
6829
|
}
|
|
6872
6830
|
}, [checkAuthFn, getUserFn, getSessionFn, getTokensFn]);
|
|
6873
|
-
const signOut =
|
|
6831
|
+
const signOut = useCallback(() => {
|
|
6874
6832
|
if (signOutFn) {
|
|
6875
6833
|
signOutFn();
|
|
6876
6834
|
}
|
|
@@ -7138,7 +7096,7 @@ import {
|
|
|
7138
7096
|
useMemo as useMemo6,
|
|
7139
7097
|
useId as useId10,
|
|
7140
7098
|
useState as useState14,
|
|
7141
|
-
useCallback as
|
|
7099
|
+
useCallback as useCallback2,
|
|
7142
7100
|
useRef as useRef9
|
|
7143
7101
|
} from "react";
|
|
7144
7102
|
|
|
@@ -7859,7 +7817,7 @@ var QuizMultipleChoice = ({
|
|
|
7859
7817
|
}
|
|
7860
7818
|
return prevSelectedValuesRef.current;
|
|
7861
7819
|
}, [selectedValues, currentQuestion?.id]);
|
|
7862
|
-
const handleSelectedValues =
|
|
7820
|
+
const handleSelectedValues = useCallback2(
|
|
7863
7821
|
(values) => {
|
|
7864
7822
|
if (currentQuestion) {
|
|
7865
7823
|
selectMultipleAnswer(currentQuestion.id, values);
|
|
@@ -7917,7 +7875,7 @@ var QuizDissertative = ({
|
|
|
7917
7875
|
selectDissertativeAnswer(currentQuestion.id, value);
|
|
7918
7876
|
}
|
|
7919
7877
|
};
|
|
7920
|
-
const adjustTextareaHeight =
|
|
7878
|
+
const adjustTextareaHeight = useCallback2(() => {
|
|
7921
7879
|
if (textareaRef.current) {
|
|
7922
7880
|
textareaRef.current.style.height = "auto";
|
|
7923
7881
|
const scrollHeight = textareaRef.current.scrollHeight;
|
|
@@ -9020,7 +8978,6 @@ export {
|
|
|
9020
8978
|
AlternativesList,
|
|
9021
8979
|
AuthProvider,
|
|
9022
8980
|
Badge_default as Badge,
|
|
9023
|
-
Breadcrumb,
|
|
9024
8981
|
Button_default as Button,
|
|
9025
8982
|
Calendar_default as Calendar,
|
|
9026
8983
|
CardAccordation,
|