analytica-frontend-lib 1.2.45 → 1.2.47
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/ActivityCardQuestionBanks/index.css +20 -0
- package/dist/ActivityCardQuestionBanks/index.css.map +1 -1
- package/dist/ActivityCardQuestionPreview/index.css +20 -0
- package/dist/ActivityCardQuestionPreview/index.css.map +1 -1
- package/dist/ActivityDetails/index.css +20 -0
- package/dist/ActivityDetails/index.css.map +1 -1
- package/dist/ActivityFilters/index.css +20 -0
- package/dist/ActivityFilters/index.css.map +1 -1
- package/dist/ActivityPreview/index.css +20 -0
- package/dist/ActivityPreview/index.css.map +1 -1
- package/dist/AlertManager/index.css +20 -0
- package/dist/AlertManager/index.css.map +1 -1
- package/dist/RecommendedLessonsHistory/index.css +19327 -0
- package/dist/RecommendedLessonsHistory/index.css.map +1 -0
- package/dist/RecommendedLessonsHistory/index.d.ts +2 -0
- package/dist/RecommendedLessonsHistory/index.d.ts.map +1 -0
- package/dist/RecommendedLessonsHistory/index.js +6775 -0
- package/dist/RecommendedLessonsHistory/index.js.map +1 -0
- package/dist/RecommendedLessonsHistory/index.mjs +6815 -0
- package/dist/RecommendedLessonsHistory/index.mjs.map +1 -0
- package/dist/SendActivityModal/index.css +20 -0
- package/dist/SendActivityModal/index.css.map +1 -1
- package/dist/SendActivityModal/index.js +16 -1
- package/dist/SendActivityModal/index.js.map +1 -1
- package/dist/SendActivityModal/index.mjs +16 -1
- package/dist/SendActivityModal/index.mjs.map +1 -1
- package/dist/TableProvider/index.css +20 -0
- package/dist/TableProvider/index.css.map +1 -1
- package/dist/hooks/useRecommendedLessons/index.d.ts +355 -0
- package/dist/hooks/useRecommendedLessons/index.d.ts.map +1 -0
- package/dist/hooks/useRecommendedLessons/index.js +195 -0
- package/dist/hooks/useRecommendedLessons/index.js.map +1 -0
- package/dist/hooks/useRecommendedLessons/index.mjs +155 -0
- package/dist/hooks/useRecommendedLessons/index.mjs.map +1 -0
- package/dist/hooks/useRecommendedLessons.d.ts +355 -0
- package/dist/hooks/useRecommendedLessons.d.ts.map +1 -0
- package/dist/index.css +20 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +714 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +701 -1
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +20 -0
- package/dist/styles.css.map +1 -1
- package/dist/types/recommendedLessons/index.d.ts +182 -0
- package/dist/types/recommendedLessons/index.d.ts.map +1 -0
- package/dist/types/recommendedLessons/index.js +75 -0
- package/dist/types/recommendedLessons/index.js.map +1 -0
- package/dist/types/recommendedLessons/index.mjs +45 -0
- package/dist/types/recommendedLessons/index.mjs.map +1 -0
- package/dist/types/recommendedLessons.d.ts +182 -0
- package/dist/types/recommendedLessons.d.ts.map +1 -0
- package/package.json +2 -1
|
@@ -6147,7 +6147,8 @@ var SendActivityModal = ({
|
|
|
6147
6147
|
categories: initialCategories,
|
|
6148
6148
|
onCategoriesChange,
|
|
6149
6149
|
isLoading = false,
|
|
6150
|
-
onError
|
|
6150
|
+
onError,
|
|
6151
|
+
initialData
|
|
6151
6152
|
}) => {
|
|
6152
6153
|
const store = useSendActivityModalStore();
|
|
6153
6154
|
const reset = useSendActivityModalStore((state) => state.reset);
|
|
@@ -6158,16 +6159,30 @@ var SendActivityModal = ({
|
|
|
6158
6159
|
(state) => state.categories
|
|
6159
6160
|
);
|
|
6160
6161
|
const categoriesInitialized = useRef8(false);
|
|
6162
|
+
const prevInitialDataRef = useRef8(
|
|
6163
|
+
void 0
|
|
6164
|
+
);
|
|
6161
6165
|
useEffect11(() => {
|
|
6162
6166
|
if (isOpen && initialCategories.length > 0 && !categoriesInitialized.current) {
|
|
6163
6167
|
setCategories(initialCategories);
|
|
6164
6168
|
categoriesInitialized.current = true;
|
|
6165
6169
|
}
|
|
6166
6170
|
}, [isOpen, initialCategories, setCategories]);
|
|
6171
|
+
useEffect11(() => {
|
|
6172
|
+
if (isOpen && initialData && prevInitialDataRef.current !== initialData) {
|
|
6173
|
+
store.setFormData({
|
|
6174
|
+
title: initialData.title ?? "",
|
|
6175
|
+
subtype: initialData.subtype ?? "TAREFA",
|
|
6176
|
+
notification: initialData.notification ?? ""
|
|
6177
|
+
});
|
|
6178
|
+
prevInitialDataRef.current = initialData;
|
|
6179
|
+
}
|
|
6180
|
+
}, [isOpen, initialData, store]);
|
|
6167
6181
|
useEffect11(() => {
|
|
6168
6182
|
if (!isOpen) {
|
|
6169
6183
|
reset();
|
|
6170
6184
|
categoriesInitialized.current = false;
|
|
6185
|
+
prevInitialDataRef.current = void 0;
|
|
6171
6186
|
}
|
|
6172
6187
|
}, [isOpen, reset]);
|
|
6173
6188
|
const handleCategoriesChange = useCallback(
|