@appcorp/fusion-storybook 0.2.80 → 0.2.81

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.
@@ -8,7 +8,7 @@ import { Timeline } from "../../components/timeline";
8
8
  import { useTranslations } from "next-intl";
9
9
  import { pageLimit } from "./constants";
10
10
  import { STUDENT_PROFILE_API_ROUTES } from "../../constants";
11
- import { STUDENT_PROFILE_ACTION_TYPES, useStudentProfileContext } from "./context";
11
+ import { STUDENT_PROFILE_ACTION_TYPES, useStudentProfileContext, } from "./context";
12
12
  import { useRef, useEffect, useCallback } from "react";
13
13
  const workspace = getCachedWorkspaceSync();
14
14
  const POLL_INTERVAL_MS = 2000;
@@ -52,7 +52,9 @@ async function pollBulkJob(jobId, signal, onProgress) {
52
52
  await new Promise((resolve) => setTimeout(resolve, POLL_INTERVAL_MS));
53
53
  if (signal.aborted)
54
54
  throw new Error("Polling cancelled");
55
- const res = await fetch(STUDENT_PROFILE_API_ROUTES.BULK_STATUS(jobId), { signal });
55
+ const res = await fetch(STUDENT_PROFILE_API_ROUTES.BULK_STATUS(jobId), {
56
+ signal,
57
+ });
56
58
  if (!res.ok)
57
59
  continue;
58
60
  const data = (await res.json());
@@ -242,7 +244,7 @@ export const StudentProfileMoreActions = () => {
242
244
  title: t("downloadPopulatedCsvTemplate"),
243
245
  handleOnClick: async () => {
244
246
  var _a;
245
- await handleGetAllRecords(((_a = workspace === null || workspace === void 0 ? void 0 : workspace.school) === null || _a === void 0 ? void 0 : _a.id) || "", 1000);
247
+ await handleGetAllRecords(((_a = workspace === null || workspace === void 0 ? void 0 : workspace.school) === null || _a === void 0 ? void 0 : _a.id) || "", 5000);
246
248
  },
247
249
  },
248
250
  { id: "2", title: t("updateYourDataInTheCsv") },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appcorp/fusion-storybook",
3
- "version": "0.2.80",
3
+ "version": "0.2.81",
4
4
  "scripts": {
5
5
  "build-storybook": "storybook build",
6
6
  "build:next": "next build",