@cuemath/leap 3.2.21-beta-0.1 → 3.2.21-j1

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 (35) hide show
  1. package/dist/features/analytics-events/whitelist-events.js +17 -15
  2. package/dist/features/analytics-events/whitelist-events.js.map +1 -1
  3. package/dist/features/auth/comps/pill-button/pill-button.js +41 -38
  4. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
  5. package/dist/features/auth/comps/resend-otp/resend-otp.js +18 -14
  6. package/dist/features/auth/comps/resend-otp/resend-otp.js.map +1 -1
  7. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js +32 -26
  8. package/dist/features/auth/comps/selectable-info-card/selectable-info-card.js.map +1 -1
  9. package/dist/features/auth/pla-signup/pla-analytics-events.js +22 -0
  10. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -0
  11. package/dist/features/auth/pla-signup/signup-options/signup-options.js +42 -35
  12. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -1
  13. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js +43 -43
  14. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.js.map +1 -1
  15. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js +1 -1
  16. package/dist/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.js.map +1 -1
  17. package/dist/index.d.ts +21 -6
  18. package/dist/index.js +68 -68
  19. package/dist/node_modules/decode-uri-component/index.js.map +1 -0
  20. package/dist/node_modules/query-string/base.js +1 -1
  21. package/dist/node_modules/uuid/dist/esm-browser/native.js +7 -0
  22. package/dist/node_modules/uuid/dist/esm-browser/native.js.map +1 -0
  23. package/dist/node_modules/uuid/dist/esm-browser/rng.js +3 -2
  24. package/dist/node_modules/uuid/dist/esm-browser/rng.js.map +1 -1
  25. package/dist/node_modules/uuid/dist/esm-browser/stringify.js +6 -10
  26. package/dist/node_modules/uuid/dist/esm-browser/stringify.js.map +1 -1
  27. package/dist/node_modules/uuid/dist/esm-browser/v4.js +12 -9
  28. package/dist/node_modules/uuid/dist/esm-browser/v4.js.map +1 -1
  29. package/package.json +1 -1
  30. package/dist/node_modules/query-string/node_modules/decode-uri-component/index.js.map +0 -1
  31. package/dist/node_modules/uuid/dist/esm-browser/regex.js +0 -5
  32. package/dist/node_modules/uuid/dist/esm-browser/regex.js.map +0 -1
  33. package/dist/node_modules/uuid/dist/esm-browser/validate.js +0 -8
  34. package/dist/node_modules/uuid/dist/esm-browser/validate.js.map +0 -1
  35. /package/dist/node_modules/{query-string/node_modules/decode-uri-component → decode-uri-component}/index.js +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"signup-options.js","sources":["../../../../../src/features/auth/pla-signup/signup-options/signup-options.tsx"],"sourcesContent":["import type { ISignupOptionsProps } from './signup-options-types';\n\nimport { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport AppleIcon from '../../../../assets/line-icons/icons/apple-icon-white';\nimport GoogleIcon from '../../../../assets/line-icons/icons/google-icon';\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\n\nconst SignupOptions: FC<ISignupOptionsProps> = ({\n onEmailSignup,\n onAppleSignup,\n onGoogleSignup,\n loadingProvider,\n onGoToLogin,\n title,\n}) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const isLoadingGoogle = loadingProvider === 'google';\n const isLoadingApple = loadingProvider === 'apple';\n\n return (\n <FlexView $alignItems=\"flex-start\">\n <Text $renderAs=\"ah3-bold\" $renderOnMobileAs=\"ah4-bold\" $color=\"WHITE\" $whiteSpace=\"pre\">\n {title}\n </Text>\n <Separator heightX={isCompact ? 1.5 : 2.5} />\n <FlexView\n $flexGapX={1}\n $flex={1}\n $justifyContent=\"center\"\n $alignItems=\"flex-start\"\n $width=\"100%\"\n >\n <Button\n renderAs=\"black-dark\"\n Icon={GoogleIcon}\n width={isCompact ? '100%' : 320}\n label=\"Signup with Google\"\n onClick={onGoogleSignup}\n size=\"small\"\n busy={isLoadingGoogle}\n disabled={isLoadingGoogle}\n />\n <Button\n renderAs=\"black-dark\"\n size=\"small\"\n width={isCompact ? '100%' : 320}\n Icon={AppleIcon}\n label=\"Signup with Apple\"\n onClick={onAppleSignup}\n busy={isLoadingApple}\n disabled={isLoadingApple}\n />\n <Button\n renderAs=\"black-dark\"\n size=\"small\"\n width={isCompact ? '100%' : 320}\n label=\"Continue with Email\"\n onClick={onEmailSignup}\n />\n </FlexView>\n <Separator heightX={1.5} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\">\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n Already have an account?\n </Text>\n &nbsp;\n <TextButton size=\"small\" label=\"Log In\" color=\"WHITE\" onClick={onGoToLogin} />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(SignupOptions);\n"],"names":["SignupOptions","onEmailSignup","onAppleSignup","onGoogleSignup","loadingProvider","onGoToLogin","title","device","useTheme","isCompact","EDeviceType","isLoadingGoogle","isLoadingApple","jsxs","FlexView","jsx","Text","Separator","Button","GoogleIcon","AppleIcon","TextButton","signupOptions","memo"],"mappings":";;;;;;;;;;;AAcA,MAAMA,IAAyC,CAAC;AAAA,EAC9C,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AACF,MAAM;AACE,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY,QAClCC,IAAkBP,MAAoB,UACtCQ,IAAiBR,MAAoB;AAGzC,SAAA,gBAAAS,EAACC,GAAS,EAAA,aAAY,cACpB,UAAA;AAAA,IAAC,gBAAAC,EAAA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Q,SAAShB,EAAa,CAAA;AAAA,IAAA,GAC9E;AAAA,EACF,EAAA,CAAA;AAEJ,GAEeiB,IAAAC,EAAKvB,CAAa;"}
1
+ {"version":3,"file":"signup-options.js","sources":["../../../../../src/features/auth/pla-signup/signup-options/signup-options.tsx"],"sourcesContent":["import type { ISignupOptionsProps } from './signup-options-types';\n\nimport { memo, type FC } from 'react';\nimport { useTheme } from 'styled-components';\n\nimport AppleIcon from '../../../../assets/line-icons/icons/apple-icon-white';\nimport GoogleIcon from '../../../../assets/line-icons/icons/google-icon';\nimport Button from '../../../ui/buttons/button/button';\nimport TextButton from '../../../ui/buttons/text-button/text-button';\nimport FlexView from '../../../ui/layout/flex-view';\nimport Separator from '../../../ui/separator/separator';\nimport Text from '../../../ui/text/text';\nimport { EDeviceType } from '../../../ui/theme/constants';\nimport { PLA_ANALYTICS_EVENTS } from '../pla-analytics-events';\n\nconst SignupOptions: FC<ISignupOptionsProps> = ({\n onEmailSignup,\n onAppleSignup,\n onGoogleSignup,\n loadingProvider,\n onGoToLogin,\n title,\n}) => {\n const { device } = useTheme();\n const isCompact = device <= EDeviceType.TABLET;\n const isLoadingGoogle = loadingProvider === 'google';\n const isLoadingApple = loadingProvider === 'apple';\n\n return (\n <FlexView $alignItems=\"flex-start\">\n <Text $renderAs=\"ah3-bold\" $renderOnMobileAs=\"ah4-bold\" $color=\"WHITE\" $whiteSpace=\"pre\">\n {title}\n </Text>\n <Separator heightX={isCompact ? 1.5 : 2.5} />\n <FlexView\n $flexGapX={1}\n $flex={1}\n $justifyContent=\"center\"\n $alignItems=\"flex-start\"\n $width=\"100%\"\n >\n <Button\n renderAs=\"black-dark\"\n Icon={GoogleIcon}\n width={isCompact ? '100%' : 320}\n label=\"Signup with Google\"\n onClick={onGoogleSignup}\n size=\"small\"\n busy={isLoadingGoogle}\n disabled={isLoadingGoogle}\n analyticsLabel={PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED}\n analyticsProps={{ provider: 'google' }}\n />\n <Button\n renderAs=\"black-dark\"\n size=\"small\"\n width={isCompact ? '100%' : 320}\n Icon={AppleIcon}\n label=\"Signup with Apple\"\n onClick={onAppleSignup}\n busy={isLoadingApple}\n disabled={isLoadingApple}\n analyticsLabel={PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED}\n analyticsProps={{ provider: 'apple' }}\n />\n <Button\n renderAs=\"black-dark\"\n size=\"small\"\n width={isCompact ? '100%' : 320}\n label=\"Continue with Email\"\n onClick={onEmailSignup}\n analyticsLabel={PLA_ANALYTICS_EVENTS.START_SIGNUP_CTA_CLICKED}\n analyticsProps={{ provider: 'email' }}\n />\n </FlexView>\n <Separator heightX={1.5} />\n <FlexView $flexDirection=\"row\" $alignItems=\"center\">\n <Text $renderAs=\"ub3\" $color=\"WHITE\">\n Already have an account?\n </Text>\n &nbsp;\n <TextButton size=\"small\" label=\"Log In\" color=\"WHITE\" onClick={onGoToLogin} />\n </FlexView>\n </FlexView>\n );\n};\n\nexport default memo(SignupOptions);\n"],"names":["SignupOptions","onEmailSignup","onAppleSignup","onGoogleSignup","loadingProvider","onGoToLogin","title","device","useTheme","isCompact","EDeviceType","isLoadingGoogle","isLoadingApple","jsxs","FlexView","jsx","Text","Separator","Button","GoogleIcon","PLA_ANALYTICS_EVENTS","AppleIcon","TextButton","signupOptions","memo"],"mappings":";;;;;;;;;;;;AAeA,MAAMA,IAAyC,CAAC;AAAA,EAC9C,eAAAC;AAAA,EACA,eAAAC;AAAA,EACA,gBAAAC;AAAA,EACA,iBAAAC;AAAA,EACA,aAAAC;AAAA,EACA,OAAAC;AACF,MAAM;AACE,QAAA,EAAE,QAAAC,MAAWC,KACbC,IAAYF,KAAUG,EAAY,QAClCC,IAAkBP,MAAoB,UACtCQ,IAAiBR,MAAoB;AAGzC,SAAA,gBAAAS,EAACC,GAAS,EAAA,aAAY,cACpB,UAAA;AAAA,IAAC,gBAAAC,EAAAC,GAAA,EAAK,WAAU,YAAW,mBAAkB,YAAW,QAAO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A;AAAA,MAAA,gBAAAC,EAACC,GAAK,EAAA,WAAU,OAAM,QAAO,SAAQ,UAErC,4BAAA;AAAA,MAAO;AAAA,MAEP,gBAAAD,EAACO,KAAW,MAAK,SAAQ,OAAM,UAAS,OAAM,SAAQ,SAASjB,EAAa,CAAA;AAAA,IAAA,GAC9E;AAAA,EACF,EAAA,CAAA;AAEJ,GAEekB,IAAAC,EAAKxB,CAAa;"}
@@ -1,53 +1,53 @@
1
- import { jsxs as t, jsx as e } from "react/jsx-runtime";
2
- import { useMemo as C, useCallback as f } from "react";
1
+ import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
+ import { useMemo as C, useCallback as d } from "react";
3
3
  import { useUIContext as D } from "../../../../ui/context/context.js";
4
- import c from "../../../../ui/layout/flex-view.js";
4
+ import i from "../../../../ui/layout/flex-view.js";
5
5
  import S from "../../../../ui/text/text.js";
6
6
  import { RewardAccuracy as _ } from "../sheet-item/rewards-n-actions/reward-n-actions-styled.js";
7
7
  import v from "../sheet-item/sheet-item-icon.js";
8
- import { SheetItemContainer as O, VerticalLineWrapper as U, TopVerticalLine as j, SheetDetailsWrapper as B } from "../sheet-item/sheet-item-styled.js";
8
+ import { SheetItemContainer as O, VerticalLineWrapper as U, TopVerticalLine as B, SheetDetailsWrapper as j } from "../sheet-item/sheet-item-styled.js";
9
9
  import { getUserNodeIdsToUnlockSAT as M, getSATSheetStatementStats as G } from "./sat-sheet-item-utils.js";
10
- import { getActiveSATSheet as V } from "./sat-sheet-utils.js";
10
+ import { getActiveSheet as V } from "./sat-sheet-utils.js";
11
11
  import L from "./student-actions/student-actions.js";
12
12
  import N from "./teacher-actions/teacher-actions.js";
13
13
  const ee = ({
14
14
  blockStatus: n,
15
- satMaxScore: u,
15
+ satMaxScore: f,
16
16
  satScore: A,
17
17
  ...T
18
18
  }) => {
19
- const { blockId: o, sheets: s, userType: I, onSATReview: m, onSATUnlock: l, onSATStartOrResume: d } = T, {
20
- user_block_id: r,
19
+ const { blockId: u, sheets: c, userType: I, onSATReview: a, onSATUnlock: m, onSATStartOrResume: l } = T, {
20
+ user_block_id: e,
21
21
  can_review: h,
22
22
  can_start: g,
23
23
  can_resume: x,
24
24
  order: y
25
- } = V(s) || {}, { onEvent: p } = D(), a = C(
25
+ } = V(c) || {}, { onEvent: p } = D(), s = C(
26
26
  () => ({
27
- user_block_id: r,
28
- block_id: o
27
+ user_block_id: e,
28
+ block_id: u
29
29
  }),
30
- [o, r]
31
- ), w = !!((n === "COMPLETED" || n === "MASTERED") && h && r), $ = f(() => {
32
- if (typeof m != "function")
30
+ [u, e]
31
+ ), w = !!((n === "COMPLETED" || n === "MASTERED") && h && e), $ = d(() => {
32
+ if (typeof a != "function")
33
33
  throw new Error("onSATReview must be a function");
34
- if (!r)
34
+ if (!e)
35
35
  throw new Error("userBlockId must be a string");
36
- p("clicked", a), m(r);
37
- }, [a, m, p, r]), E = f(() => {
38
- if (typeof l != "function")
36
+ p("clicked", s), a(e);
37
+ }, [s, a, p, e]), E = d(() => {
38
+ if (typeof m != "function")
39
39
  throw new Error("onSATUnlock must be a function");
40
- const i = M(s);
41
- if (i.length === 0)
40
+ const o = M(c);
41
+ if (o.length === 0)
42
42
  throw new Error("User node IDs are missing");
43
- l(i);
44
- }, [l, s]), b = f(() => {
45
- if (typeof d != "function")
43
+ m(o);
44
+ }, [m, c]), b = d(() => {
45
+ if (typeof l != "function")
46
46
  throw new Error("onSATStartOrResume must be a function");
47
- if (!o)
48
- throw new Error("blockId must be a string");
49
- d(o);
50
- }, [d, o]);
47
+ if (!e)
48
+ throw new Error("userBlockId must be a string");
49
+ l(e);
50
+ }, [l, e]);
51
51
  return /* @__PURE__ */ t(
52
52
  O,
53
53
  {
@@ -56,10 +56,10 @@ const ee = ({
56
56
  $alignItems: "center",
57
57
  $flexGapX: 1,
58
58
  children: [
59
- /* @__PURE__ */ t(c, { $width: "70%", $flexGap: 8, $flexDirection: "row", children: [
60
- /* @__PURE__ */ e(U, { children: /* @__PURE__ */ e(j, {}) }),
59
+ /* @__PURE__ */ t(i, { $width: "70%", $flexGap: 8, $flexDirection: "row", children: [
60
+ /* @__PURE__ */ r(U, { children: /* @__PURE__ */ r(B, {}) }),
61
61
  /* @__PURE__ */ t(
62
- B,
62
+ j,
63
63
  {
64
64
  $width: "100%",
65
65
  $flexDirection: "row",
@@ -67,25 +67,25 @@ const ee = ({
67
67
  $flexGap: 8,
68
68
  $marginBottom: 12,
69
69
  children: [
70
- /* @__PURE__ */ e(v, { chapterPermissionCode: n }),
71
- /* @__PURE__ */ t(c, { $justifyContent: "center", $width: "100%", children: [
72
- /* @__PURE__ */ e(S, { $renderAs: "body1Medium", children: "Assessment • Mock test" }),
73
- /* @__PURE__ */ e(c, { children: s.map((i) => {
74
- const { statement: k, color: R } = G(i);
75
- return /* @__PURE__ */ e(S, { $renderAs: "body2", $color: R, children: k }, i.node_id);
70
+ /* @__PURE__ */ r(v, { chapterPermissionCode: n }),
71
+ /* @__PURE__ */ t(i, { $justifyContent: "center", $width: "100%", children: [
72
+ /* @__PURE__ */ r(S, { $renderAs: "body1Medium", children: "Assessment • Mock test" }),
73
+ /* @__PURE__ */ r(i, { children: c.map((o) => {
74
+ const { statement: k, color: R } = G(o);
75
+ return /* @__PURE__ */ r(S, { $renderAs: "body2", $color: R, children: k }, o.node_id);
76
76
  }) })
77
77
  ] })
78
78
  ]
79
79
  }
80
80
  )
81
81
  ] }),
82
- /* @__PURE__ */ t(c, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGap: 8, children: [
83
- h && u && /* @__PURE__ */ e(c, { $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ t(_, { $renderAs: "eyebrow2", $align: "center", children: [
82
+ /* @__PURE__ */ t(i, { $flexDirection: "row", $alignItems: "center", $justifyContent: "center", $flexGap: 8, children: [
83
+ h && f && /* @__PURE__ */ r(i, { $justifyContent: "center", $alignItems: "center", children: /* @__PURE__ */ t(_, { $renderAs: "eyebrow2", $align: "center", children: [
84
84
  A,
85
85
  "/",
86
- u
86
+ f
87
87
  ] }) }),
88
- I === "STUDENT" ? /* @__PURE__ */ e(
88
+ I === "STUDENT" ? /* @__PURE__ */ r(
89
89
  L,
90
90
  {
91
91
  handleOnReview: $,
@@ -94,17 +94,17 @@ const ee = ({
94
94
  canResume: !!x,
95
95
  canStart: !!g,
96
96
  handleOnStartOrResume: b,
97
- analyticsProps: a,
97
+ analyticsProps: s,
98
98
  questionOrder: y
99
99
  }
100
- ) : /* @__PURE__ */ e(
100
+ ) : /* @__PURE__ */ r(
101
101
  N,
102
102
  {
103
103
  handleOnReview: $,
104
104
  handleOnUnlock: E,
105
105
  isMenuVisible: w,
106
106
  blockStatus: n,
107
- analyticsProps: a
107
+ analyticsProps: s
108
108
  }
109
109
  )
110
110
  ] })
@@ -1 +1 @@
1
- {"version":3,"file":"sat-sheet-item.js","sources":["../../../../../../src/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.tsx"],"sourcesContent":["import type { ISATSheetItemProps } from './sat-sheet-item-types';\n\nimport { useCallback, type FC, useMemo } from 'react';\n\nimport { useUIContext } from '../../../../ui/context/context';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { RewardAccuracy } from '../sheet-item/rewards-n-actions/reward-n-actions-styled';\nimport SheetItemIcon from '../sheet-item/sheet-item-icon';\nimport {\n SheetDetailsWrapper,\n SheetItemContainer,\n TopVerticalLine,\n VerticalLineWrapper,\n} from '../sheet-item/sheet-item-styled';\nimport { getSATSheetStatementStats, getUserNodeIdsToUnlockSAT } from './sat-sheet-item-utils';\nimport { getActiveSATSheet } from './sat-sheet-utils';\nimport StudentActions from './student-actions/student-actions';\nimport TeacherActions from './teacher-actions/teacher-actions';\n\nconst SATSheetItem: FC<ISATSheetItemProps> = ({\n blockStatus,\n satMaxScore,\n satScore,\n ...restSATSheetItemProps\n}) => {\n const { blockId, sheets, userType, onSATReview, onSATUnlock, onSATStartOrResume } =\n restSATSheetItemProps;\n const {\n user_block_id: userBlockId,\n can_review: canReview,\n can_start: canStart,\n can_resume: canResume,\n order: questionOrder,\n } = getActiveSATSheet(sheets) || {};\n\n const { onEvent: trackEvent } = useUIContext();\n const analyticsProps = useMemo(\n () => ({\n user_block_id: userBlockId,\n block_id: blockId,\n }),\n [blockId, userBlockId],\n );\n\n const isMenuVisible = Boolean(\n (blockStatus === 'COMPLETED' || blockStatus === 'MASTERED') && canReview && userBlockId,\n );\n\n const handleOnReview = useCallback(() => {\n if (typeof onSATReview !== 'function') {\n throw new Error('onSATReview must be a function');\n }\n\n if (!userBlockId) {\n throw new Error('userBlockId must be a string');\n }\n\n trackEvent('clicked', analyticsProps);\n\n onSATReview(userBlockId);\n }, [analyticsProps, onSATReview, trackEvent, userBlockId]);\n\n const handleOnUnlock = useCallback(() => {\n if (typeof onSATUnlock !== 'function') {\n throw new Error('onSATUnlock must be a function');\n }\n\n const userNodeIds = getUserNodeIdsToUnlockSAT(sheets);\n\n if (userNodeIds.length === 0) {\n throw new Error('User node IDs are missing');\n }\n\n onSATUnlock(userNodeIds);\n }, [onSATUnlock, sheets]);\n\n const handleOnStartOrResume = useCallback(() => {\n if (typeof onSATStartOrResume !== 'function') {\n throw new Error('onSATStartOrResume must be a function');\n }\n\n if (!blockId) {\n throw new Error('blockId must be a string');\n }\n\n onSATStartOrResume(blockId);\n }, [onSATStartOrResume, blockId]);\n\n return (\n <SheetItemContainer\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $flexGapX={1}\n >\n <FlexView $width=\"70%\" $flexGap={8} $flexDirection=\"row\">\n <VerticalLineWrapper>\n <TopVerticalLine />\n </VerticalLineWrapper>\n\n <SheetDetailsWrapper\n $width=\"100%\"\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGap={8}\n $marginBottom={12}\n >\n <SheetItemIcon chapterPermissionCode={blockStatus} />\n\n <FlexView $justifyContent=\"center\" $width=\"100%\">\n <Text $renderAs=\"body1Medium\">Assessment • Mock test</Text>\n\n <FlexView>\n {sheets.map(sheet => {\n const { statement, color } = getSATSheetStatementStats(sheet);\n\n return (\n <Text $renderAs=\"body2\" key={sheet.node_id} $color={color}>\n {statement}\n </Text>\n );\n })}\n </FlexView>\n </FlexView>\n </SheetDetailsWrapper>\n </FlexView>\n\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGap={8}>\n {canReview && satMaxScore && (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n <RewardAccuracy $renderAs=\"eyebrow2\" $align=\"center\">\n {satScore}/{satMaxScore}\n </RewardAccuracy>\n </FlexView>\n )}\n\n {userType === 'STUDENT' ? (\n <StudentActions\n handleOnReview={handleOnReview}\n isMenuVisible={isMenuVisible}\n blockStatus={blockStatus}\n canResume={Boolean(canResume)}\n canStart={Boolean(canStart)}\n handleOnStartOrResume={handleOnStartOrResume}\n analyticsProps={analyticsProps}\n questionOrder={questionOrder}\n />\n ) : (\n <TeacherActions\n handleOnReview={handleOnReview}\n handleOnUnlock={handleOnUnlock}\n isMenuVisible={isMenuVisible}\n blockStatus={blockStatus}\n analyticsProps={analyticsProps}\n />\n )}\n </FlexView>\n </SheetItemContainer>\n );\n};\n\nexport default SATSheetItem;\n"],"names":["SATSheetItem","blockStatus","satMaxScore","satScore","restSATSheetItemProps","blockId","sheets","userType","onSATReview","onSATUnlock","onSATStartOrResume","userBlockId","canReview","canStart","canResume","questionOrder","getActiveSATSheet","trackEvent","useUIContext","analyticsProps","useMemo","isMenuVisible","handleOnReview","useCallback","handleOnUnlock","userNodeIds","getUserNodeIdsToUnlockSAT","handleOnStartOrResume","jsxs","SheetItemContainer","FlexView","jsx","VerticalLineWrapper","TopVerticalLine","SheetDetailsWrapper","SheetItemIcon","Text","sheet","statement","color","getSATSheetStatementStats","RewardAccuracy","StudentActions","TeacherActions"],"mappings":";;;;;;;;;;;;AAoBA,MAAMA,KAAuC,CAAC;AAAA,EAC5C,aAAAC;AAAA,EACA,aAAAC;AAAA,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YAAAtC;AAAA,YAAS;AAAA,YAAED;AAAA,UAAA,EAAA,CACd,EACF,CAAA;AAAA,UAGDK,MAAa,YACZ,gBAAAwB;AAAA,YAACW;AAAA,YAAA;AAAA,cACC,gBAAApB;AAAA,cACA,eAAAD;AAAA,cACA,aAAApB;AAAA,cACA,WAAW,EAAQa;AAAA,cACnB,UAAU,EAAQD;AAAA,cAClB,uBAAAc;AAAA,cACA,gBAAAR;AAAA,cACA,eAAAJ;AAAA,YAAA;AAAA,UAAA,IAGF,gBAAAgB;AAAA,YAACY;AAAA,YAAA;AAAA,cACC,gBAAArB;AAAA,cACA,gBAAAE;AAAA,cACA,eAAAH;AAAA,cACA,aAAApB;AAAA,cACA,gBAAAkB;AAAA,YAAA;AAAA,UACF;AAAA,QAAA,GAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
1
+ {"version":3,"file":"sat-sheet-item.js","sources":["../../../../../../src/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-item.tsx"],"sourcesContent":["import type { ISATSheetItemProps } from './sat-sheet-item-types';\n\nimport { useCallback, type FC, useMemo } from 'react';\n\nimport { useUIContext } from '../../../../ui/context/context';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport Text from '../../../../ui/text/text';\nimport { RewardAccuracy } from '../sheet-item/rewards-n-actions/reward-n-actions-styled';\nimport SheetItemIcon from '../sheet-item/sheet-item-icon';\nimport {\n SheetDetailsWrapper,\n SheetItemContainer,\n TopVerticalLine,\n VerticalLineWrapper,\n} from '../sheet-item/sheet-item-styled';\nimport { getSATSheetStatementStats, getUserNodeIdsToUnlockSAT } from './sat-sheet-item-utils';\nimport { getActiveSheet } from './sat-sheet-utils';\nimport StudentActions from './student-actions/student-actions';\nimport TeacherActions from './teacher-actions/teacher-actions';\n\nconst SATSheetItem: FC<ISATSheetItemProps> = ({\n blockStatus,\n satMaxScore,\n satScore,\n ...restSATSheetItemProps\n}) => {\n const { blockId, sheets, userType, onSATReview, onSATUnlock, onSATStartOrResume } =\n restSATSheetItemProps;\n const {\n user_block_id: userBlockId,\n can_review: canReview,\n can_start: canStart,\n can_resume: canResume,\n order: questionOrder,\n } = getActiveSheet(sheets) || {};\n\n const { onEvent: trackEvent } = useUIContext();\n const analyticsProps = useMemo(\n () => ({\n user_block_id: userBlockId,\n block_id: blockId,\n }),\n [blockId, userBlockId],\n );\n\n const isMenuVisible = Boolean(\n (blockStatus === 'COMPLETED' || blockStatus === 'MASTERED') && canReview && userBlockId,\n );\n\n const handleOnReview = useCallback(() => {\n if (typeof onSATReview !== 'function') {\n throw new Error('onSATReview must be a function');\n }\n\n if (!userBlockId) {\n throw new Error('userBlockId must be a string');\n }\n\n trackEvent('clicked', analyticsProps);\n\n onSATReview(userBlockId);\n }, [analyticsProps, onSATReview, trackEvent, userBlockId]);\n\n const handleOnUnlock = useCallback(() => {\n if (typeof onSATUnlock !== 'function') {\n throw new Error('onSATUnlock must be a function');\n }\n\n const userNodeIds = getUserNodeIdsToUnlockSAT(sheets);\n\n if (userNodeIds.length === 0) {\n throw new Error('User node IDs are missing');\n }\n\n onSATUnlock(userNodeIds);\n }, [onSATUnlock, sheets]);\n\n const handleOnStartOrResume = useCallback(() => {\n if (typeof onSATStartOrResume !== 'function') {\n throw new Error('onSATStartOrResume must be a function');\n }\n\n if (!userBlockId) {\n throw new Error('userBlockId must be a string');\n }\n\n onSATStartOrResume(userBlockId);\n }, [onSATStartOrResume, userBlockId]);\n\n return (\n <SheetItemContainer\n $flexDirection=\"row\"\n $justifyContent=\"space-between\"\n $alignItems=\"center\"\n $flexGapX={1}\n >\n <FlexView $width=\"70%\" $flexGap={8} $flexDirection=\"row\">\n <VerticalLineWrapper>\n <TopVerticalLine />\n </VerticalLineWrapper>\n\n <SheetDetailsWrapper\n $width=\"100%\"\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $flexGap={8}\n $marginBottom={12}\n >\n <SheetItemIcon chapterPermissionCode={blockStatus} />\n\n <FlexView $justifyContent=\"center\" $width=\"100%\">\n <Text $renderAs=\"body1Medium\">Assessment • Mock test</Text>\n\n <FlexView>\n {sheets.map(sheet => {\n const { statement, color } = getSATSheetStatementStats(sheet);\n\n return (\n <Text $renderAs=\"body2\" key={sheet.node_id} $color={color}>\n {statement}\n </Text>\n );\n })}\n </FlexView>\n </FlexView>\n </SheetDetailsWrapper>\n </FlexView>\n\n <FlexView $flexDirection=\"row\" $alignItems=\"center\" $justifyContent=\"center\" $flexGap={8}>\n {canReview && satMaxScore && (\n <FlexView $justifyContent=\"center\" $alignItems=\"center\">\n <RewardAccuracy $renderAs=\"eyebrow2\" $align=\"center\">\n {satScore}/{satMaxScore}\n </RewardAccuracy>\n </FlexView>\n )}\n\n {userType === 'STUDENT' ? (\n <StudentActions\n handleOnReview={handleOnReview}\n isMenuVisible={isMenuVisible}\n blockStatus={blockStatus}\n canResume={Boolean(canResume)}\n canStart={Boolean(canStart)}\n handleOnStartOrResume={handleOnStartOrResume}\n analyticsProps={analyticsProps}\n questionOrder={questionOrder}\n />\n ) : (\n <TeacherActions\n handleOnReview={handleOnReview}\n handleOnUnlock={handleOnUnlock}\n isMenuVisible={isMenuVisible}\n blockStatus={blockStatus}\n analyticsProps={analyticsProps}\n />\n )}\n </FlexView>\n </SheetItemContainer>\n );\n};\n\nexport default SATSheetItem;\n"],"names":["SATSheetItem","blockStatus","satMaxScore","satScore","restSATSheetItemProps","blockId","sheets","userType","onSATReview","onSATUnlock","onSATStartOrResume","userBlockId","canReview","canStart","canResume","questionOrder","getActiveSheet","trackEvent","useUIContext","analyticsProps","useMemo","isMenuVisible","handleOnReview","useCallback","handleOnUnlock","userNodeIds","getUserNodeIdsToUnlockSAT","handleOnStartOrResume","jsxs","SheetItemContainer","FlexView","jsx","VerticalLineWrapper","TopVerticalLine","SheetDetailsWrapper","SheetItemIcon","Text","sheet","statement","color","getSATSheetStatementStats","RewardAccuracy","StudentActions","TeacherActions"],"mappings":";;;;;;;;;;;;AAoBA,MAAMA,KAAuC,CAAC;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,EAAA,WAAU,YAAW,QAAO,UACzC,UAAA;AAAA,YAAAtC;AAAA,YAAS;AAAA,YAAED;AAAA,UAAA,EAAA,CACd,EACF,CAAA;AAAA,UAGDK,MAAa,YACZ,gBAAAwB;AAAA,YAACW;AAAA,YAAA;AAAA,cACC,gBAAApB;AAAA,cACA,eAAAD;AAAA,cACA,aAAApB;AAAA,cACA,WAAW,EAAQa;AAAA,cACnB,UAAU,EAAQD;AAAA,cAClB,uBAAAc;AAAA,cACA,gBAAAR;AAAA,cACA,eAAAJ;AAAA,YAAA;AAAA,UAAA,IAGF,gBAAAgB;AAAA,YAACY;AAAA,YAAA;AAAA,cACC,gBAAArB;AAAA,cACA,gBAAAE;AAAA,cACA,eAAAH;AAAA,cACA,aAAApB;AAAA,cACA,gBAAAkB;AAAA,YAAA;AAAA,UACF;AAAA,QAAA,GAEJ;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAGN;"}
@@ -1,5 +1,5 @@
1
1
  const n = (t) => t.find((e) => e.can_start || e.can_resume) ?? t[0];
2
2
  export {
3
- n as getActiveSATSheet
3
+ n as getActiveSheet
4
4
  };
5
5
  //# sourceMappingURL=sat-sheet-utils.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sat-sheet-utils.js","sources":["../../../../../../src/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.ts"],"sourcesContent":["import type { TLPARSheetData } from '../sheet-item/sheet-item-type';\n\nconst getActiveSATSheet = (sheets: TLPARSheetData[]) => {\n const activeSheet = sheets.find(sheet => sheet.can_start || sheet.can_resume) ?? sheets[0];\n\n return activeSheet;\n};\n\nexport { getActiveSATSheet };\n"],"names":["getActiveSATSheet","sheets","sheet"],"mappings":"AAEM,MAAAA,IAAoB,CAACC,MACLA,EAAO,KAAK,CAASC,MAAAA,EAAM,aAAaA,EAAM,UAAU,KAAKD,EAAO,CAAC;"}
1
+ {"version":3,"file":"sat-sheet-utils.js","sources":["../../../../../../src/features/chapters/lpar-chapter/block-section/sat-sheet-item/sat-sheet-utils.ts"],"sourcesContent":["import type { TLPARSheetData } from '../sheet-item/sheet-item-type';\n\nconst getActiveSheet = (sheets: TLPARSheetData[]) => {\n const activeSheet = sheets.find(sheet => sheet.can_start || sheet.can_resume) ?? sheets[0];\n\n return activeSheet;\n};\n\nexport { getActiveSheet };\n"],"names":["getActiveSheet","sheets","sheet"],"mappings":"AAEM,MAAAA,IAAiB,CAACC,MACFA,EAAO,KAAK,CAASC,MAAAA,EAAM,aAAaA,EAAM,UAAU,KAAKD,EAAO,CAAC;"}
package/dist/index.d.ts CHANGED
@@ -547,8 +547,6 @@ declare enum GENDER {
547
547
  OTHER = "OTHER"
548
548
  }
549
549
 
550
- export declare const getActiveSATSheet: (sheets: TLPARSheetData[]) => TLPARSheetData | undefined;
551
-
552
550
  declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
553
551
 
554
552
  declare const getButtonConfig: IGetButtonConfig;
@@ -2739,7 +2737,7 @@ declare interface IOTPInputProps {
2739
2737
  isBusy?: boolean;
2740
2738
  }
2741
2739
 
2742
- declare interface IOTPResendProps {
2740
+ declare interface IOTPResendProps extends IClickableAnalyticsProps {
2743
2741
  onResendOTP: () => void;
2744
2742
  onResendVoiceOTP?: () => void;
2745
2743
  timerSeconds?: number;
@@ -2786,7 +2784,7 @@ declare interface IPerfectHitsProps {
2786
2784
  value: number;
2787
2785
  }
2788
2786
 
2789
- declare interface IPillButtonProps {
2787
+ declare interface IPillButtonProps extends IClickableAnalyticsProps {
2790
2788
  id: string;
2791
2789
  label: string;
2792
2790
  selected?: boolean;
@@ -3185,7 +3183,7 @@ declare interface ISectionOption<Section = TDefaultSection> {
3185
3183
  data: Section[];
3186
3184
  }
3187
3185
 
3188
- declare interface ISelectableInfoCardProps {
3186
+ declare interface ISelectableInfoCardProps extends IClickableAnalyticsProps {
3189
3187
  id: string;
3190
3188
  title: string;
3191
3189
  description: string;
@@ -4721,6 +4719,23 @@ export declare const PerfectHits: NamedExoticComponent<IPerfectHitsProps>;
4721
4719
 
4722
4720
  export declare const PillButton: NamedExoticComponent<IPillButtonProps>;
4723
4721
 
4722
+ export declare enum PLA_ANALYTICS_EVENTS {
4723
+ START_SIGNUP_CTA_CLICKED = "start_signup_cta_clicked",
4724
+ ECNA_STEP_VIEWED = "ecna_step_viewed",
4725
+ ECNA_RESPONSE_RECORDED_DEBUG = "ecna_response_recorded_debug",
4726
+ PARENT_SIGNUP_CTA_CLICKED = "parent_signup_cta_clicked",
4727
+ PARENT_SIGNUP_SUCCESSFUL = "parent_signup_successful",
4728
+ PARENT_SIGNUP_FAILED = "parent_signup_failed",
4729
+ STUDENT_SIGNUP_SUCCESSFUL = "signup_successful",
4730
+ STUDENT_SIGNUP_FAILED = "signup_failed",
4731
+ SIGNUP_OTP_ENTERED = "signup_otp_entered",
4732
+ SIGNUP_OTP_VERIFIED = "signup_otp_verified",
4733
+ SIGNUP_OTP_FAILED = "signup_otp_failed",
4734
+ SLOTS_SHOWN = "slots_shown",
4735
+ SLOT_DATE_SELECTED = "slot_date_selected",
4736
+ SLOT_TIME_SELECTED = "slot_time_selected"
4737
+ }
4738
+
4724
4739
  /**
4725
4740
  ** Global/Platform specific events that needs to be tracked goes here
4726
4741
  ** Naming convention needs to be snake_case
@@ -4906,7 +4921,7 @@ declare enum SECTION_CODE {
4906
4921
 
4907
4922
  export declare const SectionList: <Section extends string | number | TDefaultSection>(props: ISectionList<Section>) => ReactElement;
4908
4923
 
4909
- export declare const SelectableInfoCard: MemoExoticComponent<({ id, title, description, icon, selected, onClick, }: ISelectableInfoCardProps) => JSX.Element>;
4924
+ export declare const SelectableInfoCard: MemoExoticComponent<({ id, title, description, icon, selected, onClick, analyticsLabel, analyticsProps, }: ISelectableInfoCardProps) => JSX.Element>;
4910
4925
 
4911
4926
  export declare const SelectInput: <IDType extends string | number>(props: ISelectInputProps<IDType>) => ReactElement;
4912
4927