@cuemath/leap 3.3.29 → 3.3.30-beta.0
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/assets/line-icons/icons/chevron-right.js.map +1 -1
- package/dist/features/auth/pla-signup/pla-analytics-events.js +9 -3
- package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js +8 -8
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +1 -1
- package/dist/features/circle-games/sign-up/sign-up.js +6 -6
- package/dist/features/circle-games/sign-up/sign-up.js.map +1 -1
- package/dist/features/homework/hw-card-list/hw-card-list-view.js +17 -17
- package/dist/features/milestone/create/comps/goal-completion-date-selector/goal-completion-date-selector.js +6 -6
- package/dist/features/milestone/create/comps/sheets-list/sheets-list-styled.js +2 -2
- package/dist/features/milestone/create/milestone-create-helpers.js +13 -7
- package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
- package/dist/features/parent-dashboard/api/cancel-subscription.js +9 -0
- package/dist/features/parent-dashboard/api/cancel-subscription.js.map +1 -0
- package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js +20 -0
- package/dist/features/parent-dashboard/comps/billing-information/billing-information-styled.js.map +1 -0
- package/dist/features/parent-dashboard/comps/billing-information/billing-information.js +96 -0
- package/dist/features/parent-dashboard/comps/billing-information/billing-information.js.map +1 -0
- package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/next-steps/next-steps-constants.js +1 -1
- package/dist/features/parent-dashboard/comps/next-steps/next-steps-constants.js.map +1 -0
- package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/next-steps/next-steps-styled.js +1 -1
- package/dist/features/parent-dashboard/comps/next-steps/next-steps-styled.js.map +1 -0
- package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/next-steps/next-steps.js +5 -5
- package/dist/features/parent-dashboard/comps/next-steps/next-steps.js.map +1 -0
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +28 -22
- package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +1 -1
- package/dist/features/parent-dashboard/comps/session-status/hooks/use-countdown.js +34 -0
- package/dist/features/parent-dashboard/comps/session-status/hooks/use-countdown.js.map +1 -0
- package/dist/features/parent-dashboard/comps/session-status/hooks/use-session-status-config.js +137 -0
- package/dist/features/parent-dashboard/comps/session-status/hooks/use-session-status-config.js.map +1 -0
- package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js +20 -0
- package/dist/features/parent-dashboard/comps/session-status/session-status-constants.js.map +1 -0
- package/dist/features/parent-dashboard/comps/session-status/session-status-helpers.js +19 -0
- package/dist/features/parent-dashboard/comps/session-status/session-status-helpers.js.map +1 -0
- package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/session-status/session-status-styled.js +2 -2
- package/dist/features/parent-dashboard/comps/session-status/session-status-styled.js.map +1 -0
- package/dist/features/parent-dashboard/comps/session-status/session-status.js +124 -0
- package/dist/features/parent-dashboard/comps/session-status/session-status.js.map +1 -0
- package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/session-summary/session-summary-constants.js +2 -2
- package/dist/features/parent-dashboard/comps/session-summary/session-summary-constants.js.map +1 -0
- package/dist/features/parent-dashboard/comps/session-summary/session-summary.js +53 -0
- package/dist/features/parent-dashboard/comps/session-summary/session-summary.js.map +1 -0
- package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/session-summary/summary-card/summary-card-styled.js +1 -1
- package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card-styled.js.map +1 -0
- package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js +63 -0
- package/dist/features/parent-dashboard/comps/session-summary/summary-card/summary-card.js.map +1 -0
- package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-constants.js.map +1 -0
- package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions-styled.js +1 -1
- package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-styled.js.map +1 -0
- package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions-types.js.map +1 -0
- package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions.js +14 -14
- package/dist/features/parent-dashboard/comps/upcoming-sessions/upcoming-sessions.js.map +1 -0
- package/dist/features/parent-dashboard/hooks/use-fetch-parent-home.js +1 -1
- package/dist/features/parent-dashboard/hooks/use-fetch-parent-home.js.map +1 -1
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +48 -46
- package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js +21 -0
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription-constants.js.map +1 -0
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js +85 -0
- package/dist/features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js.map +1 -0
- package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js +23 -0
- package/dist/features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js.map +1 -0
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js +55 -0
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-constant.js.map +1 -0
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js +59 -0
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason-styled.js.map +1 -0
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js +93 -0
- package/dist/features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js.map +1 -0
- package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js +66 -0
- package/dist/features/parent-dashboard/modals/hooks/use-pla-model-handlers.js.map +1 -0
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +3 -3
- package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +1 -1
- package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js +76 -0
- package/dist/features/parent-dashboard/modals/view-payment-method/view-payment-method.js.map +1 -0
- package/dist/features/parent-dashboard/parent-dashboard-constants.js +45 -4
- package/dist/features/parent-dashboard/parent-dashboard-constants.js.map +1 -1
- package/dist/features/parent-dashboard/parent-dashboard-types.js +3 -3
- package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
- package/dist/features/parent-dashboard/parent-dashboard-view.js +197 -173
- package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
- package/dist/features/student-details/class-details/class-details-utils.js +6 -6
- package/dist/features/student-username/add/add-student-username-constants.js +6 -0
- package/dist/features/student-username/add/add-student-username-constants.js.map +1 -0
- package/dist/features/student-username/add/add-student-username-helpers.js +6 -0
- package/dist/features/student-username/add/add-student-username-helpers.js.map +1 -0
- package/dist/features/student-username/add/add-student-username-styled.js +10 -0
- package/dist/features/student-username/add/add-student-username-styled.js.map +1 -0
- package/dist/features/student-username/add/add-student-username.js +78 -0
- package/dist/features/student-username/add/add-student-username.js.map +1 -0
- package/dist/features/student-username/add/api/update-username.js +9 -0
- package/dist/features/student-username/add/api/update-username.js.map +1 -0
- package/dist/features/student-username/add/api/username-availability.js +10 -0
- package/dist/features/student-username/add/api/username-availability.js.map +1 -0
- package/dist/features/student-username/add/hooks/use-check-username-availability.js +41 -0
- package/dist/features/student-username/add/hooks/use-check-username-availability.js.map +1 -0
- package/dist/features/trial-session/api/teacher-availability.js +9 -0
- package/dist/features/trial-session/api/teacher-availability.js.map +1 -0
- package/dist/features/trial-session/comps/class-preference/class-preference.js +61 -49
- package/dist/features/trial-session/comps/class-preference/class-preference.js.map +1 -1
- package/dist/features/trial-session/comps/class-preference/helpers.js +28 -0
- package/dist/features/trial-session/comps/class-preference/helpers.js.map +1 -0
- package/dist/features/trial-session/comps/navigation-bar/index.js +24 -24
- package/dist/features/trial-session/comps/navigation-bar/index.js.map +1 -1
- package/dist/features/trial-session/comps/school-goals/school-goals.js +55 -53
- package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
- package/dist/features/trial-session/comps/session-report/session-report.js +15 -15
- package/dist/features/trial-session/comps/session-report/session-report.js.map +1 -1
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js +39 -38
- package/dist/features/trial-session/comps/student-enrichment/student-enrichment.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js +5 -0
- package/dist/features/trial-session/comps/student-feedback/student-feedback-constants.js.map +1 -1
- package/dist/features/trial-session/comps/student-feedback/student-feedback.js +96 -51
- package/dist/features/trial-session/comps/student-feedback/student-feedback.js.map +1 -1
- package/dist/features/trial-session/comps/student-profile/student-profile.js +70 -63
- package/dist/features/trial-session/comps/student-profile/student-profile.js.map +1 -1
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js +43 -44
- package/dist/features/trial-session/comps/teacher-intro/teacher-profile/teacher-profile.js.map +1 -1
- package/dist/features/trial-session/comps/test-prep/test-prep.js +40 -39
- package/dist/features/trial-session/comps/test-prep/test-prep.js.map +1 -1
- package/dist/features/trial-session/helper.js +69 -53
- package/dist/features/trial-session/helper.js.map +1 -1
- package/dist/features/trial-session/hooks/use-slide-config-update.js +49 -0
- package/dist/features/trial-session/hooks/use-slide-config-update.js.map +1 -0
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js +150 -130
- package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
- package/dist/features/trial-session/trial-session-types.js.map +1 -1
- package/dist/features/trial-session/trial-session-view.js +103 -112
- package/dist/features/trial-session/trial-session-view.js.map +1 -1
- package/dist/features/utils/utils.js +1 -1
- package/dist/features/utils/utils.js.map +1 -1
- package/dist/index.d.ts +77 -77
- package/dist/index.js +310 -309
- package/package.json +2 -3
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-constants.js.map +0 -1
- package/dist/features/trial-session/comps/pla/next-steps/next-steps-styled.js.map +0 -1
- package/dist/features/trial-session/comps/pla/next-steps/next-steps.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js +0 -29
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-countdown.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js +0 -132
- package/dist/features/trial-session/comps/pla/session-status/hooks/use-session-status-config.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js +0 -11
- package/dist/features/trial-session/comps/pla/session-status/session-status-constants.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js +0 -19
- package/dist/features/trial-session/comps/pla/session-status/session-status-helpers.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/session-status-styled.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-status/session-status.js +0 -127
- package/dist/features/trial-session/comps/pla/session-status/session-status.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +0 -53
- package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card-styled.js.map +0 -1
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +0 -56
- package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +0 -1
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-constants.js.map +0 -1
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-styled.js.map +0 -1
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions-types.js.map +0 -1
- package/dist/features/trial-session/comps/pla/upcoming-sessions/upcoming-sessions.js.map +0 -1
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js +0 -10
- package/dist/node_modules/date-fns/_lib/getRoundingMethod.js.map +0 -1
- package/dist/node_modules/date-fns/differenceInMilliseconds.js +0 -9
- package/dist/node_modules/date-fns/differenceInMilliseconds.js.map +0 -1
- package/dist/node_modules/date-fns/differenceInSeconds.js +0 -11
- package/dist/node_modules/date-fns/differenceInSeconds.js.map +0 -1
- /package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions-constants.js +0 -0
- /package/dist/features/{trial-session/comps/pla → parent-dashboard/comps}/upcoming-sessions/upcoming-sessions-types.js +0 -0
|
@@ -1,137 +1,128 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
1
|
+
import { jsx as p, jsxs as O } from "react/jsx-runtime";
|
|
2
|
+
import { memo as q, useState as z, useMemo as h, useCallback as J, useEffect as C } from "react";
|
|
3
|
+
import K from "../ui/layout/flex-view.js";
|
|
4
|
+
import Q from "./context/trial-session-context.js";
|
|
5
|
+
import { useButtonStateForLeftPanel as W } from "./hooks/use-left-panel-button-state.js";
|
|
6
|
+
import { useSlideConfigUpdate as X } from "./hooks/use-slide-config-update.js";
|
|
7
|
+
import Y from "./left-panel/index.js";
|
|
8
|
+
import Z from "./right-panel/index.js";
|
|
9
|
+
const le = q((B) => {
|
|
10
10
|
const {
|
|
11
|
-
userType:
|
|
12
|
-
teacherPanel:
|
|
13
|
-
studentPanel:
|
|
14
|
-
trialGameUrl:
|
|
15
|
-
formData:
|
|
16
|
-
height:
|
|
17
|
-
trialHomeData:
|
|
18
|
-
milestoneConfig:
|
|
19
|
-
onFormDataChange:
|
|
20
|
-
worksheet:
|
|
21
|
-
studentId:
|
|
22
|
-
teacherId:
|
|
23
|
-
classStartedOn:
|
|
24
|
-
worksheetNavigationPanel:
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
[
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
11
|
+
userType: n,
|
|
12
|
+
teacherPanel: S,
|
|
13
|
+
studentPanel: D,
|
|
14
|
+
trialGameUrl: I,
|
|
15
|
+
formData: o,
|
|
16
|
+
height: G = "100vh",
|
|
17
|
+
trialHomeData: e,
|
|
18
|
+
milestoneConfig: l,
|
|
19
|
+
onFormDataChange: c,
|
|
20
|
+
worksheet: T,
|
|
21
|
+
studentId: s,
|
|
22
|
+
teacherId: i,
|
|
23
|
+
classStartedOn: P,
|
|
24
|
+
worksheetNavigationPanel: x,
|
|
25
|
+
teacherClassroomId: H,
|
|
26
|
+
questionsRatingPanel: _,
|
|
27
|
+
studentAbsentInClass: v,
|
|
28
|
+
openEndClassModal: y,
|
|
29
|
+
onTrialInformationUpdate: w,
|
|
30
|
+
onStudentTimezoneUpdate: d,
|
|
31
|
+
handleInfoMessage: E,
|
|
32
|
+
onRemoveOptionalSlides: R,
|
|
33
|
+
classDuration: F,
|
|
34
|
+
studentTimezone: $,
|
|
35
|
+
classTimeAlertConfig: b
|
|
36
|
+
} = B, t = n === "TEACHER", { pages: m = [] } = e, [r, L] = z(o), f = t ? r : o, u = f == null ? void 0 : f.id, j = h(
|
|
37
|
+
() => m.find((a) => a.id === u) ?? m[0],
|
|
38
|
+
[u, m]
|
|
39
|
+
), k = h(() => {
|
|
40
|
+
const a = {
|
|
41
|
+
circleConfig: e.circle_trial_game_config,
|
|
41
42
|
playerDetails: {
|
|
42
|
-
userId:
|
|
43
|
-
circle_username: t
|
|
44
|
-
user_avatar: t
|
|
45
|
-
playerType:
|
|
43
|
+
userId: t ? i : s,
|
|
44
|
+
circle_username: e[t ? "teacher" : "student"].circle_username,
|
|
45
|
+
user_avatar: e[t ? "teacher" : "student"].user_avatar,
|
|
46
|
+
playerType: n
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
|
-
return
|
|
49
|
-
}, [
|
|
50
|
-
|
|
51
|
-
}, []), { buttonState: A, updateButtonState:
|
|
49
|
+
return n === "STUDENT" && (a.playerDetails.grade = e.student.grade), a;
|
|
50
|
+
}, [t, s, i, e, n]), g = J((a) => {
|
|
51
|
+
L((V) => V ? { ...V, ...a } : a);
|
|
52
|
+
}, []), { buttonState: A, updateButtonState: M } = W(), { onRenderUpdateSlideConfig: U } = X({
|
|
53
|
+
teacherClassroomId: H,
|
|
54
|
+
milestoneConfig: l,
|
|
55
|
+
studentTimezone: $,
|
|
56
|
+
updateSlideConfig: g
|
|
57
|
+
}), N = h(
|
|
52
58
|
() => ({
|
|
53
|
-
teacherPanel:
|
|
54
|
-
studentPanel:
|
|
55
|
-
isTeacher:
|
|
59
|
+
teacherPanel: S,
|
|
60
|
+
studentPanel: D,
|
|
61
|
+
isTeacher: t,
|
|
56
62
|
slideConfig: j,
|
|
57
|
-
milestoneConfig:
|
|
58
|
-
formData:
|
|
59
|
-
updateSlideConfig:
|
|
60
|
-
worksheet:
|
|
63
|
+
milestoneConfig: l,
|
|
64
|
+
formData: t ? r : o,
|
|
65
|
+
updateSlideConfig: g,
|
|
66
|
+
worksheet: T,
|
|
61
67
|
buttonState: A,
|
|
62
|
-
updateButtonState:
|
|
63
|
-
studentId:
|
|
64
|
-
teacherId:
|
|
65
|
-
classStartedOn:
|
|
66
|
-
trialHomeData:
|
|
67
|
-
worksheetNavigationPanel:
|
|
68
|
-
questionsRatingPanel:
|
|
69
|
-
onTrialInformationUpdate:
|
|
70
|
-
openEndClassModal:
|
|
71
|
-
studentAbsentInClass:
|
|
68
|
+
updateButtonState: M,
|
|
69
|
+
studentId: s,
|
|
70
|
+
teacherId: i,
|
|
71
|
+
classStartedOn: P,
|
|
72
|
+
trialHomeData: e,
|
|
73
|
+
worksheetNavigationPanel: x,
|
|
74
|
+
questionsRatingPanel: _,
|
|
75
|
+
onTrialInformationUpdate: w,
|
|
76
|
+
openEndClassModal: y,
|
|
77
|
+
studentAbsentInClass: v,
|
|
72
78
|
circleGames: k,
|
|
73
|
-
trialGameUrl:
|
|
74
|
-
handleInfoMessage:
|
|
75
|
-
onRemoveOptionalSlides:
|
|
76
|
-
classDuration:
|
|
77
|
-
classTimeAlertConfig:
|
|
79
|
+
trialGameUrl: I,
|
|
80
|
+
handleInfoMessage: E,
|
|
81
|
+
onRemoveOptionalSlides: R,
|
|
82
|
+
classDuration: F,
|
|
83
|
+
classTimeAlertConfig: b
|
|
78
84
|
}),
|
|
79
85
|
[
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
S,
|
|
87
|
+
D,
|
|
88
|
+
t,
|
|
83
89
|
j,
|
|
90
|
+
l,
|
|
91
|
+
r,
|
|
84
92
|
o,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
d,
|
|
88
|
-
P,
|
|
93
|
+
g,
|
|
94
|
+
T,
|
|
89
95
|
A,
|
|
90
|
-
|
|
96
|
+
M,
|
|
97
|
+
s,
|
|
91
98
|
i,
|
|
92
|
-
|
|
99
|
+
P,
|
|
100
|
+
e,
|
|
101
|
+
x,
|
|
93
102
|
_,
|
|
94
|
-
t,
|
|
95
|
-
v,
|
|
96
|
-
y,
|
|
97
|
-
F,
|
|
98
103
|
w,
|
|
99
|
-
|
|
104
|
+
y,
|
|
105
|
+
v,
|
|
100
106
|
k,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
M,
|
|
107
|
+
I,
|
|
108
|
+
E,
|
|
104
109
|
R,
|
|
105
|
-
|
|
110
|
+
F,
|
|
111
|
+
b
|
|
106
112
|
]
|
|
107
113
|
);
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
}, [
|
|
111
|
-
|
|
112
|
-
}, [
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
return S(() => {
|
|
118
|
-
d({
|
|
119
|
-
studentTimezone: g,
|
|
120
|
-
name: b,
|
|
121
|
-
grade: V ? c : ""
|
|
122
|
-
});
|
|
123
|
-
}, [
|
|
124
|
-
b,
|
|
125
|
-
c,
|
|
126
|
-
d,
|
|
127
|
-
g,
|
|
128
|
-
V
|
|
129
|
-
]), /* @__PURE__ */ D(Y.Provider, { value: U, children: /* @__PURE__ */ z(X, { $height: L, $flexDirection: "row", $justifyContent: "center", $alignItems: "center", children: [
|
|
130
|
-
/* @__PURE__ */ D(ee, {}),
|
|
131
|
-
/* @__PURE__ */ D(te, {})
|
|
114
|
+
return C(() => {
|
|
115
|
+
r && c && c(r);
|
|
116
|
+
}, [c, r]), C(() => {
|
|
117
|
+
$ || d == null || d();
|
|
118
|
+
}, [u]), C(() => {
|
|
119
|
+
t && e && U(e);
|
|
120
|
+
}, [t, U, e]), /* @__PURE__ */ p(Q.Provider, { value: N, children: /* @__PURE__ */ O(K, { $height: G, $flexDirection: "row", $justifyContent: "center", $alignItems: "center", children: [
|
|
121
|
+
/* @__PURE__ */ p(Y, {}),
|
|
122
|
+
/* @__PURE__ */ p(Z, {})
|
|
132
123
|
] }) });
|
|
133
124
|
});
|
|
134
125
|
export {
|
|
135
|
-
|
|
126
|
+
le as default
|
|
136
127
|
};
|
|
137
128
|
//# sourceMappingURL=trial-session-view.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trial-session-view.js","sources":["../../../src/features/trial-session/trial-session-view.tsx"],"sourcesContent":["import type { ITrialCircleGameParams } from './comps/trial-circle-game/trial-circle-game-types';\nimport type {\n ITrialSessionContext,\n ITrialSessionViewProps,\n ITrialSessionFormFields,\n} from './trial-session-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useEffect, useMemo, useState } from 'react';\n\nimport
|
|
1
|
+
{"version":3,"file":"trial-session-view.js","sources":["../../../src/features/trial-session/trial-session-view.tsx"],"sourcesContent":["import type { ITrialCircleGameParams } from './comps/trial-circle-game/trial-circle-game-types';\nimport type {\n ITrialSessionContext,\n ITrialSessionViewProps,\n ITrialSessionFormFields,\n} from './trial-session-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useEffect, useMemo, useState } from 'react';\n\nimport FlexView from '../ui/layout/flex-view';\nimport TrialSessionContext from './context/trial-session-context';\nimport { useButtonStateForLeftPanel } from './hooks/use-left-panel-button-state';\nimport { useSlideConfigUpdate } from './hooks/use-slide-config-update';\nimport LeftPanel from './left-panel';\nimport RightPanel from './right-panel';\n\nconst TrialSessionView: FC<ITrialSessionViewProps> = memo(props => {\n const {\n userType,\n teacherPanel,\n studentPanel,\n trialGameUrl,\n formData: formDataProps,\n height = '100vh',\n trialHomeData,\n milestoneConfig,\n onFormDataChange,\n worksheet,\n studentId,\n teacherId,\n classStartedOn,\n worksheetNavigationPanel,\n teacherClassroomId,\n questionsRatingPanel,\n studentAbsentInClass,\n openEndClassModal,\n onTrialInformationUpdate,\n onStudentTimezoneUpdate,\n handleInfoMessage,\n onRemoveOptionalSlides,\n classDuration,\n studentTimezone,\n classTimeAlertConfig,\n } = props;\n const isTeacher = userType === 'TEACHER';\n const { pages: slides = [] } = trialHomeData;\n\n const [formData, setFormData] = useState<ITrialSessionFormFields | undefined>(formDataProps);\n const formDataToUse = isTeacher ? formData : formDataProps;\n const currentSlideId = formDataToUse?.id;\n\n const currentSlideConfig = useMemo(\n () => slides.find(config => config.id === currentSlideId) ?? slides[0]!,\n [currentSlideId, slides],\n );\n\n const circleGames = useMemo(() => {\n const data = {\n circleConfig: trialHomeData.circle_trial_game_config,\n playerDetails: {\n userId: isTeacher ? teacherId : studentId,\n circle_username: trialHomeData[isTeacher ? 'teacher' : 'student'].circle_username,\n user_avatar: trialHomeData[isTeacher ? 'teacher' : 'student'].user_avatar,\n playerType: userType,\n },\n } as ITrialCircleGameParams;\n\n if (userType === 'STUDENT') {\n data.playerDetails.grade = trialHomeData.student.grade;\n }\n\n return data;\n }, [isTeacher, studentId, teacherId, trialHomeData, userType]);\n\n const updateSlideConfig = useCallback((config: Partial<ITrialSessionFormFields>) => {\n setFormData(previousProps => {\n if (!previousProps) return config as ITrialSessionFormFields;\n\n return { ...previousProps, ...config };\n });\n }, []);\n const { buttonState, updateButtonState } = useButtonStateForLeftPanel();\n\n const { onRenderUpdateSlideConfig } = useSlideConfigUpdate({\n teacherClassroomId,\n milestoneConfig,\n studentTimezone,\n updateSlideConfig,\n });\n\n const contextValue = useMemo<ITrialSessionContext>(\n () => ({\n teacherPanel,\n studentPanel,\n isTeacher,\n slideConfig: currentSlideConfig,\n milestoneConfig,\n formData: isTeacher ? formData : formDataProps,\n updateSlideConfig,\n worksheet,\n buttonState,\n updateButtonState,\n studentId,\n teacherId,\n classStartedOn,\n trialHomeData,\n worksheetNavigationPanel,\n questionsRatingPanel,\n onTrialInformationUpdate,\n openEndClassModal,\n studentAbsentInClass,\n circleGames,\n trialGameUrl,\n handleInfoMessage,\n onRemoveOptionalSlides,\n classDuration,\n classTimeAlertConfig,\n }),\n [\n teacherPanel,\n studentPanel,\n isTeacher,\n currentSlideConfig,\n milestoneConfig,\n formData,\n formDataProps,\n updateSlideConfig,\n worksheet,\n buttonState,\n updateButtonState,\n studentId,\n teacherId,\n classStartedOn,\n trialHomeData,\n worksheetNavigationPanel,\n questionsRatingPanel,\n onTrialInformationUpdate,\n openEndClassModal,\n studentAbsentInClass,\n circleGames,\n trialGameUrl,\n handleInfoMessage,\n onRemoveOptionalSlides,\n classDuration,\n classTimeAlertConfig,\n ],\n );\n\n useEffect(() => {\n if (formData && onFormDataChange) {\n onFormDataChange(formData);\n }\n }, [onFormDataChange, formData]);\n\n useEffect(() => {\n if (!studentTimezone) onStudentTimezoneUpdate?.();\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [currentSlideId]);\n\n useEffect(() => {\n if (isTeacher && trialHomeData) {\n onRenderUpdateSlideConfig(trialHomeData);\n }\n }, [isTeacher, onRenderUpdateSlideConfig, trialHomeData]);\n\n return (\n <TrialSessionContext.Provider value={contextValue}>\n <FlexView $height={height} $flexDirection=\"row\" $justifyContent=\"center\" $alignItems=\"center\">\n <LeftPanel />\n <RightPanel />\n </FlexView>\n </TrialSessionContext.Provider>\n );\n});\n\nexport default TrialSessionView;\n"],"names":["TrialSessionView","memo","props","userType","teacherPanel","studentPanel","trialGameUrl","formDataProps","height","trialHomeData","milestoneConfig","onFormDataChange","worksheet","studentId","teacherId","classStartedOn","worksheetNavigationPanel","teacherClassroomId","questionsRatingPanel","studentAbsentInClass","openEndClassModal","onTrialInformationUpdate","onStudentTimezoneUpdate","handleInfoMessage","onRemoveOptionalSlides","classDuration","studentTimezone","classTimeAlertConfig","isTeacher","slides","formData","setFormData","useState","formDataToUse","currentSlideId","currentSlideConfig","useMemo","config","circleGames","data","updateSlideConfig","useCallback","previousProps","buttonState","updateButtonState","useButtonStateForLeftPanel","onRenderUpdateSlideConfig","useSlideConfigUpdate","contextValue","useEffect","jsx","TrialSessionContext","jsxs","FlexView","LeftPanel","RightPanel"],"mappings":"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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { addYears as s } from "../../node_modules/date-fns/addYears.js";
|
|
2
2
|
const i = (r) => Array.isArray(r) && r.length > 0, c = (r) => {
|
|
3
3
|
const t = (a) => a.toString().padStart(2, "0"), o = Math.floor(r / 3600), e = Math.floor(r % 3600 / 60), n = r % 60;
|
|
4
|
-
return o > 0 ? `${t(o)}:${t(e)}:${t(n)}` : `${t(e)}:${t(n)}`;
|
|
4
|
+
return o > 0 ? `${t(o)}:${t(e)}:${t(n)}` : `${t(e)}:${t(Math.abs(n))}`;
|
|
5
5
|
}, l = (r) => {
|
|
6
6
|
let t = null;
|
|
7
7
|
return { promise: new Promise((e) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sources":["../../../src/features/utils/utils.ts"],"sourcesContent":["import { addYears } from 'date-fns';\n\nconst isNonEmptyArray = (array: unknown) => {\n return Array.isArray(array) && array.length > 0;\n};\n\n// format the time in HH:MM:SS\nconst formatTimeInHHMMSS = (seconds: number) => {\n const pad = (num: number) => num.toString().padStart(2, '0');\n\n const h = Math.floor(seconds / 3600);\n const m = Math.floor((seconds % 3600) / 60);\n const s = seconds % 60;\n\n return h > 0 ? `${pad(h)}:${pad(m)}:${pad(s)}` : `${pad(m)}:${pad(s)}`;\n};\n\nconst delay = (delayInMs: number) => {\n let timerId: ReturnType<typeof setTimeout> | null = null;\n const promise = new Promise(res => {\n timerId = setTimeout(() => {\n res('resolved');\n }, delayInMs);\n });\n\n return { promise, timerId };\n};\n\nconst epochTimestampAfterOneYear = () => {\n const today = new Date();\n const oneYearLater = addYears(today, 1);\n\n return Math.floor(oneYearLater.getTime() / 1000);\n};\n\nexport { isNonEmptyArray, formatTimeInHHMMSS, delay, epochTimestampAfterOneYear };\n"],"names":["isNonEmptyArray","array","formatTimeInHHMMSS","seconds","pad","num","h","m","s","delay","delayInMs","timerId","res","epochTimestampAfterOneYear","oneYearLater","addYears"],"mappings":";AAEM,MAAAA,IAAkB,CAACC,MAChB,MAAM,QAAQA,CAAK,KAAKA,EAAM,SAAS,GAI1CC,IAAqB,CAACC,MAAoB;AACxC,QAAAC,IAAM,CAACC,MAAgBA,EAAI,WAAW,SAAS,GAAG,GAAG,GAErDC,IAAI,KAAK,MAAMH,IAAU,IAAI,GAC7BI,IAAI,KAAK,MAAOJ,IAAU,OAAQ,EAAE,GACpCK,IAAIL,IAAU;AAEb,SAAAG,IAAI,IAAI,GAAGF,EAAIE,CAAC,CAAC,IAAIF,EAAIG,CAAC,CAAC,IAAIH,EAAII,CAAC,CAAC,KAAK,GAAGJ,EAAIG,CAAC,CAAC,IAAIH,
|
|
1
|
+
{"version":3,"file":"utils.js","sources":["../../../src/features/utils/utils.ts"],"sourcesContent":["import { addYears } from 'date-fns';\n\nconst isNonEmptyArray = (array: unknown) => {\n return Array.isArray(array) && array.length > 0;\n};\n\n// format the time in HH:MM:SS\nconst formatTimeInHHMMSS = (seconds: number) => {\n const pad = (num: number) => num.toString().padStart(2, '0');\n\n const h = Math.floor(seconds / 3600);\n const m = Math.floor((seconds % 3600) / 60);\n const s = seconds % 60;\n\n return h > 0 ? `${pad(h)}:${pad(m)}:${pad(s)}` : `${pad(m)}:${pad(Math.abs(s))}`;\n};\n\nconst delay = (delayInMs: number) => {\n let timerId: ReturnType<typeof setTimeout> | null = null;\n const promise = new Promise(res => {\n timerId = setTimeout(() => {\n res('resolved');\n }, delayInMs);\n });\n\n return { promise, timerId };\n};\n\nconst epochTimestampAfterOneYear = () => {\n const today = new Date();\n const oneYearLater = addYears(today, 1);\n\n return Math.floor(oneYearLater.getTime() / 1000);\n};\n\nexport { isNonEmptyArray, formatTimeInHHMMSS, delay, epochTimestampAfterOneYear };\n"],"names":["isNonEmptyArray","array","formatTimeInHHMMSS","seconds","pad","num","h","m","s","delay","delayInMs","timerId","res","epochTimestampAfterOneYear","oneYearLater","addYears"],"mappings":";AAEM,MAAAA,IAAkB,CAACC,MAChB,MAAM,QAAQA,CAAK,KAAKA,EAAM,SAAS,GAI1CC,IAAqB,CAACC,MAAoB;AACxC,QAAAC,IAAM,CAACC,MAAgBA,EAAI,WAAW,SAAS,GAAG,GAAG,GAErDC,IAAI,KAAK,MAAMH,IAAU,IAAI,GAC7BI,IAAI,KAAK,MAAOJ,IAAU,OAAQ,EAAE,GACpCK,IAAIL,IAAU;AAEb,SAAAG,IAAI,IAAI,GAAGF,EAAIE,CAAC,CAAC,IAAIF,EAAIG,CAAC,CAAC,IAAIH,EAAII,CAAC,CAAC,KAAK,GAAGJ,EAAIG,CAAC,CAAC,IAAIH,EAAI,KAAK,IAAII,CAAC,CAAC,CAAC;AAChF,GAEMC,IAAQ,CAACC,MAAsB;AACnC,MAAIC,IAAgD;AAO7C,SAAA,EAAE,SANO,IAAI,QAAQ,CAAOC,MAAA;AACjC,IAAAD,IAAU,WAAW,MAAM;AACzB,MAAAC,EAAI,UAAU;AAAA,OACbF,CAAS;AAAA,EAAA,CACb,GAEiB,SAAAC;AACpB,GAEME,IAA6B,MAAM;AAEjC,QAAAC,IAAeC,sBADH,QACmB,CAAC;AAEtC,SAAO,KAAK,MAAMD,EAAa,YAAY,GAAI;AACjD;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -70,6 +70,8 @@ export declare const AchievementNotShareReasonModal: React_2.FC<IShareInstructio
|
|
|
70
70
|
|
|
71
71
|
export declare const AchievementShareInstructionModal: React_2.FC<IShareInstructionModalProps>;
|
|
72
72
|
|
|
73
|
+
export declare const AddStudentUsername: NamedExoticComponent<IAddStudentUsernameProps>;
|
|
74
|
+
|
|
73
75
|
export declare const AfternoonIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
74
76
|
|
|
75
77
|
export declare const AlertIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
@@ -233,6 +235,12 @@ export declare const CalendarIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
|
233
235
|
|
|
234
236
|
export declare const Callout: React.FC<ICalloutProps>;
|
|
235
237
|
|
|
238
|
+
export declare const CancellationConfirmationModal: MemoExoticComponent<() => JSX.Element>;
|
|
239
|
+
|
|
240
|
+
export declare const CancellationReasonModal: MemoExoticComponent<() => JSX.Element>;
|
|
241
|
+
|
|
242
|
+
export declare const CancelSubscriptionModal: MemoExoticComponent<() => JSX.Element>;
|
|
243
|
+
|
|
236
244
|
export declare const Carousel: React_2.FC<CarouselProps>;
|
|
237
245
|
|
|
238
246
|
declare interface CarouselProps {
|
|
@@ -478,11 +486,6 @@ export declare const Drawer: FC<IDrawerProps>;
|
|
|
478
486
|
|
|
479
487
|
export declare const DynamicPreviewWorksheet: FC<IDynamicWorksheetPreview>;
|
|
480
488
|
|
|
481
|
-
declare enum EClassStatus {
|
|
482
|
-
S_NO_SHOW = "S_NO_SHOW",
|
|
483
|
-
T_NO_SHOW = "T_NO_SHOW"
|
|
484
|
-
}
|
|
485
|
-
|
|
486
489
|
export declare enum EClassTimeAlertLevel {
|
|
487
490
|
FIVE_MIN = "5min",
|
|
488
491
|
FIFTEEN_MIN = "15min"
|
|
@@ -526,6 +529,21 @@ declare const ENROLLMENT_TYPES: {
|
|
|
526
529
|
readonly CUECENTER: "CUECENTER";
|
|
527
530
|
};
|
|
528
531
|
|
|
532
|
+
export declare enum EPLAState {
|
|
533
|
+
NO_CARD_ON_FILE = "no_card_on_file",
|
|
534
|
+
CARD_ADDED_SEARCHING_TUTOR = "card_added_searching_tutor",
|
|
535
|
+
CARD_ADDED_TUTOR_ASSIGNED = "card_added_tutor_assigned",
|
|
536
|
+
TRIAL_TUTOR_NO_SHOW = "trial_tutor_no_show",
|
|
537
|
+
TRIAL_STUDENT_NO_SHOW = "trial_student_no_show",
|
|
538
|
+
TRIAL_COMPLETED_PAYMENT_PENDING = "trial_completed_payment_pending",
|
|
539
|
+
TRIAL_COMPLETED_CARD_DECLINED = "trial_completed_card_declined",
|
|
540
|
+
TRIAL_COMPLETED_PAYMENT_SUCCESSFUL = "trial_completed_payment_successful",
|
|
541
|
+
REGULAR_CLASS_COMPLETED = "regular_class_completed",
|
|
542
|
+
SUBSCRIPTION_CANCELLED_BEFORE_TRIAL = "cancelled_before_trial",
|
|
543
|
+
SUBSCRIPTION_CANCELLED_AFTER_TRIAL_BEFORE_PAYMENT = "cancelled_after_trial_before_payment",
|
|
544
|
+
SUBSCRIPTION_CANCELLED_AFTER_PAYMENT = "cancelled_after_payment"
|
|
545
|
+
}
|
|
546
|
+
|
|
529
547
|
export declare enum EPostGameStat {
|
|
530
548
|
STREAK = "streak",
|
|
531
549
|
SCORE = "score",
|
|
@@ -815,6 +833,12 @@ declare interface IActionData {
|
|
|
815
833
|
dimension?: IViewport;
|
|
816
834
|
}
|
|
817
835
|
|
|
836
|
+
declare interface IAddStudentUsernameProps {
|
|
837
|
+
studentId: string;
|
|
838
|
+
onSuccess: (username: string) => void;
|
|
839
|
+
onGoBack: () => void;
|
|
840
|
+
}
|
|
841
|
+
|
|
818
842
|
declare interface IAnimatedArcProps {
|
|
819
843
|
radius: number;
|
|
820
844
|
strokeWidth: number;
|
|
@@ -1006,6 +1030,13 @@ declare interface IBaseWorksheetProps {
|
|
|
1006
1030
|
actionBarRightElement?: ReactElement;
|
|
1007
1031
|
}
|
|
1008
1032
|
|
|
1033
|
+
declare interface IBillingDetails {
|
|
1034
|
+
amount: number;
|
|
1035
|
+
cycle_frequency: string;
|
|
1036
|
+
next_due_date: string;
|
|
1037
|
+
payment_method_details: IPaymentMethodDetails;
|
|
1038
|
+
}
|
|
1039
|
+
|
|
1009
1040
|
declare interface IBlockSectionsCallbacks extends INodeCardCallbacks {
|
|
1010
1041
|
onBlockSkipUnskip?: (blockData: IChapterBlockData, skipBlock?: boolean) => void;
|
|
1011
1042
|
onBlockReset?: (blockData: IChapterBlockData) => void;
|
|
@@ -2541,7 +2572,7 @@ declare interface IMilestoneCardPermissions {
|
|
|
2541
2572
|
visible_tabs: string[];
|
|
2542
2573
|
}
|
|
2543
2574
|
|
|
2544
|
-
declare interface IMilestoneConfig {
|
|
2575
|
+
export declare interface IMilestoneConfig {
|
|
2545
2576
|
action_plan: Record<'green' | 'red' | 'yellow', {
|
|
2546
2577
|
share_message_template: string;
|
|
2547
2578
|
}>;
|
|
@@ -3022,11 +3053,17 @@ declare interface IParentDashboardProps {
|
|
|
3022
3053
|
onGetStartedAgain?: () => void;
|
|
3023
3054
|
onViewSummary?: (key: ESummaryType, summaryData: IOnViewSummaryParams) => void;
|
|
3024
3055
|
onSwitchUser?: () => void;
|
|
3025
|
-
canChangeTutor: boolean;
|
|
3026
|
-
isSubscriptionCancelled: boolean;
|
|
3027
3056
|
HeaderAvatar: ReactElement;
|
|
3028
3057
|
}
|
|
3029
3058
|
|
|
3059
|
+
declare interface IPaymentMethodDetails {
|
|
3060
|
+
brand: string;
|
|
3061
|
+
last_4_digits: string;
|
|
3062
|
+
type: string;
|
|
3063
|
+
exp_month: number;
|
|
3064
|
+
exp_year: number;
|
|
3065
|
+
}
|
|
3066
|
+
|
|
3030
3067
|
declare interface IPercentileProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'>, Omit<IBaseInputProps, 'inputElement'> {
|
|
3031
3068
|
}
|
|
3032
3069
|
|
|
@@ -3127,12 +3164,13 @@ export declare interface IPostGameStatsRef {
|
|
|
3127
3164
|
declare interface IPreferencesCurriculumMap {
|
|
3128
3165
|
course_stream: TCourseStream;
|
|
3129
3166
|
is_live: boolean;
|
|
3130
|
-
preference_category:
|
|
3167
|
+
preference_category: TLearningPreferenceCategory;
|
|
3131
3168
|
preference_code: string;
|
|
3132
3169
|
preference_grades: string[];
|
|
3133
3170
|
preference_name: string;
|
|
3134
3171
|
text_input_needed?: boolean;
|
|
3135
3172
|
preference_description?: string;
|
|
3173
|
+
lottie_key?: string;
|
|
3136
3174
|
}
|
|
3137
3175
|
|
|
3138
3176
|
export declare interface IPreviewWorksheetModel {
|
|
@@ -3523,7 +3561,6 @@ declare interface ISessionDetails {
|
|
|
3523
3561
|
next_session_end: number;
|
|
3524
3562
|
student_demo_id: string;
|
|
3525
3563
|
upcoming_sessions: TSession[];
|
|
3526
|
-
demo_class_status: EClassStatus | null;
|
|
3527
3564
|
user_attempt_id?: string;
|
|
3528
3565
|
}
|
|
3529
3566
|
|
|
@@ -3532,22 +3569,6 @@ declare interface ISessionInsightsQuery {
|
|
|
3532
3569
|
student_name: string;
|
|
3533
3570
|
}
|
|
3534
3571
|
|
|
3535
|
-
declare interface ISessionStatusProps {
|
|
3536
|
-
completedSessions: number;
|
|
3537
|
-
nextSessionStartTime: number;
|
|
3538
|
-
status?: EClassStatus | null;
|
|
3539
|
-
studentName: string;
|
|
3540
|
-
teacherName?: string;
|
|
3541
|
-
nextSessionEndTime: number;
|
|
3542
|
-
onRescheduleClick?: () => void;
|
|
3543
|
-
}
|
|
3544
|
-
|
|
3545
|
-
declare interface ISessionSummaryProps {
|
|
3546
|
-
isDemoDone: boolean;
|
|
3547
|
-
studentName: string;
|
|
3548
|
-
onViewSummary?: (key: ESummaryType) => void;
|
|
3549
|
-
}
|
|
3550
|
-
|
|
3551
3572
|
declare interface IShareInstructionModalProps {
|
|
3552
3573
|
milestoneAchievementId: string;
|
|
3553
3574
|
studentName: string;
|
|
@@ -3990,23 +4011,6 @@ declare interface ITeacherDetails {
|
|
|
3990
4011
|
header_image: string;
|
|
3991
4012
|
}
|
|
3992
4013
|
|
|
3993
|
-
declare interface ITeacherProfileDetails {
|
|
3994
|
-
lower_grade: string;
|
|
3995
|
-
higher_grade: string;
|
|
3996
|
-
header_image: string;
|
|
3997
|
-
years_of_experience: number;
|
|
3998
|
-
number_of_students_taught: number;
|
|
3999
|
-
countries: string[];
|
|
4000
|
-
degree: TDegreeInformation;
|
|
4001
|
-
first_name: string;
|
|
4002
|
-
last_name: string;
|
|
4003
|
-
teacher_profile_url?: string;
|
|
4004
|
-
}
|
|
4005
|
-
|
|
4006
|
-
declare interface ITeacherProfileProps {
|
|
4007
|
-
teacherProfile?: ITeacherProfileDetails;
|
|
4008
|
-
}
|
|
4009
|
-
|
|
4010
4014
|
declare interface ITeacherReview {
|
|
4011
4015
|
reviewComment?: string;
|
|
4012
4016
|
images?: string[];
|
|
@@ -4163,6 +4167,7 @@ export declare interface ITrialSessionFormFields {
|
|
|
4163
4167
|
personalizedFocus?: string[];
|
|
4164
4168
|
personalizedBehaviors?: string[];
|
|
4165
4169
|
personalizedObjectives?: string[];
|
|
4170
|
+
personalizedPosition?: string[];
|
|
4166
4171
|
isCircleGamePlayed?: boolean;
|
|
4167
4172
|
isCirclePuzzleSolved?: boolean;
|
|
4168
4173
|
isCircleSkillCompleted?: boolean;
|
|
@@ -4210,10 +4215,6 @@ export declare interface ITutorialProps {
|
|
|
4210
4215
|
isJourneyActive?: boolean;
|
|
4211
4216
|
}
|
|
4212
4217
|
|
|
4213
|
-
declare interface IUpcomingSessionsProps {
|
|
4214
|
-
sessions?: TSession[];
|
|
4215
|
-
}
|
|
4216
|
-
|
|
4217
4218
|
declare interface IUpdateImages {
|
|
4218
4219
|
filteredImages: string[];
|
|
4219
4220
|
newImages: IFile[];
|
|
@@ -4304,22 +4305,29 @@ declare interface IUseModalParams {
|
|
|
4304
4305
|
}
|
|
4305
4306
|
|
|
4306
4307
|
declare interface IUseParentHomeDataReturn {
|
|
4308
|
+
plaState: EPLAState | null;
|
|
4307
4309
|
sessionDetails: ISessionDetails | null;
|
|
4308
4310
|
teacherDetails: ITeacherDetails | null;
|
|
4311
|
+
billingDetails: IBillingDetails | null;
|
|
4309
4312
|
completedSessions: number;
|
|
4310
4313
|
nextSessionEnd: number;
|
|
4311
4314
|
nextSessionStart: number;
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4316
|
-
|
|
4317
|
-
|
|
4318
|
-
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4315
|
+
teacherName: string;
|
|
4316
|
+
upcomingSessions: TSession[];
|
|
4317
|
+
isTrialDone: boolean;
|
|
4318
|
+
isOnlyTrialDone: boolean;
|
|
4319
|
+
isRegularClassDone: boolean;
|
|
4320
|
+
isCardDeclined: boolean;
|
|
4321
|
+
isSubscriptionCancelled: boolean;
|
|
4322
|
+
cardOnFileNotAvailable: boolean;
|
|
4323
|
+
isTutorNoShow: boolean;
|
|
4324
|
+
isStudentNoShow: boolean;
|
|
4325
|
+
showLoading: boolean;
|
|
4326
|
+
demoId: string | null;
|
|
4327
|
+
userAttemptId: string | null;
|
|
4328
|
+
isProcessingFailed: boolean;
|
|
4329
|
+
canChangeTutor: boolean;
|
|
4330
|
+
showPLAIntroduction?: boolean;
|
|
4323
4331
|
}
|
|
4324
4332
|
|
|
4325
4333
|
declare interface IusePointerSyncMethods {
|
|
@@ -5009,8 +5017,6 @@ export declare const Next2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
|
5009
5017
|
|
|
5010
5018
|
export declare const NextIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
5011
5019
|
|
|
5012
|
-
export declare const NextSteps: NamedExoticComponent<{}>;
|
|
5013
|
-
|
|
5014
5020
|
declare enum NODE_CARD_COURSE_TYPES {
|
|
5015
5021
|
PROGRAM = "PROGRAM",
|
|
5016
5022
|
REMEDIAL = "REMEDIAL",
|
|
@@ -5225,7 +5231,13 @@ export declare enum PLA_ANALYTICS_EVENTS {
|
|
|
5225
5231
|
SLOTS_SHOWN = "slots_shown",
|
|
5226
5232
|
SLOT_DATE_SELECTED = "slot_date_selected",
|
|
5227
5233
|
SLOT_TIME_SELECTED = "slot_time_selected",
|
|
5228
|
-
TUTOR_CHANGE_REASON_SELECTED = "tutor_change_reason_selected"
|
|
5234
|
+
TUTOR_CHANGE_REASON_SELECTED = "tutor_change_reason_selected",
|
|
5235
|
+
SUBSCRIPTION_INTENT_FAILED = "subscription_intent_failed",
|
|
5236
|
+
SUBSCRIPTION_INTENT_CREATED = "subscription_intent_created",
|
|
5237
|
+
STRIPE_PAYMENT_ELEMENT_READY = "stripe_payment_element_ready",
|
|
5238
|
+
STRIPE_PAYMENT_FAILED = "stripe_payment_failed",
|
|
5239
|
+
STRIPE_PAYMENT_SUCCESS = "stripe_payment_success",
|
|
5240
|
+
PAYMENT_PLAN_SELECTED = "payment_plan_selected"
|
|
5229
5241
|
}
|
|
5230
5242
|
|
|
5231
5243
|
export declare const PlaFirstSessionIntroduction: NamedExoticComponent<IFirstSessionIntroductionProps>;
|
|
@@ -5455,10 +5467,6 @@ export declare const SENTRY_IGNORED_ERRORS: Array<string | RegExp>;
|
|
|
5455
5467
|
|
|
5456
5468
|
export declare const Separator: React_2.FC<ISeparatorProps>;
|
|
5457
5469
|
|
|
5458
|
-
export declare const SessionStatus: MemoExoticComponent<({ completedSessions, nextSessionStartTime, status, teacherName, studentName, onRescheduleClick, }: ISessionStatusProps) => JSX.Element>;
|
|
5459
|
-
|
|
5460
|
-
export declare const SessionSummary: MemoExoticComponent<({ isDemoDone, studentName, onViewSummary }: ISessionSummaryProps) => JSX.Element>;
|
|
5461
|
-
|
|
5462
5470
|
declare type SharedProps = {
|
|
5463
5471
|
width?: string | number;
|
|
5464
5472
|
height?: string | number;
|
|
@@ -5867,16 +5875,8 @@ declare type TCueProgramData = {
|
|
|
5867
5875
|
|
|
5868
5876
|
declare type TDefaultSection = Record<string, unknown>;
|
|
5869
5877
|
|
|
5870
|
-
declare type TDegreeInformation = {
|
|
5871
|
-
degree_name?: string;
|
|
5872
|
-
field_of_study?: string;
|
|
5873
|
-
degree_code?: string;
|
|
5874
|
-
};
|
|
5875
|
-
|
|
5876
5878
|
declare type TDrawingData = ITile | IStroke | undefined;
|
|
5877
5879
|
|
|
5878
|
-
export declare const TeacherProfile: FC<ITeacherProfileProps>;
|
|
5879
|
-
|
|
5880
5880
|
declare type TEnglishSectionSummary = {
|
|
5881
5881
|
section_code: 'READING & WRITING';
|
|
5882
5882
|
} & TSectionSummary;
|
|
@@ -6238,6 +6238,8 @@ export declare type TJourneyId = JOURNEY_ID_STUDENT | JOURNEY_ID_TEACHER;
|
|
|
6238
6238
|
|
|
6239
6239
|
declare type TLayerKey = 'layer-1' | 'layer-2' | 'layer-3' | 'layer-4';
|
|
6240
6240
|
|
|
6241
|
+
export declare type TLearningPreferenceCategory = (typeof PREFERENCE_CATEGORY)[keyof typeof PREFERENCE_CATEGORY];
|
|
6242
|
+
|
|
6241
6243
|
declare type TLearnosityPreloaderContextValue = {
|
|
6242
6244
|
scriptStatus: Omit<TScriptStatus, 'loaded'>;
|
|
6243
6245
|
defaultAPIURL: string;
|
|
@@ -6523,8 +6525,6 @@ declare type TPreference = {
|
|
|
6523
6525
|
selectedTime: string;
|
|
6524
6526
|
};
|
|
6525
6527
|
|
|
6526
|
-
declare type TPreferenceCategory = (typeof PREFERENCE_CATEGORY)[keyof typeof PREFERENCE_CATEGORY];
|
|
6527
|
-
|
|
6528
6528
|
declare type TProfileHighlight = {
|
|
6529
6529
|
illustration: string;
|
|
6530
6530
|
background: TColorNames;
|
|
@@ -6863,8 +6863,6 @@ export declare const Unlock2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
|
6863
6863
|
|
|
6864
6864
|
export declare const UnlockIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
6865
6865
|
|
|
6866
|
-
export declare const UpcomingSessions: React_2.NamedExoticComponent<IUpcomingSessionsProps>;
|
|
6867
|
-
|
|
6868
6866
|
export declare const UpIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
6869
6867
|
|
|
6870
6868
|
export declare const useAutoPlayPermission: () => IAutoPlayPermissionContextType;
|
|
@@ -7149,6 +7147,8 @@ export declare const useZoomDisable: () => void;
|
|
|
7149
7147
|
|
|
7150
7148
|
export declare const Video: React_2.FC<ICustomVideoProps>;
|
|
7151
7149
|
|
|
7150
|
+
export declare const ViewPaymentMethodModal: MemoExoticComponent<() => JSX.Element>;
|
|
7151
|
+
|
|
7152
7152
|
declare const VISIBILITY_TYPES: {
|
|
7153
7153
|
GROUPED: string;
|
|
7154
7154
|
SEPARATE: string;
|