@cuemath/leap 3.5.50 → 3.5.51-as10

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.
Files changed (98) hide show
  1. package/dist/assets/illustrations/illustrations.js +4 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +27 -31
  4. package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -1
  5. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js +21 -13
  6. package/dist/features/chapters-v2/comps/node-card/node-card-tags.js.map +1 -1
  7. package/dist/features/chapters-v2/constants/node-constants.js +1 -1
  8. package/dist/features/chapters-v2/constants/node-constants.js.map +1 -1
  9. package/dist/features/chapters-v2/utils/node-card-utils.js +86 -79
  10. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  11. package/dist/features/homework/homework-card-view.js +125 -98
  12. package/dist/features/homework/homework-card-view.js.map +1 -1
  13. package/dist/features/homework/homework-card.js +196 -161
  14. package/dist/features/homework/homework-card.js.map +1 -1
  15. package/dist/features/homework/hw-card-list/api/get-homeworks.js +1 -1
  16. package/dist/features/homework/hw-card-list/api/get-homeworks.js.map +1 -1
  17. package/dist/features/homework/hw-card-list/hw-card-list-types.js +5 -0
  18. package/dist/features/homework/hw-card-list/hw-card-list-types.js.map +1 -0
  19. package/dist/features/homework/hw-card-list/hw-card-list-view.js +96 -86
  20. package/dist/features/homework/hw-card-list/hw-card-list-view.js.map +1 -1
  21. package/dist/features/homework/hw-card-list/hw-card-list.js +45 -43
  22. package/dist/features/homework/hw-card-list/hw-card-list.js.map +1 -1
  23. package/dist/features/homework/styles.js +0 -1
  24. package/dist/features/homework/styles.js.map +1 -1
  25. package/dist/features/homework/utils.js +18 -15
  26. package/dist/features/homework/utils.js.map +1 -1
  27. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js +325 -201
  28. package/dist/features/journey/hooks/use-home-page-journey/home-page-homeworks-mock.js.map +1 -1
  29. package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js +59 -56
  30. package/dist/features/journey/hooks/use-home-page-journey/use-home-page-journey.js.map +1 -1
  31. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js +17 -15
  32. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-assigned.js.map +1 -1
  33. package/dist/features/math-fit/api/get-mathfit-assessment.js +10 -0
  34. package/dist/features/math-fit/api/get-mathfit-assessment.js.map +1 -0
  35. package/dist/features/math-fit/math-fit/math-fit.js +37 -0
  36. package/dist/features/math-fit/math-fit/math-fit.js.map +1 -0
  37. package/dist/features/math-fit/math-fit-card/math-fit-card-styled.js +22 -0
  38. package/dist/features/math-fit/math-fit-card/math-fit-card-styled.js.map +1 -0
  39. package/dist/features/math-fit/math-fit-card/math-fit-card.js +80 -0
  40. package/dist/features/math-fit/math-fit-card/math-fit-card.js.map +1 -0
  41. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-styled.js +24 -0
  42. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-styled.js.map +1 -0
  43. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-types.js +5 -0
  44. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card-types.js.map +1 -0
  45. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card.js +99 -0
  46. package/dist/features/math-fit/math-fit-overview/comps/section-card/section-card.js.map +1 -0
  47. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item-styled.js +9 -0
  48. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item-styled.js.map +1 -0
  49. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item.js +26 -0
  50. package/dist/features/math-fit/math-fit-overview/comps/stat-item/stat-item.js.map +1 -0
  51. package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js +63 -0
  52. package/dist/features/math-fit/math-fit-overview/math-fit-overview-helpers.js.map +1 -0
  53. package/dist/features/math-fit/math-fit-overview/math-fit-overview-styled.js +9 -0
  54. package/dist/features/math-fit/math-fit-overview/math-fit-overview-styled.js.map +1 -0
  55. package/dist/features/math-fit/math-fit-overview/math-fit-overview-types.js +7 -0
  56. package/dist/features/math-fit/math-fit-overview/math-fit-overview-types.js.map +1 -0
  57. package/dist/features/math-fit/math-fit-overview/math-fit-overview.js +71 -0
  58. package/dist/features/math-fit/math-fit-overview/math-fit-overview.js.map +1 -0
  59. package/dist/features/math-fit/math-fit-report/comps/report-header/report-header-styled.js +38 -0
  60. package/dist/features/math-fit/math-fit-report/comps/report-header/report-header-styled.js.map +1 -0
  61. package/dist/features/math-fit/math-fit-report/comps/report-header/report-header.js +58 -0
  62. package/dist/features/math-fit/math-fit-report/comps/report-header/report-header.js.map +1 -0
  63. package/dist/features/math-fit/math-fit-report/comps/score-badge/score-badge-styled.js +28 -0
  64. package/dist/features/math-fit/math-fit-report/comps/score-badge/score-badge-styled.js.map +1 -0
  65. package/dist/features/math-fit/math-fit-report/comps/score-badge/score-badge.js +30 -0
  66. package/dist/features/math-fit/math-fit-report/comps/score-badge/score-badge.js.map +1 -0
  67. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section-styled.js +9 -0
  68. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section-styled.js.map +1 -0
  69. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js +82 -0
  70. package/dist/features/math-fit/math-fit-report/comps/score-section/score-section.js.map +1 -0
  71. package/dist/features/math-fit/math-fit-report/math-fit-report-helpers.js +42 -0
  72. package/dist/features/math-fit/math-fit-report/math-fit-report-helpers.js.map +1 -0
  73. package/dist/features/math-fit/math-fit-report/math-fit-report.js +68 -0
  74. package/dist/features/math-fit/math-fit-report/math-fit-report.js.map +1 -0
  75. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js +1 -1
  76. package/dist/features/milestone/milestone-list-container/api/get-tests-list.js.map +1 -1
  77. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js +38 -36
  78. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-list.js.map +1 -1
  79. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js +57 -55
  80. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-tabs/milestone-tabs.js.map +1 -1
  81. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js +59 -57
  82. package/dist/features/milestone/milestone-list-container/milestone-list/milestone-widget/milestone-widget.js.map +1 -1
  83. package/dist/features/milestone/milestone-list-container/milestone-list-container.js +54 -52
  84. package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
  85. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +39 -37
  86. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js.map +1 -1
  87. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js +48 -56
  88. package/dist/features/milestone/milestone-tests/test-list-v2/test-list-view.js.map +1 -1
  89. package/dist/features/sheet-v2/resource-list/resource-list.js +27 -23
  90. package/dist/features/sheet-v2/resource-list/resource-list.js.map +1 -1
  91. package/dist/index.d.ts +132 -7
  92. package/dist/index.js +131 -121
  93. package/dist/index.js.map +1 -1
  94. package/dist/static/clock-green.020570d3.svg +1 -0
  95. package/dist/static/math-fit-bg.4bfa3244.svg +1 -0
  96. package/dist/static/math-fit-card-bg.20c826bb.svg +1 -0
  97. package/dist/static/question-mark-blue.b6a7f37d.svg +1 -0
  98. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"test-list-view.js","sources":["../../../../../src/features/milestone/milestone-tests/test-list-v2/test-list-view.tsx"],"sourcesContent":["import { pluralize } from 'humanize-plus';\nimport { type FC, memo } from 'react';\n\nimport Plus2Icon from '../../../../assets/line-icons/icons/plus2';\nimport type { TNodeDataTestItemsDataProps } from '../../../chapters-v2/comps/node-card/node-card-types';\nimport HomeworkCard from '../../../homework/homework-card';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { MILESTONE_WIDGET_MIN_HEIGHT } from '../../constants';\nimport { TESTS_CREATION_ANALYTICS_EVENTS } from '../tests-creation/tests-creation-analytics-events';\nimport * as Styled from './test-list-view-styled';\nimport type { ITestSheetsList } from './types';\n\nconst getTopicNameFromItems = (items?: TNodeDataTestItemsDataProps[]): string => {\n if (!items?.length) return '';\n\n const uniqueTopics = new Set<string>();\n\n for (const item of items) {\n uniqueTopics.add(item.chapter_name);\n }\n\n return [...uniqueTopics].join(', ');\n};\n\nconst TestSheetsList: FC<ITestSheetsList> = memo(function TestSheetsList({\n milestoneId,\n studentId,\n sheets,\n userType,\n onCreateNewTest,\n isMilestoneActive,\n canUpdatedPlan,\n ...sheetCallbacks\n}) {\n return (\n <FlexView\n $height={MILESTONE_WIDGET_MIN_HEIGHT}\n $position=\"relative\"\n $justifyContent=\"space-between\"\n >\n <Styled.TestSheetItemWrapper>\n {sheets.map((sheet, idx) => {\n const {\n items,\n node_id: nodeId,\n sheet_time: sheetTime,\n total_questions: totalQuestions,\n worksheet_id: worksheetId,\n is_timed: isTimed,\n } = sheet;\n const totalSheetTime = Math.ceil((sheetTime || 0) / 60);\n const testChapterName = getTopicNameFromItems(items);\n const sheetTimeText = isTimed ? `${totalSheetTime} Mins` : '';\n const totalQuestionsText = totalQuestions\n ? `${totalQuestions} ${pluralize(totalQuestions, 'Question')}`\n : '';\n const subHeader = `${totalQuestionsText} ${sheetTimeText}`;\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}_${idx}`}\n userType={userType}\n header={testChapterName}\n subHeader={subHeader}\n nodeData={sheet}\n renderAs=\"milestone\"\n studentId={studentId}\n shouldOpenOnRight={(idx + 1) % 3 === 0}\n {...sheetCallbacks}\n />\n );\n })}\n </Styled.TestSheetItemWrapper>\n\n {userType === 'TEACHER' && canUpdatedPlan && (\n <Styled.IconContainer\n $flexDirection=\"row\"\n $justifyContent=\"flex-end\"\n $gapX={1}\n $gutterX={1}\n >\n <Styled.IconButtonCover>\n <IconButton\n Icon={Plus2Icon}\n renderAs=\"secondary\"\n analyticsLabel={TESTS_CREATION_ANALYTICS_EVENTS.CUSTOM_TEST_CREATION_STARTED}\n onClick={onCreateNewTest}\n disabled={!isMilestoneActive}\n analyticsProps={{\n milestone_id: milestoneId,\n }}\n />\n </Styled.IconButtonCover>\n </Styled.IconContainer>\n )}\n </FlexView>\n );\n});\n\nexport default TestSheetsList;\n"],"names":["getTopicNameFromItems","items","uniqueTopics","item","TestSheetsList","memo","milestoneId","studentId","sheets","userType","onCreateNewTest","isMilestoneActive","canUpdatedPlan","sheetCallbacks","jsxs","FlexView","MILESTONE_WIDGET_MIN_HEIGHT","jsx","Styled.TestSheetItemWrapper","sheet","idx","nodeId","sheetTime","totalQuestions","worksheetId","isTimed","totalSheetTime","testChapterName","sheetTimeText","subHeader","pluralize","HomeworkCard","Styled.IconContainer","Styled.IconButtonCover","IconButton","Plus2Icon","TESTS_CREATION_ANALYTICS_EVENTS"],"mappings":";;;;;;;;;;AAaA,MAAMA,IAAwB,CAACC,MAAkD;AAC3E,MAAA,EAACA,KAAA,QAAAA,EAAO,QAAe,QAAA;AAErB,QAAAC,wBAAmB;AAEzB,aAAWC,KAAQF;AACJ,IAAAC,EAAA,IAAIC,EAAK,YAAY;AAGpC,SAAO,CAAC,GAAGD,CAAY,EAAE,KAAK,IAAI;AACpC,GAEME,IAAsCC,EAAK,SAAwB;AAAA,EACvE,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,QAAAC;AAAA,EACA,UAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,GAAGC;AACL,GAAG;AAEC,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAASC;AAAA,MACT,WAAU;AAAA,MACV,iBAAgB;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAC,EAACC,GAAA,EACE,YAAO,IAAI,CAACC,GAAOC,MAAQ;AACpB,gBAAA;AAAA,YACJ,OAAAnB;AAAA,YACA,SAASoB;AAAA,YACT,YAAYC;AAAA,YACZ,iBAAiBC;AAAA,YACjB,cAAcC;AAAA,YACd,UAAUC;AAAA,UACR,IAAAN,GACEO,IAAiB,KAAK,MAAMJ,KAAa,KAAK,EAAE,GAChDK,IAAkB3B,EAAsBC,CAAK,GAC7C2B,IAAgBH,IAAU,GAAGC,CAAc,UAAU,IAIrDG,IAAY,GAHSN,IACvB,GAAGA,CAAc,IAAIO,EAAU,UAAAP,GAAgB,UAAU,CAAC,KAC1D,EACmC,MAAMK,CAAa;AAGxD,iBAAA,gBAAAX;AAAA,YAACc;AAAA,YAAA;AAAA,cAEC,UAAAtB;AAAA,cACA,QAAQkB;AAAA,cACR,WAAAE;AAAA,cACA,UAAUV;AAAA,cACV,UAAS;AAAA,cACT,WAAAZ;AAAA,cACA,oBAAoBa,IAAM,KAAK,MAAM;AAAA,cACpC,GAAGP;AAAA,YAAA;AAAA,YARC,GAAGW,CAAW,IAAIH,CAAM,IAAID,CAAG;AAAA,UAAA;AAAA,QAWzC,CAAA,GACH;AAAA,QAECX,MAAa,aAAaG,KACzB,gBAAAK;AAAA,UAACe;AAAAA,UAAA;AAAA,YACC,gBAAe;AAAA,YACf,iBAAgB;AAAA,YAChB,OAAO;AAAA,YACP,UAAU;AAAA,YAEV,UAAA,gBAAAf,EAACgB,GAAA,EACC,UAAA,gBAAAhB;AAAA,cAACiB;AAAA,cAAA;AAAA,gBACC,MAAMC;AAAA,gBACN,UAAS;AAAA,gBACT,gBAAgBC,EAAgC;AAAA,gBAChD,SAAS1B;AAAA,gBACT,UAAU,CAACC;AAAA,gBACX,gBAAgB;AAAA,kBACd,cAAcL;AAAA,gBAChB;AAAA,cAAA;AAAA,YAAA,GAEJ;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;"}
1
+ {"version":3,"file":"test-list-view.js","sources":["../../../../../src/features/milestone/milestone-tests/test-list-v2/test-list-view.tsx"],"sourcesContent":["import { type FC, memo } from 'react';\n\nimport Plus2Icon from '../../../../assets/line-icons/icons/plus2';\nimport HomeworkCard from '../../../homework/homework-card';\nimport IconButton from '../../../ui/buttons/icon-button/icon-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport { MILESTONE_WIDGET_MIN_HEIGHT } from '../../constants';\nimport { TESTS_CREATION_ANALYTICS_EVENTS } from '../tests-creation/tests-creation-analytics-events';\nimport * as Styled from './test-list-view-styled';\nimport type { ITestSheetsList } from './types';\n\nconst TestSheetsList: FC<ITestSheetsList> = memo(function TestSheetsList({\n milestoneId,\n studentId,\n tests,\n userType,\n onCreateNewTest,\n isMilestoneActive,\n canUpdatedPlan,\n ...sheetCallbacks\n}) {\n return (\n <FlexView\n $height={MILESTONE_WIDGET_MIN_HEIGHT}\n $position=\"relative\"\n $justifyContent=\"space-between\"\n >\n <Styled.TestSheetItemWrapper>\n {tests.map((test, idx) => {\n const { entity_id, entity_type, state, score, subtext, sheets } = test;\n const sheet = sheets?.[0];\n\n if (!sheet) return null;\n\n const { node_id: nodeId, worksheet_id: worksheetId, title } = sheet;\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}_${idx}`}\n userType={userType}\n header={title}\n subHeader={subtext}\n nodeData={sheet}\n renderAs=\"milestone\"\n studentId={studentId}\n shouldOpenOnRight={(idx + 1) % 3 === 0}\n entityId={entity_id}\n entityType={entity_type}\n state={state}\n score={score}\n {...sheetCallbacks}\n />\n );\n })}\n </Styled.TestSheetItemWrapper>\n\n {userType === 'TEACHER' && canUpdatedPlan && (\n <Styled.IconContainer\n $flexDirection=\"row\"\n $justifyContent=\"flex-end\"\n $gapX={1}\n $gutterX={1}\n >\n <Styled.IconButtonCover>\n <IconButton\n Icon={Plus2Icon}\n renderAs=\"secondary\"\n analyticsLabel={TESTS_CREATION_ANALYTICS_EVENTS.CUSTOM_TEST_CREATION_STARTED}\n onClick={onCreateNewTest}\n disabled={!isMilestoneActive}\n analyticsProps={{\n milestone_id: milestoneId,\n }}\n />\n </Styled.IconButtonCover>\n </Styled.IconContainer>\n )}\n </FlexView>\n );\n});\n\nexport default TestSheetsList;\n"],"names":["TestSheetsList","memo","milestoneId","studentId","tests","userType","onCreateNewTest","isMilestoneActive","canUpdatedPlan","sheetCallbacks","jsxs","FlexView","MILESTONE_WIDGET_MIN_HEIGHT","jsx","Styled.TestSheetItemWrapper","test","idx","entity_id","entity_type","state","score","subtext","sheets","sheet","nodeId","worksheetId","title","HomeworkCard","Styled.IconContainer","Styled.IconButtonCover","IconButton","Plus2Icon","TESTS_CREATION_ANALYTICS_EVENTS"],"mappings":";;;;;;;;;AAWM,MAAAA,IAAsCC,EAAK,SAAwB;AAAA,EACvE,aAAAC;AAAA,EACA,WAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,GAAGC;AACL,GAAG;AAEC,SAAA,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACC,SAASC;AAAA,MACT,WAAU;AAAA,MACV,iBAAgB;AAAA,MAEhB,UAAA;AAAA,QAAA,gBAAAC,EAACC,GAAA,EACE,YAAM,IAAI,CAACC,GAAMC,MAAQ;AACxB,gBAAM,EAAE,WAAAC,GAAW,aAAAC,GAAa,OAAAC,GAAO,OAAAC,GAAO,SAAAC,GAAS,QAAAC,EAAW,IAAAP,GAC5DQ,IAAQD,KAAA,gBAAAA,EAAS;AAEnB,cAAA,CAACC,EAAc,QAAA;AAEnB,gBAAM,EAAE,SAASC,GAAQ,cAAcC,GAAa,OAAAC,EAAU,IAAAH;AAG5D,iBAAA,gBAAAV;AAAA,YAACc;AAAA,YAAA;AAAA,cAEC,UAAAtB;AAAA,cACA,QAAQqB;AAAA,cACR,WAAWL;AAAA,cACX,UAAUE;AAAA,cACV,UAAS;AAAA,cACT,WAAApB;AAAA,cACA,oBAAoBa,IAAM,KAAK,MAAM;AAAA,cACrC,UAAUC;AAAA,cACV,YAAYC;AAAA,cACZ,OAAAC;AAAA,cACA,OAAAC;AAAA,cACC,GAAGX;AAAA,YAAA;AAAA,YAZC,GAAGgB,CAAW,IAAID,CAAM,IAAIR,CAAG;AAAA,UAAA;AAAA,QAezC,CAAA,GACH;AAAA,QAECX,MAAa,aAAaG,KACzB,gBAAAK;AAAA,UAACe;AAAAA,UAAA;AAAA,YACC,gBAAe;AAAA,YACf,iBAAgB;AAAA,YAChB,OAAO;AAAA,YACP,UAAU;AAAA,YAEV,UAAA,gBAAAf,EAACgB,GAAA,EACC,UAAA,gBAAAhB;AAAA,cAACiB;AAAA,cAAA;AAAA,gBACC,MAAMC;AAAA,gBACN,UAAS;AAAA,gBACT,gBAAgBC,EAAgC;AAAA,gBAChD,SAAS1B;AAAA,gBACT,UAAU,CAACC;AAAA,gBACX,gBAAgB;AAAA,kBACd,cAAcL;AAAA,gBAChB;AAAA,cAAA;AAAA,YAAA,GAEJ;AAAA,UAAA;AAAA,QACF;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAIR,CAAC;"}
@@ -1,45 +1,49 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { h as $ } from "../../../node_modules/humanize-plus/dist/humanize.js";
3
- import { memo as x } from "react";
4
- import _ from "styled-components";
5
- import g from "../../homework/homework-card.js";
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { h as x } from "../../../node_modules/humanize-plus/dist/humanize.js";
3
+ import { memo as _ } from "react";
4
+ import g from "styled-components";
5
+ import y from "../../homework/homework-card.js";
6
6
  import w from "../../ui/layout/flex-view.js";
7
- const R = _.div`
7
+ const I = g.div`
8
8
  display: grid;
9
9
  grid-template-columns: repeat(3, 200px);
10
10
  grid-gap: 32px;
11
11
  justify-content: center;
12
12
  padding: 32px 0;
13
- `, T = ({
13
+ `, R = ({
14
14
  sheets: r,
15
15
  studentId: n,
16
16
  userType: m,
17
- ...d
18
- }) => /* @__PURE__ */ t(w, { children: /* @__PURE__ */ t(R, { children: r.map((o, s) => {
17
+ ...a
18
+ }) => /* @__PURE__ */ o(w, { children: /* @__PURE__ */ o(I, { children: r.map((e, s) => {
19
19
  const {
20
- title: a,
20
+ title: d,
21
21
  node_id: p,
22
- worksheet_id: l,
23
- is_timed: c,
22
+ worksheet_id: c,
23
+ is_timed: l,
24
24
  sheet_time: u,
25
- total_questions: e
26
- } = o, h = Math.ceil((u || 0) / 60), i = e ? `${e} ${$.pluralize(e, "Question")}` : "", f = c ? `${i} • ${h} Mins` : i;
27
- return /* @__PURE__ */ t(
28
- g,
25
+ total_questions: t,
26
+ state: h
27
+ } = e, f = Math.ceil((u || 0) / 60), i = t ? `${t} ${x.pluralize(t, "Question")}` : "", $ = l ? `${i} • ${f} Mins` : i;
28
+ return /* @__PURE__ */ o(
29
+ y,
29
30
  {
30
- header: a,
31
- subHeader: f,
31
+ header: d,
32
+ subHeader: $,
32
33
  userType: m,
33
34
  studentId: n,
34
- nodeData: o,
35
+ nodeData: e,
35
36
  renderAs: "milestone",
36
37
  shouldOpenOnRight: (s + 1) % 3 === 0,
37
- ...d
38
+ entityId: "",
39
+ state: h,
40
+ score: e.accuracy,
41
+ ...a
38
42
  },
39
- `${l}_${p}_${s}`
43
+ `${c}_${p}_${s}`
40
44
  );
41
- }) }) }), z = x(T);
45
+ }) }) }), H = _(R);
42
46
  export {
43
- z as default
47
+ H as default
44
48
  };
45
49
  //# sourceMappingURL=resource-list.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resource-list.js","sources":["../../../../src/features/sheet-v2/resource-list/resource-list.tsx"],"sourcesContent":["import { pluralize } from 'humanize-plus';\nimport { memo, type FC } from 'react';\nimport styled from 'styled-components';\n\nimport HomeworkCard from '../../homework/homework-card';\nimport FlexView from '../../ui/layout/flex-view';\nimport type { IResourcesListProps } from './types';\n\nconst ResourceItemListWrapper = styled.div`\n display: grid;\n grid-template-columns: repeat(3, 200px);\n grid-gap: 32px;\n justify-content: center;\n padding: 32px 0;\n`;\n\nconst ResourcesList: FC<IResourcesListProps> = ({\n sheets,\n studentId,\n userType,\n ...sheetCallBacks\n}) => (\n <FlexView>\n <ResourceItemListWrapper>\n {sheets.map((sheet, idx) => {\n const {\n title,\n node_id: nodeId,\n worksheet_id: worksheetId,\n is_timed: isTimed,\n sheet_time: sheetTime,\n total_questions: totalQuestions,\n } = sheet;\n const totalSheetTime = Math.ceil((sheetTime || 0) / 60);\n const totalQuestionsText = totalQuestions\n ? `${totalQuestions} ${pluralize(totalQuestions, 'Question')}`\n : '';\n const subHeader = isTimed\n ? `${totalQuestionsText} • ${totalSheetTime} Mins`\n : totalQuestionsText;\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}_${idx}`}\n header={title}\n subHeader={subHeader}\n userType={userType}\n studentId={studentId}\n nodeData={sheet}\n renderAs=\"milestone\"\n shouldOpenOnRight={(idx + 1) % 3 === 0}\n {...sheetCallBacks}\n />\n );\n })}\n </ResourceItemListWrapper>\n </FlexView>\n);\n\nexport default memo(ResourcesList);\n"],"names":["ResourceItemListWrapper","styled","ResourcesList","sheets","studentId","userType","sheetCallBacks","jsx","FlexView","sheet","idx","title","nodeId","worksheetId","isTimed","sheetTime","totalQuestions","totalSheetTime","totalQuestionsText","pluralize","subHeader","HomeworkCard","ResourcesList$1","memo"],"mappings":";;;;;;AAQA,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAyC,CAAC;AAAA,EAC9C,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAP,GAAA,EACE,YAAO,IAAI,CAACS,GAAOC,MAAQ;AACpB,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,SAASC;AAAA,IACT,cAAcC;AAAA,IACd,UAAUC;AAAA,IACV,YAAYC;AAAA,IACZ,iBAAiBC;AAAA,EACf,IAAAP,GACEQ,IAAiB,KAAK,MAAMF,KAAa,KAAK,EAAE,GAChDG,IAAqBF,IACvB,GAAGA,CAAc,IAAIG,EAAU,UAAAH,GAAgB,UAAU,CAAC,KAC1D,IACEI,IAAYN,IACd,GAAGI,CAAkB,MAAMD,CAAc,UACzCC;AAGF,SAAA,gBAAAX;AAAA,IAACc;AAAA,IAAA;AAAA,MAEC,QAAQV;AAAA,MACR,WAAAS;AAAA,MACA,UAAAf;AAAA,MACA,WAAAD;AAAA,MACA,UAAUK;AAAA,MACV,UAAS;AAAA,MACT,oBAAoBC,IAAM,KAAK,MAAM;AAAA,MACpC,GAAGJ;AAAA,IAAA;AAAA,IARC,GAAGO,CAAW,IAAID,CAAM,IAAIF,CAAG;AAAA,EAAA;AAW1C,CAAC,GACH,EACF,CAAA,GAGaY,IAAAC,EAAKrB,CAAa;"}
1
+ {"version":3,"file":"resource-list.js","sources":["../../../../src/features/sheet-v2/resource-list/resource-list.tsx"],"sourcesContent":["import { pluralize } from 'humanize-plus';\nimport { memo, type FC } from 'react';\nimport styled from 'styled-components';\n\nimport HomeworkCard from '../../homework/homework-card';\nimport FlexView from '../../ui/layout/flex-view';\nimport type { IResourcesListProps } from './types';\n\nconst ResourceItemListWrapper = styled.div`\n display: grid;\n grid-template-columns: repeat(3, 200px);\n grid-gap: 32px;\n justify-content: center;\n padding: 32px 0;\n`;\n\nconst ResourcesList: FC<IResourcesListProps> = ({\n sheets,\n studentId,\n userType,\n ...sheetCallBacks\n}) => (\n <FlexView>\n <ResourceItemListWrapper>\n {sheets.map((sheet, idx) => {\n const {\n title,\n node_id: nodeId,\n worksheet_id: worksheetId,\n is_timed: isTimed,\n sheet_time: sheetTime,\n total_questions: totalQuestions,\n state,\n } = sheet;\n const totalSheetTime = Math.ceil((sheetTime || 0) / 60);\n const totalQuestionsText = totalQuestions\n ? `${totalQuestions} ${pluralize(totalQuestions, 'Question')}`\n : '';\n const subHeader = isTimed\n ? `${totalQuestionsText} • ${totalSheetTime} Mins`\n : totalQuestionsText;\n\n return (\n <HomeworkCard\n key={`${worksheetId}_${nodeId}_${idx}`}\n header={title}\n subHeader={subHeader}\n userType={userType}\n studentId={studentId}\n nodeData={sheet}\n renderAs=\"milestone\"\n shouldOpenOnRight={(idx + 1) % 3 === 0}\n entityId=\"\"\n state={state}\n score={sheet.accuracy}\n {...sheetCallBacks}\n />\n );\n })}\n </ResourceItemListWrapper>\n </FlexView>\n);\n\nexport default memo(ResourcesList);\n"],"names":["ResourceItemListWrapper","styled","ResourcesList","sheets","studentId","userType","sheetCallBacks","jsx","FlexView","sheet","idx","title","nodeId","worksheetId","isTimed","sheetTime","totalQuestions","state","totalSheetTime","totalQuestionsText","pluralize","subHeader","HomeworkCard","ResourcesList$1","memo"],"mappings":";;;;;;AAQA,MAAMA,IAA0BC,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQjCC,IAAyC,CAAC;AAAA,EAC9C,QAAAC;AAAA,EACA,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,GAAGC;AACL,MACE,gBAAAC,EAACC,KACC,UAAC,gBAAAD,EAAAP,GAAA,EACE,YAAO,IAAI,CAACS,GAAOC,MAAQ;AACpB,QAAA;AAAA,IACJ,OAAAC;AAAA,IACA,SAASC;AAAA,IACT,cAAcC;AAAA,IACd,UAAUC;AAAA,IACV,YAAYC;AAAA,IACZ,iBAAiBC;AAAA,IACjB,OAAAC;AAAA,EACE,IAAAR,GACES,IAAiB,KAAK,MAAMH,KAAa,KAAK,EAAE,GAChDI,IAAqBH,IACvB,GAAGA,CAAc,IAAII,EAAU,UAAAJ,GAAgB,UAAU,CAAC,KAC1D,IACEK,IAAYP,IACd,GAAGK,CAAkB,MAAMD,CAAc,UACzCC;AAGF,SAAA,gBAAAZ;AAAA,IAACe;AAAA,IAAA;AAAA,MAEC,QAAQX;AAAA,MACR,WAAAU;AAAA,MACA,UAAAhB;AAAA,MACA,WAAAD;AAAA,MACA,UAAUK;AAAA,MACV,UAAS;AAAA,MACT,oBAAoBC,IAAM,KAAK,MAAM;AAAA,MACrC,UAAS;AAAA,MACT,OAAAO;AAAA,MACA,OAAOR,EAAM;AAAA,MACZ,GAAGH;AAAA,IAAA;AAAA,IAXC,GAAGO,CAAW,IAAID,CAAM,IAAIF,CAAG;AAAA,EAAA;AAc1C,CAAC,GACH,EACF,CAAA,GAGaa,IAAAC,EAAKtB,CAAa;"}
package/dist/index.d.ts CHANGED
@@ -576,6 +576,13 @@ export declare enum ELeaderboardType {
576
576
  INFINITE_TABLE = "infiniteTable"
577
577
  }
578
578
 
579
+ declare enum EMATHFIT_TEST_STATE {
580
+ IN_PROGRESS = "IN_PROGRESS",
581
+ COMPLETED = "COMPLETED",
582
+ NOT_STARTED = "NOT_STARTED",
583
+ EXPIRED = "EXPIRED"
584
+ }
585
+
579
586
  declare const ENROLLMENT_TYPES: {
580
587
  readonly ONLINE: "ONLINE";
581
588
  readonly PLUS: "PLUS";
@@ -621,6 +628,12 @@ export declare enum EPostGameStat {
621
628
 
622
629
  export declare const EPResourceAssign: FC<IEPResourceAssign>;
623
630
 
631
+ declare enum EQuestionState {
632
+ CORRECT = "CORRECT",
633
+ INCORRECT = "INCORRECT",
634
+ SKIPPED = "SKIPPED"
635
+ }
636
+
624
637
  export declare const EraserIcon: FC<SVGProps<SVGSVGElement>>;
625
638
 
626
639
  declare const Error_2: FC<IErrorProps>;
@@ -865,6 +878,11 @@ export declare const HomeworkCardList: NamedExoticComponent<IHWCardListProps>;
865
878
 
866
879
  declare const hues: readonly ["YELLOW", "ORANGE", "PURPLE", "GREEN", "BLUE"];
867
880
 
881
+ declare enum HW_CARD_LIST_ENTITY_TYPE {
882
+ MATHFIT_TEST = "MATHFIT_TEST",
883
+ USER_NODE = "USER_NODE"
884
+ }
885
+
868
886
  export declare interface IAboutGameActivitiesProps {
869
887
  show?: boolean;
870
888
  isGradeKTo1?: boolean;
@@ -2422,6 +2440,7 @@ export declare const ILLUSTRATIONS: {
2422
2440
  CIRCLE_ICON: string;
2423
2441
  CIRCLE_OUTERCIRCLE_BG: string;
2424
2442
  CLOCK_BADGE: string;
2443
+ CLOCK_GREEN: string;
2425
2444
  CLOCK_ORANGE: string;
2426
2445
  CLOCK_PURPLE: string;
2427
2446
  CODING_REPORT_ICON: string;
@@ -2487,6 +2506,8 @@ export declare const ILLUSTRATIONS: {
2487
2506
  MASTERED_BADGE: string;
2488
2507
  MASTERED_SHIELD_GRAY: string;
2489
2508
  MASTERED_SHIELD_GREEN: string;
2509
+ MATH_FIT_BG: string;
2510
+ MATH_FIT_CARD_BG: string;
2490
2511
  MATH_FIT_GREY: string;
2491
2512
  MAY: string;
2492
2513
  MENTAL_MATH: string;
@@ -2558,6 +2579,7 @@ export declare const ILLUSTRATIONS: {
2558
2579
  PUZZLE_PATTERN_YELLOW: string;
2559
2580
  PUZZLE_PURPLE: string;
2560
2581
  PUZZLE_STUDENT: string;
2582
+ QUESTION_MARK_BLUE: string;
2561
2583
  QUESTION_MARK_YELLOW: string;
2562
2584
  RADIAL_GRADIENT_BG: string;
2563
2585
  RADIAL_GRADIENT_BG_2: string;
@@ -2713,6 +2735,73 @@ declare interface IMaintenanceProps {
2713
2735
  userType: TUserTypes;
2714
2736
  }
2715
2737
 
2738
+ declare interface IMathFitAssessmentResponse {
2739
+ id: string;
2740
+ user_id: string;
2741
+ state: EMATHFIT_TEST_STATE;
2742
+ score: number;
2743
+ previous_score: number;
2744
+ created_on: string;
2745
+ created_on_ts: number;
2746
+ updated_on: string;
2747
+ updated_on_ts: number;
2748
+ sections: IMathFitSection[];
2749
+ }
2750
+
2751
+ export declare interface IMathFitCardProps {
2752
+ dueDateTs: number | null;
2753
+ isMathFitDisabled?: boolean;
2754
+ tooltipText?: string;
2755
+ isMilestone?: boolean;
2756
+ nodeType: TNodeTypes_2;
2757
+ state: TSheetStates;
2758
+ subHeader: string;
2759
+ unlockedOnTs?: number | null;
2760
+ userType: TUserTypes;
2761
+ score: number | null;
2762
+ studentContainerRef?: React.RefObject<HTMLDivElement>;
2763
+ }
2764
+
2765
+ declare interface IMathFitOverviewProps {
2766
+ data: IMathFitAssessmentResponse;
2767
+ onResumeClick: (sheetData: INodeDataProps, sectionId: string) => void;
2768
+ onDoLater: () => void;
2769
+ }
2770
+
2771
+ declare interface IMathFitProps {
2772
+ mathfitTestId: string;
2773
+ userId: string;
2774
+ onResumeClick: (sheetData: INodeDataProps, sectionId: string) => void;
2775
+ onReviewClick: (sheetData: INodeDataProps, sectionId: string) => void;
2776
+ onDoLater: () => void;
2777
+ studentName: string;
2778
+ userType: TUserTypes;
2779
+ }
2780
+
2781
+ declare interface IMathFitReportProps {
2782
+ data: IMathFitAssessmentResponse;
2783
+ onReviewClick: (sheetData: INodeDataProps, sectionId: string) => void;
2784
+ studentName: string;
2785
+ userType: TUserTypes;
2786
+ onBack: () => void;
2787
+ }
2788
+
2789
+ declare interface IMathFitSection {
2790
+ id: string;
2791
+ section_number: number;
2792
+ score: number;
2793
+ previous_score: number;
2794
+ user_node_id: string;
2795
+ created_on: string;
2796
+ created_on_ts: number;
2797
+ updated_on: string;
2798
+ updated_on_ts: number;
2799
+ sheet: INodeDataProps;
2800
+ summary: {
2801
+ [goalId: string]: IMiniGoalDetail;
2802
+ };
2803
+ }
2804
+
2716
2805
  declare interface IMathPracticeProps {
2717
2806
  onSwitchUser?: () => void;
2718
2807
  }
@@ -2961,6 +3050,12 @@ declare interface IMilestoneWidgetResourcesProps extends INodeCardCallbacks {
2961
3050
  isTrialSession?: boolean;
2962
3051
  }
2963
3052
 
3053
+ declare interface IMiniGoalDetail {
3054
+ order: number;
3055
+ description: string;
3056
+ items: IQuestionDetail[];
3057
+ }
3058
+
2964
3059
  /**
2965
3060
  * Configuration for a modal component
2966
3061
  */
@@ -3108,9 +3203,10 @@ declare interface INodeCardCallbacks {
3108
3203
  onNodeAssignAsHomework?: (nodeData: INodeDataProps, milestoneId?: string) => void;
3109
3204
  onNodeMarkAsDone?: (nodeData: INodeDataProps) => void;
3110
3205
  onNodeReset?: (nodeData: INodeDataProps, milestoneId?: string) => void;
3111
- onNodeUnassign?: (nodeData: INodeDataProps, milestoneId?: string) => void;
3206
+ onNodeUnassign?: (nodeData: INodeDataProps, milestoneId?: string, homeworkId?: string) => void;
3112
3207
  onNodeUnlock?: (nodeData: INodeDataProps, milestoneId?: string) => void;
3113
3208
  onNodeSkipUnSkip?: (nodeData: INodeDataProps, milestoneId?: string) => void;
3209
+ onMathFitClick?: (entityId: string) => void;
3114
3210
  }
3115
3211
 
3116
3212
  export declare interface INodeDataProps {
@@ -3124,7 +3220,6 @@ export declare interface INodeDataProps {
3124
3220
  course_type: TCourseType;
3125
3221
  desmos_calculator_enabled: boolean;
3126
3222
  due_date_ts: number | null;
3127
- homework_id?: string;
3128
3223
  id: string;
3129
3224
  image_hue: THueNames;
3130
3225
  image_url: string | null;
@@ -3187,6 +3282,8 @@ export declare const invalidateGetChapterDetails: (id: string, query?: void | un
3187
3282
 
3188
3283
  export declare const invalidateHomeworks: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
3189
3284
 
3285
+ export declare const invalidateMathFitAssessment: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
3286
+
3190
3287
  export declare const invalidateMilestoneResources: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
3191
3288
 
3192
3289
  export declare const invalidateMilestonesData: (query?: TQuery | undefined) => void;
@@ -3596,6 +3693,12 @@ export declare interface IPuzzleWebGameProps extends IBaseWebGameProps, ISyncabl
3596
3693
  askHintPermission?: boolean;
3597
3694
  }
3598
3695
 
3696
+ declare interface IQuestionDetail {
3697
+ item_reference: string;
3698
+ state: EQuestionState;
3699
+ order: number;
3700
+ }
3701
+
3599
3702
  declare interface IQuestionOverView {
3600
3703
  questionByQuestionList: TQuestionByQuestionOverviewList;
3601
3704
  onReview: (userNodeId: string, questionNo: number) => void;
@@ -4436,6 +4539,17 @@ declare type ITestHelpItemTopicsDataProps = {
4436
4539
  goals: string[];
4437
4540
  };
4438
4541
 
4542
+ declare interface ITestListItem {
4543
+ entity_type: HW_CARD_LIST_ENTITY_TYPE;
4544
+ entity_id: string;
4545
+ score: number | null;
4546
+ id: string;
4547
+ state: TSheetStates;
4548
+ user_milestone_id: string;
4549
+ subtext: string;
4550
+ sheets: INodeDataProps[];
4551
+ }
4552
+
4439
4553
  declare interface ITestsCreationProps {
4440
4554
  courseStream: TCourseStream;
4441
4555
  milestoneId: string;
@@ -4460,6 +4574,7 @@ declare interface ITestsListProps {
4460
4574
  onTestPreview?: (sheetData: INodeDataProps, milestoneId: string) => void;
4461
4575
  onTestStart?: (sheetData: INodeDataProps, milestoneId?: string, homeworkId?: string) => void;
4462
4576
  onTestReview?: (sheetData: INodeDataProps, milestoneId: string) => void;
4577
+ onMathFitClick?: (entityId: string) => void;
4463
4578
  }
4464
4579
 
4465
4580
  declare interface ITextButtonProps extends IClickableAnalyticsProps {
@@ -5468,6 +5583,14 @@ export declare const Maintenance: FC<IMaintenanceProps>;
5468
5583
 
5469
5584
  declare const MASTERY: "mastery";
5470
5585
 
5586
+ export declare const MathFit: FC<IMathFitProps>;
5587
+
5588
+ export declare const MathFitCard: FC<IMathFitCardProps>;
5589
+
5590
+ export declare const MathFitOverview: FC<IMathFitOverviewProps>;
5591
+
5592
+ export declare const MathFitReport: FC<IMathFitReportProps>;
5593
+
5471
5594
  export declare const MathPractice: FC<IMathPracticeProps>;
5472
5595
 
5473
5596
  export declare const MilestoneActionWidget: FC<IMilestoneActionWidgetProps>;
@@ -5517,7 +5640,8 @@ declare enum NODE_CARD_COURSE_TYPES {
5517
5640
  PROGRAM = "PROGRAM",
5518
5641
  REMEDIAL = "REMEDIAL",
5519
5642
  TEST_SERIES = "TEST_SERIES",
5520
- EXAM = "EXAM"
5643
+ EXAM = "EXAM",
5644
+ MATHFIT = "MATHFIT"
5521
5645
  }
5522
5646
 
5523
5647
  declare enum NODE_CARD_STATES {
@@ -5525,7 +5649,8 @@ declare enum NODE_CARD_STATES {
5525
5649
  NOT_STARTED = "NOT_STARTED",
5526
5650
  WAIT_FOR_REVIEW = "WAIT_FOR_REVIEW",
5527
5651
  IN_PROGRESS = "IN_PROGRESS",
5528
- COMPLETED = "COMPLETED"
5652
+ COMPLETED = "COMPLETED",
5653
+ EXPIRED = "EXPIRED"
5529
5654
  }
5530
5655
 
5531
5656
  export declare const NODE_LABELS: {
@@ -7315,7 +7440,7 @@ declare type TSheetRewardsProps = {
7315
7440
 
7316
7441
  export declare type TSheetsSection = 'core_lessons' | 'supplementary_sheets' | 'test_help' | 'extra_practice';
7317
7442
 
7318
- declare type TSheetStateProps = 'LOCKED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'FAMILIAR' | 'PROFICIENT' | 'MASTERED' | 'COMPLETED' | 'RE_ATTEMPT' | 'WAIT_FOR_REVIEW';
7443
+ declare type TSheetStateProps = 'LOCKED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'FAMILIAR' | 'PROFICIENT' | 'MASTERED' | 'COMPLETED' | 'RE_ATTEMPT' | 'WAIT_FOR_REVIEW' | 'EXPIRED';
7319
7444
 
7320
7445
  declare type TSheetStates = keyof typeof NODE_CARD_STATES;
7321
7446
 
@@ -7679,8 +7804,8 @@ export declare const useGetTestHelpData: (initialId?: string, initialQuery?: voi
7679
7804
  get: (id: string, query: void, meta: {
7680
7805
  studentId: string;
7681
7806
  }) => Promise<void>;
7682
- resource: ResourceModel<INodeDataProps[]> | undefined;
7683
- data: INodeDataProps[] | undefined;
7807
+ resource: ResourceModel<ITestListItem[]> | undefined;
7808
+ data: ITestListItem[] | undefined;
7684
7809
  permissions: Record<string, unknown> | undefined;
7685
7810
  isProcessing: boolean;
7686
7811
  isProcessed: boolean;