@cuemath/leap 3.0.12-j → 3.0.12
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/illustrations/illustrations.js +0 -3
- package/dist/assets/illustrations/illustrations.js.map +1 -1
- package/dist/assets/lottie/lottie.js +0 -11
- package/dist/assets/lottie/lottie.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/node-card-styled.js +32 -68
- package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +95 -98
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +98 -102
- package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -1
- package/dist/index.d.ts +0 -284
- package/dist/index.js +321 -367
- package/dist/index.js.map +1 -1
- package/package.json +2 -3
- package/dist/assets/illustrations/loader-1.svg.js +0 -6
- package/dist/assets/illustrations/loader-1.svg.js.map +0 -1
- package/dist/assets/line-icons/icons/apple-icon.js +0 -48
- package/dist/assets/line-icons/icons/apple-icon.js.map +0 -1
- package/dist/assets/line-icons/icons/google-icon.js +0 -42
- package/dist/assets/line-icons/icons/google-icon.js.map +0 -1
- package/dist/features/auth/account-selector/account-selector.js +0 -43
- package/dist/features/auth/account-selector/account-selector.js.map +0 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js +0 -12
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout-styles.js.map +0 -1
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +0 -12
- package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +0 -1
- package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js +0 -18
- package/dist/features/auth/comps/auth-static-panel/auth-static-panel.js.map +0 -1
- package/dist/features/auth/comps/input-status-icon/input-status-icon.js +0 -21
- package/dist/features/auth/comps/input-status-icon/input-status-icon.js.map +0 -1
- package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js +0 -29
- package/dist/features/auth/comps/overlay-loader/overlay-loader-styled.js.map +0 -1
- package/dist/features/auth/comps/overlay-loader/overlay-loader.js +0 -9
- package/dist/features/auth/comps/overlay-loader/overlay-loader.js.map +0 -1
- package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js +0 -24
- package/dist/features/auth/comps/resend-otp/hooks/use-resend-timer.js.map +0 -1
- package/dist/features/auth/comps/resend-otp/resend-otp.js +0 -65
- package/dist/features/auth/comps/resend-otp/resend-otp.js.map +0 -1
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +0 -23
- package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +0 -1
- package/dist/features/auth/comps/tabs/tabs-styled.js +0 -23
- package/dist/features/auth/comps/tabs/tabs-styled.js.map +0 -1
- package/dist/features/auth/comps/tabs/tabs.js +0 -9
- package/dist/features/auth/comps/tabs/tabs.js.map +0 -1
- package/dist/features/auth/forgot-password/forgot-password-styled.js +0 -12
- package/dist/features/auth/forgot-password/forgot-password-styled.js.map +0 -1
- package/dist/features/auth/forgot-password/otp-form/otp-form.js +0 -66
- package/dist/features/auth/forgot-password/otp-form/otp-form.js.map +0 -1
- package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js +0 -101
- package/dist/features/auth/forgot-password/reset-password-form/reset-password-form.js.map +0 -1
- package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js +0 -68
- package/dist/features/auth/forgot-password/user-identifier-form/user-identifier-form.js.map +0 -1
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +0 -12
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +0 -1
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js +0 -100
- package/dist/features/auth/login/identifier-otp-form/identifier-otp-form.js.map +0 -1
- package/dist/features/auth/login/login-constants.js +0 -14
- package/dist/features/auth/login/login-constants.js.map +0 -1
- package/dist/features/auth/login/social-account-not-found/social-account-not-found.js +0 -32
- package/dist/features/auth/login/social-account-not-found/social-account-not-found.js.map +0 -1
- package/dist/features/auth/login/social-login-methods/social-login-methods.js +0 -47
- package/dist/features/auth/login/social-login-methods/social-login-methods.js.map +0 -1
- package/dist/features/auth/login/username-password-form/username-password-form.js +0 -98
- package/dist/features/auth/login/username-password-form/username-password-form.js.map +0 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js +0 -56
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper-styled.js.map +0 -1
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +0 -131
- package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +0 -1
- package/dist/features/auth/signup/claim-user-account/claim-user-account.js +0 -53
- package/dist/features/auth/signup/claim-user-account/claim-user-account.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js +0 -34
- package/dist/features/auth/signup/custom-input-field/country-selector/country-code-button.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js +0 -98
- package/dist/features/auth/signup/custom-input-field/country-selector/country-list-menu.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js +0 -57
- package/dist/features/auth/signup/custom-input-field/country-selector/country-selector-styled.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js +0 -26
- package/dist/features/auth/signup/custom-input-field/country-selector/country-selector.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js +0 -30
- package/dist/features/auth/signup/custom-input-field/custom-input-field-styled.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js +0 -100
- package/dist/features/auth/signup/custom-input-field/custom-input-field.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js +0 -88
- package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input-styled.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js +0 -43
- package/dist/features/auth/signup/custom-input-field/date-picker-input/date-picker-input.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js +0 -31
- package/dist/features/auth/signup/custom-input-field/grade-input/grade-input-styled.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js +0 -31
- package/dist/features/auth/signup/custom-input-field/grade-input/grade-input.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js +0 -11
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper-styled.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js +0 -29
- package/dist/features/auth/signup/custom-input-field/input-wrapper/input-wrapper.js.map +0 -1
- package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js +0 -9
- package/dist/features/auth/signup/custom-input-field/password-toggle/password-toggle.js.map +0 -1
- package/dist/features/auth/signup/signup-constants.js +0 -1031
- package/dist/features/auth/signup/signup-constants.js.map +0 -1
- package/dist/features/auth/signup/signup-methods/signup-methods.js +0 -69
- package/dist/features/auth/signup/signup-methods/signup-methods.js.map +0 -1
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js +0 -19
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card-styled.js.map +0 -1
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js +0 -62
- package/dist/features/auth/signup/user-type-selector/user-type-card/user-type-card.js.map +0 -1
- package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js +0 -24
- package/dist/features/auth/signup/user-type-selector/user-type-selector-styled.js.map +0 -1
- package/dist/features/auth/signup/user-type-selector/user-type-selector.js +0 -85
- package/dist/features/auth/signup/user-type-selector/user-type-selector.js.map +0 -1
- package/dist/features/auth/user-list/user-item/user-item-styled.js +0 -21
- package/dist/features/auth/user-list/user-item/user-item-styled.js.map +0 -1
- package/dist/features/auth/user-list/user-item/user-item.js +0 -48
- package/dist/features/auth/user-list/user-item/user-item.js.map +0 -1
- package/dist/features/auth/user-list/user-list-styled.js +0 -19
- package/dist/features/auth/user-list/user-list-styled.js.map +0 -1
- package/dist/features/auth/user-list/user-list.js +0 -56
- package/dist/features/auth/user-list/user-list.js.map +0 -1
- package/dist/features/ui/border-path-animation/border-path-animation-styled.js +0 -51
- package/dist/features/ui/border-path-animation/border-path-animation-styled.js.map +0 -1
- package/dist/features/ui/border-path-animation/border-path-animation.js +0 -108
- package/dist/features/ui/border-path-animation/border-path-animation.js.map +0 -1
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js +0 -332
- package/dist/node_modules/@floating-ui/core/dist/floating-ui.core.js.map +0 -1
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js +0 -370
- package/dist/node_modules/@floating-ui/dom/dist/floating-ui.dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js +0 -252
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.js.map +0 -1
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js +0 -24
- package/dist/node_modules/@floating-ui/react/dist/floating-ui.react.utils.js.map +0 -1
- package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js +0 -192
- package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -19
- package/dist/node_modules/@floating-ui/react/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js +0 -129
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.js.map +0 -1
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js +0 -129
- package/dist/node_modules/@floating-ui/utils/dist/floating-ui.utils.js.map +0 -1
- package/dist/node_modules/clsx/dist/clsx.js +0 -18
- package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/date-fns/subYears.js +0 -9
- package/dist/node_modules/date-fns/subYears.js.map +0 -1
- package/dist/node_modules/react-datepicker/dist/index.es.js +0 -2700
- package/dist/node_modules/react-datepicker/dist/index.es.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js +0 -8
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/addLeadingZeros.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js +0 -8
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/defaultOptions.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js +0 -518
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/formatters.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js +0 -60
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/lightFormatters.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js +0 -53
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/format/longFormatters.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js +0 -19
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js +0 -12
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/normalizeDates.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js +0 -21
- package/dist/node_modules/react-datepicker/node_modules/date-fns/_lib/protectedTokens.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js +0 -11
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addDays.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addHours.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMilliseconds.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js +0 -11
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMinutes.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js +0 -21
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addMonths.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addQuarters.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addSeconds.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addWeeks.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/addYears.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/constants.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/constructFrom.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js +0 -17
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarDays.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js +0 -14
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarMonths.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js +0 -15
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarQuarters.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js +0 -14
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInCalendarYears.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js +0 -23
- package/dist/node_modules/react-datepicker/node_modules/date-fns/differenceInDays.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfDay.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfMonth.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js +0 -12
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfWeek.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/endOfYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js +0 -60
- package/dist/node_modules/react-datepicker/node_modules/date-fns/format.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDate.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDay.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js +0 -12
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDayOfYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js +0 -11
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDaysInMonth.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getDefaultOptions.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getHours.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISODay.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js +0 -13
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeek.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js +0 -16
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getISOWeekYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getMinutes.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getMonth.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getQuarter.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getSeconds.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getTime.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js +0 -13
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeek.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js +0 -18
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getWeekYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/getYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isAfter.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isBefore.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js +0 -8
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isDate.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isEqual.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js +0 -15
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameDay.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js +0 -14
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameMonth.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js +0 -15
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameQuarter.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js +0 -14
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isSameYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isValid.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js +0 -13
- package/dist/node_modules/react-datepicker/node_modules/date-fns/isWithinInterval.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildFormatLongFn.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -19
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildLocalizeFn.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -32
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchFn.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -16
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -71
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatDistance.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -34
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatLong.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -12
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/formatRelative.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -156
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/localize.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js +0 -111
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US/_lib/match.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js +0 -22
- package/dist/node_modules/react-datepicker/node_modules/date-fns/locale/en-US.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js +0 -15
- package/dist/node_modules/react-datepicker/node_modules/date-fns/max.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js +0 -15
- package/dist/node_modules/react-datepicker/node_modules/date-fns/min.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js +0 -23
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Parser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js +0 -42
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/Setter.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js +0 -50
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/constants.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js +0 -50
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js +0 -50
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/AMPMParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js +0 -62
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DateParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js +0 -52
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js +0 -46
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js +0 -50
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js +0 -31
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/EraParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js +0 -22
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js +0 -23
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js +0 -33
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js +0 -33
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js +0 -34
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js +0 -34
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js +0 -100
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISODayParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js +0 -49
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js +0 -49
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js +0 -50
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js +0 -41
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js +0 -75
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js +0 -49
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js +0 -70
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js +0 -33
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MinuteParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js +0 -72
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/MonthParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js +0 -71
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/QuarterParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js +0 -33
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/SecondParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js +0 -75
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js +0 -72
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js +0 -71
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js +0 -23
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js +0 -23
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js +0 -50
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers/YearParser.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js +0 -68
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/parsers.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js +0 -104
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse/_lib/utils.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js +0 -88
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parse.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js +0 -123
- package/dist/node_modules/react-datepicker/node_modules/date-fns/parseISO.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js +0 -13
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setDay.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setHours.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js +0 -12
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setISODay.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js +0 -11
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setISOWeek.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setMinutes.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js +0 -14
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setMonth.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js +0 -11
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setQuarter.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setSeconds.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js +0 -11
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setWeek.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js +0 -11
- package/dist/node_modules/react-datepicker/node_modules/date-fns/setYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfDay.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeek.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js +0 -12
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfISOWeekYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfMonth.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfQuarter.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js +0 -12
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeek.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js +0 -14
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfWeekYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js +0 -10
- package/dist/node_modules/react-datepicker/node_modules/date-fns/startOfYear.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subDays.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subMonths.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subQuarters.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subWeeks.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/subYears.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js +0 -9
- package/dist/node_modules/react-datepicker/node_modules/date-fns/toDate.js.map +0 -1
- package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js +0 -19
- package/dist/node_modules/react-datepicker/node_modules/date-fns/transpose.js.map +0 -1
- package/dist/static/avatar-selected.860ee923.json +0 -1
- package/dist/static/circle-cuemath-logo-white.e9fafb91.svg +0 -1
- package/dist/static/cuemath-app-qr-code.4beefe48.svg +0 -1
- package/dist/static/cuemath-app-qr-code.ba6cc09b.svg +0 -1
- package/dist/static/cuemath-app-qr-code.d0912fc7.png +0 -0
- package/dist/static/dob.9ce3c15b.json +0 -1
- package/dist/static/error.cbe1ddde.json +0 -1
- package/dist/static/grade.b3730524.json +0 -1
- package/dist/static/key.d6846476.json +0 -1
- package/dist/static/mail.c30e8708.json +0 -1
- package/dist/static/otp.2d08f874.json +0 -1
- package/dist/static/otp.a3029760.json +0 -1
- package/dist/static/parent-avatar.772d53e0.json +0 -1
- package/dist/static/phone-number.0be312ea.json +0 -1
- package/dist/static/phone-number.84f55562.json +0 -1
- package/dist/static/student-avatar.524226bd.json +0 -1
- package/dist/static/user-type-selector-grid-bg.3c9c8ad6.svg +0 -1
- package/dist/static/user-type-selector-grid-bg.3ce8142d.svg +0 -1
- package/dist/static/user-type-selector-grid-bg.aad0b059.svg +0 -1
- package/dist/static/username.9e034d51.json +0 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"teacher-actions.js","sources":["../../../../../../src/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../../ui/lottie-animation/types';\nimport type { INodeCardProps } from '../node-card-types';\nimport type { INodeMenuOption } from '../node-menu-options/node-menu-options-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useRef } from 'react';\n\nimport Check2Icon from '../../../../../assets/line-icons/icons/check2';\nimport Eye2Icon from '../../../../../assets/line-icons/icons/eye2';\nimport Home2Icon from '../../../../../assets/line-icons/icons/home2';\nimport MoreVerticalIcon from '../../../../../assets/line-icons/icons/more-vertical';\nimport RedoIcon from '../../../../../assets/line-icons/icons/redo';\nimport ArrowTooltip from '../../../../ui/arrow-tooltip/arrow-tooltip';\nimport BorderPathAnimation from '../../../../ui/border-path-animation/border-path-animation';\nimport useContextMenuClickHandler from '../../../../ui/hooks/use-context-menu-click-handler';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport Text from '../../../../ui/text/text';\nimport { BLOCK_TYPE } from '../../../constants/block-constants';\nimport { NODE_CARD_STATES, TEACHER_MENU_LABELS } from '../../../constants/node-constants';\nimport { getNodeTypeBasedBgImage } from '../../../utils';\nimport { getNodeCardBasedIcon } from '../../../utils/node-card-utils';\nimport * as Styled from '../node-card-styled';\nimport NodeCardTags from '../node-card-tags';\nimport NodeMenuOptions from '../node-menu-options/node-menu-options';\n\nconst renderSettings = { renderer: 'canvas', autoplay: false };\nconst { ASSIGN_AS_HW, REVIEW, VIEW, MARK_AS_DONE, RESET } = TEACHER_MENU_LABELS;\n\nconst TeacherActions: FC<Omit<INodeCardProps, 'userType'>> = memo(\n ({\n nodeData,\n imageHue,\n blockType,\n isSkipped,\n onNodeAssignAsHomework,\n onNodeMarkAsDone,\n onNodeView,\n onNodeReview,\n onNodeReattempt,\n }) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const { menuVisible, onMenuClick } = useContextMenuClickHandler(containerRef);\n\n const {\n accuracy,\n attempt_location: attemptLocation,\n node_type: nodeType,\n card_header: cardHeader,\n title,\n state,\n is_optional: isOptional,\n sheet_statement: sheetStatement,\n permissions,\n user_attempt_id: userAttemptId,\n } = nodeData;\n\n const { lottie: nodeCardLottie } = getNodeCardBasedIcon(nodeType);\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n\n const {\n can_mark_familiar: canMarkFamiliar,\n can_review: canReview,\n can_assign_as_homework: canAssignAsHw,\n can_reset: canReset,\n } = permissions;\n\n const isGoalBlock = blockType === BLOCK_TYPE.GOAL;\n const sheetLocked = state === NODE_CARD_STATES.LOCKED;\n const sheetNotStarted = state === NODE_CARD_STATES.NOT_STARTED;\n const sheetInProgress = state === NODE_CARD_STATES.IN_PROGRESS;\n const inClassSheet = attemptLocation === 'INCLASS';\n\n const showCardAnimation = !isOptional && (sheetInProgress || sheetNotStarted);\n\n const nodeBgImage = getNodeTypeBasedBgImage(nodeType);\n\n const handleOnMenuOptionClick = useCallback(\n (optionId: string) => {\n switch (optionId) {\n case 'node-card-view':\n if (canReview && userAttemptId) {\n onNodeReview?.(nodeData);\n } else {\n onNodeView?.(nodeData);\n }\n\n return;\n\n case 'node-card-assign-as-hw':\n onNodeAssignAsHomework?.(nodeData);\n\n return;\n\n case 'node-card-mark-as-done':\n onNodeMarkAsDone?.(nodeData);\n\n return;\n\n case 'node-card-reset':\n onNodeReattempt?.(nodeData);\n\n return;\n\n default:\n throw new Error(`No callback function for ${optionId}`);\n }\n },\n [\n canReview,\n nodeData,\n onNodeAssignAsHomework,\n onNodeMarkAsDone,\n onNodeReattempt,\n onNodeReview,\n onNodeView,\n userAttemptId,\n ],\n );\n\n const handleOnMouseEnter = useCallback(() => {\n if (sheetLocked) return;\n animationRef.current?.play();\n }, [sheetLocked]);\n\n const handleOnMouseLeave = useCallback(() => {\n animationRef.current?.stop();\n }, []);\n\n const menuOptions: INodeMenuOption[] = [\n {\n id: 'node-card-view',\n label: canReview && userAttemptId ? REVIEW : VIEW,\n icon: Eye2Icon,\n disabled: false,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-assign-as-hw',\n label: ASSIGN_AS_HW,\n icon: Home2Icon,\n disabled: !canAssignAsHw,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-reset',\n label: RESET,\n icon: RedoIcon,\n disabled: !canReset,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-mark-as-done',\n label: MARK_AS_DONE,\n icon: Check2Icon,\n disabled: !canMarkFamiliar,\n onClick: handleOnMenuOptionClick,\n },\n ];\n\n return (\n <Styled.NodeCardContainer\n $showOutline={!showCardAnimation}\n $isSheetLocked={sheetLocked}\n $background={`${imageHue}_2`}\n $disabled={Boolean(isSkipped)}\n >\n <ArrowTooltip\n renderAs=\"primary\"\n tooltipItem={sheetStatement}\n position=\"bottom\"\n zIndex={5}\n hidden={!sheetStatement}\n parentWidth=\"100%\"\n widthX={11.25}\n >\n <Styled.NodeCardInfoWrapper\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $width=\"100%\"\n $heightX={3.5}\n $bgImage={nodeBgImage}\n $gutterX={0.78125}\n $flexGap={8.5}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleOnMouseLeave}\n >\n <Styled.IconWrapper\n $width={31}\n $height={31}\n $background=\"WHITE_1\"\n $position=\"relative\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $opacity={sheetLocked ? 0.5 : 1}\n >\n <LottieAnimation src={nodeCardLottie} ref={animationRef} settings={renderSettings} />\n {!isOptional && <Styled.StyledImportantIcon />}\n </Styled.IconWrapper>\n\n <Text $renderAs=\"ac4-black\" $color=\"BLACK\" $opacity={sheetLocked ? 0.5 : 1}>\n {cardHeader} {inClassSheet && `• CW`}\n </Text>\n\n <FlexView className=\"context-menu\">\n {isGoalBlock && (\n <Styled.NodeKebabMenuWrapper ref={containerRef} onClick={onMenuClick}>\n <MoreVerticalIcon width={16} height={16} />\n </Styled.NodeKebabMenuWrapper>\n )}\n </FlexView>\n\n {showCardAnimation && !isSkipped && (\n <BorderPathAnimation borderColor=\"BLACK_1\" borderWidth={1} />\n )}\n </Styled.NodeCardInfoWrapper>\n\n <NodeCardTags nodeType={nodeType} state={state} accuracy={accuracy} />\n\n {!isGoalBlock && (\n <Styled.NodeCardContentWrapper\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $background=\"WHITE_1\"\n $flexGap={8}\n $heightX={4}\n $justifyContent=\"space-between\"\n >\n <Styled.NodeCardTitle\n $renderAs=\"ab3\"\n $color=\"BLACK_1\"\n $opacity={sheetLocked ? 0.5 : 1}\n >\n {title}\n </Styled.NodeCardTitle>\n\n <Styled.NodeKebabMenuWrapper ref={containerRef} onClick={onMenuClick}>\n <MoreVerticalIcon width={16} height={16} />\n </Styled.NodeKebabMenuWrapper>\n </Styled.NodeCardContentWrapper>\n )}\n </ArrowTooltip>\n\n <Styled.NodeMenuOptionsWrapper $visible={menuVisible}>\n <NodeMenuOptions options={menuOptions} />\n </Styled.NodeMenuOptionsWrapper>\n </Styled.NodeCardContainer>\n );\n },\n);\n\nexport default TeacherActions;\n"],"names":["renderSettings","ASSIGN_AS_HW","REVIEW","VIEW","MARK_AS_DONE","RESET","TEACHER_MENU_LABELS","TeacherActions","memo","nodeData","imageHue","blockType","isSkipped","onNodeAssignAsHomework","onNodeMarkAsDone","onNodeView","onNodeReview","onNodeReattempt","containerRef","useRef","menuVisible","onMenuClick","useContextMenuClickHandler","accuracy","attemptLocation","nodeType","cardHeader","title","state","isOptional","sheetStatement","permissions","userAttemptId","nodeCardLottie","getNodeCardBasedIcon","animationRef","canMarkFamiliar","canReview","canAssignAsHw","canReset","isGoalBlock","BLOCK_TYPE","sheetLocked","NODE_CARD_STATES","sheetNotStarted","sheetInProgress","inClassSheet","showCardAnimation","nodeBgImage","getNodeTypeBasedBgImage","handleOnMenuOptionClick","useCallback","optionId","handleOnMouseEnter","_a","handleOnMouseLeave","menuOptions","Eye2Icon","Home2Icon","RedoIcon","Check2Icon","jsxs","Styled.NodeCardContainer","ArrowTooltip","Styled.NodeCardInfoWrapper","Styled.IconWrapper","jsx","LottieAnimation","Styled.StyledImportantIcon","Text","FlexView","Styled.NodeKebabMenuWrapper","MoreVerticalIcon","BorderPathAnimation","NodeCardTags","Styled.NodeCardContentWrapper","Styled.NodeCardTitle","Styled.NodeMenuOptionsWrapper","NodeMenuOptions"],"mappings":";;;;;;;;;;;;;;;;;;;;AA0BA,MAAMA,KAAiB,EAAE,UAAU,UAAU,UAAU,GAAM,GACvD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,KACrB,gBAAAsD,EAACO,KAAoB,aAAY,WAAU,aAAa,GAAG;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBAE/D;AAAA,gBAEC,gBAAAP,EAAAQ,IAAA,EAAa,UAAAjD,GAAoB,OAAAG,GAAc,UAAAL,EAAoB,CAAA;AAAA,gBAEnE,CAACiB,KACA,gBAAAqB;AAAA,kBAACc;AAAAA,kBAAA;AAAA,oBACC,gBAAe;AAAA,oBACf,aAAY;AAAA,oBACZ,aAAY;AAAA,oBACZ,UAAU;AAAA,oBACV,UAAU;AAAA,oBACV,iBAAgB;AAAA,oBAEhB,UAAA;AAAA,sBAAA,gBAAAT;AAAA,wBAACU;AAAAA,wBAAA;AAAA,0BACC,WAAU;AAAA,0BACV,QAAO;AAAA,0BACP,UAAUlC,IAAc,MAAM;AAAA,0BAE7B,UAAAf;AAAA,wBAAA;AAAA,sBACH;AAAA,sBAEC,gBAAAuC,EAAAK,GAAA,EAA4B,KAAKrD,GAAc,SAASG,GACvD,UAAA,gBAAA6C,EAACM,GAAiB,EAAA,OAAO,IAAI,QAAQ,GAAI,CAAA,GAC3C;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBACF;AAAA,cAAA;AAAA,YAAA;AAAA,UAEJ;AAAA,UAEA,gBAAAN,EAACW,IAAA,EAA8B,UAAUzD,GACvC,UAAC,gBAAA8C,EAAAY,IAAA,EAAgB,SAAStB,EAAA,CAAa,EACzC,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;"}
|
1
|
+
{"version":3,"file":"teacher-actions.js","sources":["../../../../../../src/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.tsx"],"sourcesContent":["import type { ILottieAnimationRef } from '../../../../ui/lottie-animation/types';\nimport type { INodeCardProps } from '../node-card-types';\nimport type { INodeMenuOption } from '../node-menu-options/node-menu-options-types';\nimport type { FC } from 'react';\n\nimport { memo, useCallback, useRef } from 'react';\n\nimport Check2Icon from '../../../../../assets/line-icons/icons/check2';\nimport Eye2Icon from '../../../../../assets/line-icons/icons/eye2';\nimport Home2Icon from '../../../../../assets/line-icons/icons/home2';\nimport MoreVerticalIcon from '../../../../../assets/line-icons/icons/more-vertical';\nimport RedoIcon from '../../../../../assets/line-icons/icons/redo';\nimport ArrowTooltip from '../../../../ui/arrow-tooltip/arrow-tooltip';\nimport useContextMenuClickHandler from '../../../../ui/hooks/use-context-menu-click-handler';\nimport FlexView from '../../../../ui/layout/flex-view';\nimport LottieAnimation from '../../../../ui/lottie-animation/lottie-animation';\nimport Text from '../../../../ui/text/text';\nimport { BLOCK_TYPE } from '../../../constants/block-constants';\nimport { NODE_CARD_STATES, TEACHER_MENU_LABELS } from '../../../constants/node-constants';\nimport { getNodeTypeBasedBgImage } from '../../../utils';\nimport { getNodeCardBasedIcon } from '../../../utils/node-card-utils';\nimport * as Styled from '../node-card-styled';\nimport NodeCardTags from '../node-card-tags';\nimport NodeMenuOptions from '../node-menu-options/node-menu-options';\n\nconst renderSettings = { renderer: 'canvas', autoplay: false };\nconst { ASSIGN_AS_HW, REVIEW, VIEW, MARK_AS_DONE, RESET } = TEACHER_MENU_LABELS;\n\nconst TeacherActions: FC<Omit<INodeCardProps, 'userType'>> = memo(\n ({\n nodeData,\n imageHue,\n blockType,\n isSkipped,\n onNodeAssignAsHomework,\n onNodeMarkAsDone,\n onNodeView,\n onNodeReview,\n onNodeReattempt,\n }) => {\n const containerRef = useRef<HTMLDivElement>(null);\n const { menuVisible, onMenuClick } = useContextMenuClickHandler(containerRef);\n\n const {\n accuracy,\n attempt_location: attemptLocation,\n node_type: nodeType,\n card_header: cardHeader,\n title,\n state,\n is_optional: isOptional,\n sheet_statement: sheetStatement,\n permissions,\n user_attempt_id: userAttemptId,\n } = nodeData;\n\n const { lottie: nodeCardLottie } = getNodeCardBasedIcon(nodeType);\n const animationRef = useRef<ILottieAnimationRef | null>(null);\n\n const {\n can_mark_familiar: canMarkFamiliar,\n can_review: canReview,\n can_assign_as_homework: canAssignAsHw,\n can_reset: canReset,\n } = permissions;\n\n const isGoalBlock = blockType === BLOCK_TYPE.GOAL;\n const sheetLocked = state === NODE_CARD_STATES.LOCKED;\n const inClassSheet = attemptLocation === 'INCLASS';\n\n const nodeBgImage = getNodeTypeBasedBgImage(nodeType);\n\n const handleOnMenuOptionClick = useCallback(\n (optionId: string) => {\n switch (optionId) {\n case 'node-card-view':\n if (canReview && userAttemptId) {\n onNodeReview?.(nodeData);\n } else {\n onNodeView?.(nodeData);\n }\n\n return;\n\n case 'node-card-assign-as-hw':\n onNodeAssignAsHomework?.(nodeData);\n\n return;\n\n case 'node-card-mark-as-done':\n onNodeMarkAsDone?.(nodeData);\n\n return;\n\n case 'node-card-reset':\n onNodeReattempt?.(nodeData);\n\n return;\n\n default:\n throw new Error(`No callback function for ${optionId}`);\n }\n },\n [\n canReview,\n nodeData,\n onNodeAssignAsHomework,\n onNodeMarkAsDone,\n onNodeReattempt,\n onNodeReview,\n onNodeView,\n userAttemptId,\n ],\n );\n\n const handleOnMouseEnter = useCallback(() => {\n if (sheetLocked) return;\n animationRef.current?.play();\n }, [sheetLocked]);\n\n const handleOnMouseLeave = useCallback(() => {\n animationRef.current?.stop();\n }, []);\n\n const menuOptions: INodeMenuOption[] = [\n {\n id: 'node-card-view',\n label: canReview && userAttemptId ? REVIEW : VIEW,\n icon: Eye2Icon,\n disabled: false,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-assign-as-hw',\n label: ASSIGN_AS_HW,\n icon: Home2Icon,\n disabled: !canAssignAsHw,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-reset',\n label: RESET,\n icon: RedoIcon,\n disabled: !canReset,\n onClick: handleOnMenuOptionClick,\n },\n {\n id: 'node-card-mark-as-done',\n label: MARK_AS_DONE,\n icon: Check2Icon,\n disabled: !canMarkFamiliar,\n onClick: handleOnMenuOptionClick,\n },\n ];\n\n return (\n <Styled.NodeCardContainer\n $background={`${imageHue}_2`}\n $disabled={Boolean(isSkipped || sheetLocked)}\n >\n <ArrowTooltip\n renderAs=\"primary\"\n tooltipItem={sheetStatement}\n position=\"bottom\"\n zIndex={5}\n hidden={!sheetStatement}\n parentWidth=\"100%\"\n widthX={11.25}\n >\n <Styled.NodeCardInfoWrapper\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $width=\"100%\"\n $heightX={3.5}\n $bgImage={nodeBgImage}\n $gutterX={0.78125}\n $flexGap={8.5}\n onMouseEnter={handleOnMouseEnter}\n onMouseLeave={handleOnMouseLeave}\n >\n <Styled.IconWrapper\n $width={31}\n $height={31}\n $background=\"WHITE_1\"\n $position=\"relative\"\n $alignItems=\"center\"\n $justifyContent=\"center\"\n $opacity={sheetLocked ? 0.5 : 1}\n >\n <LottieAnimation src={nodeCardLottie} ref={animationRef} settings={renderSettings} />\n {!isOptional && <Styled.StyledImportantIcon />}\n </Styled.IconWrapper>\n\n <Text $renderAs=\"ac4-black\" $color=\"BLACK\" $opacity={sheetLocked ? 0.5 : 1}>\n {cardHeader} {inClassSheet && `• CW`}\n </Text>\n\n <FlexView className=\"context-menu\">\n {isGoalBlock && (\n <Styled.NodeKebabMenuWrapper ref={containerRef} onClick={onMenuClick}>\n <MoreVerticalIcon width={16} height={16} />\n </Styled.NodeKebabMenuWrapper>\n )}\n </FlexView>\n </Styled.NodeCardInfoWrapper>\n\n <NodeCardTags nodeType={nodeType} state={state} accuracy={accuracy} />\n\n {!isGoalBlock && (\n <Styled.NodeCardContentWrapper\n $flexDirection=\"row\"\n $alignItems=\"center\"\n $background=\"WHITE_1\"\n $flexGap={8}\n $heightX={4}\n $justifyContent=\"space-between\"\n >\n <Styled.NodeCardTitle\n $renderAs=\"ab3\"\n $color=\"BLACK_1\"\n $opacity={sheetLocked ? 0.5 : 1}\n >\n {title}\n </Styled.NodeCardTitle>\n\n <Styled.NodeKebabMenuWrapper ref={containerRef} onClick={onMenuClick}>\n <MoreVerticalIcon width={16} height={16} />\n </Styled.NodeKebabMenuWrapper>\n </Styled.NodeCardContentWrapper>\n )}\n </ArrowTooltip>\n\n <Styled.NodeMenuOptionsWrapper $visible={menuVisible}>\n <NodeMenuOptions options={menuOptions} />\n </Styled.NodeMenuOptionsWrapper>\n </Styled.NodeCardContainer>\n );\n },\n);\n\nexport default TeacherActions;\n"],"names":["renderSettings","ASSIGN_AS_HW","REVIEW","VIEW","MARK_AS_DONE","RESET","TEACHER_MENU_LABELS","TeacherActions","memo","nodeData","imageHue","blockType","isSkipped","onNodeAssignAsHomework","onNodeMarkAsDone","onNodeView","onNodeReview","onNodeReattempt","containerRef","useRef","menuVisible","onMenuClick","useContextMenuClickHandler","accuracy","attemptLocation","nodeType","cardHeader","title","state","isOptional","sheetStatement","permissions","userAttemptId","nodeCardLottie","getNodeCardBasedIcon","animationRef","canMarkFamiliar","canReview","canAssignAsHw","canReset","isGoalBlock","BLOCK_TYPE","sheetLocked","NODE_CARD_STATES","inClassSheet","nodeBgImage","getNodeTypeBasedBgImage","handleOnMenuOptionClick","useCallback","optionId","handleOnMouseEnter","_a","handleOnMouseLeave","menuOptions","Eye2Icon","Home2Icon","RedoIcon","Check2Icon","jsxs","Styled.NodeCardContainer","ArrowTooltip","Styled.NodeCardInfoWrapper","Styled.IconWrapper","jsx","LottieAnimation","Styled.StyledImportantIcon","Text","FlexView","Styled.NodeKebabMenuWrapper","MoreVerticalIcon","NodeCardTags","Styled.NodeCardContentWrapper","Styled.NodeCardTitle","Styled.NodeMenuOptionsWrapper","NodeMenuOptions"],"mappings":";;;;;;;;;;;;;;;;;;;AAyBA,MAAMA,KAAiB,EAAE,UAAU,UAAU,UAAU,GAAM,GACvD,EAAE,cAAAC,IAAc,QAAAC,IAAQ,MAAAC,IAAM,cAAAC,IAAc,OAAAC,GAAU,IAAAC,IAEtDC,KAAuDC;AAAA,EAC3D,CAAC;AAAA,IACC,UAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC;AAAA,IACA,WAAAC;AAAA,IACA,wBAAAC;AAAA,IACA,kBAAAC;AAAA,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A,0BACV,QAAO;AAAA,0BACP,UAAU9B,IAAc,MAAM;AAAA,0BAE7B,UAAAf;AAAA,wBAAA;AAAA,sBACH;AAAA,sBAEC,gBAAAoC,EAAAK,GAAA,EAA4B,KAAKlD,GAAc,SAASG,GACvD,UAAA,gBAAA0C,EAACM,GAAiB,EAAA,OAAO,IAAI,QAAQ,GAAI,CAAA,GAC3C;AAAA,oBAAA;AAAA,kBAAA;AAAA,gBACF;AAAA,cAAA;AAAA,YAAA;AAAA,UAEJ;AAAA,UAEA,gBAAAN,EAACU,IAAA,EAA8B,UAAUrD,GACvC,UAAC,gBAAA2C,EAAAW,IAAA,EAAgB,SAASrB,EAAA,CAAa,EACzC,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGN;AACF;"}
|
package/dist/index.d.ts
CHANGED
@@ -7,7 +7,6 @@ import type { DefaultTheme } from 'styled-components';
|
|
7
7
|
import { DetailedHTMLProps } from 'react';
|
8
8
|
import type { Dispatch } from 'react';
|
9
9
|
import { FC } from 'react';
|
10
|
-
import type { FormEvent } from 'react';
|
11
10
|
import { ForwardRefExoticComponent } from 'react';
|
12
11
|
import { HTMLAttributes } from 'react';
|
13
12
|
import { IChannelMessage } from '@cuemath/cue-message-broker';
|
@@ -41,8 +40,6 @@ import { Substitute } from 'styled-components/dist/types';
|
|
41
40
|
*/
|
42
41
|
export declare const AccordionSection: FC<IAccordionSectionProps>;
|
43
42
|
|
44
|
-
export declare const AccountSelector: MemoExoticComponent<({ userAccounts, onSelect, onAddNew, isLoading, }: IAccountSelectorViewProps) => JSX_2.Element>;
|
45
|
-
|
46
43
|
export declare const ACHIEVEMENT_ACTIONS: {
|
47
44
|
SHARE: string;
|
48
45
|
NOT_SHARE_CHOSEN: string;
|
@@ -64,22 +61,6 @@ export declare const ArcButton: MemoExoticComponent<ForwardRefExoticComponent<IA
|
|
64
61
|
|
65
62
|
export declare const ArrowTooltip: FC<IArrowTooltipProps>;
|
66
63
|
|
67
|
-
export declare const AUTH_TABS: IAuthTab[];
|
68
|
-
|
69
|
-
export declare const AuthApiErrorCode: {
|
70
|
-
readonly USER_NOT_FOUND: 8000;
|
71
|
-
readonly INVALID_PASSWORD: 8001;
|
72
|
-
readonly MULTIPLE_USERS_FOUND: 8002;
|
73
|
-
readonly ACCESS_TOKEN_FAILURE: 8003;
|
74
|
-
readonly INVALID_ACCESS_TOKEN: 8004;
|
75
|
-
readonly INVALID_USERNAME_OR_USER_ALREADY_EXIST: 8005;
|
76
|
-
readonly SOCIAL_SIGNUP_EMAIL_MISSING: 8006;
|
77
|
-
};
|
78
|
-
|
79
|
-
export declare const AuthPageLayout: NamedExoticComponent<IAuthPageLayoutProps>;
|
80
|
-
|
81
|
-
export declare const AuthStaticPanel: NamedExoticComponent<IAuthStaticPanelProps>;
|
82
|
-
|
83
64
|
export declare const AutoPlayPermissionProvider: FC<{
|
84
65
|
children: ReactNode;
|
85
66
|
}>;
|
@@ -250,10 +231,6 @@ export declare const CircularLoader: () => JSX_2.Element;
|
|
250
231
|
|
251
232
|
export declare const CircularSteps: FC<ICircularStepsProps>;
|
252
233
|
|
253
|
-
export declare const CircularStepWrapper: MemoExoticComponent<ForwardRefExoticComponent<ICircularStepWrapperProps & RefAttributes<ICircularStepRef>>>;
|
254
|
-
|
255
|
-
export declare const ClaimUserAccount: NamedExoticComponent<IClaimUserAccountProps>;
|
256
|
-
|
257
234
|
export declare const Clickable: React_2.FC<IClickableProps>;
|
258
235
|
|
259
236
|
export declare const ClipboardIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
@@ -302,12 +279,8 @@ export declare const CuemathLogo: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
302
279
|
|
303
280
|
export declare const CueRocket: React.FC<React.SVGProps<SVGSVGElement>>;
|
304
281
|
|
305
|
-
export declare const CustomInputField: NamedExoticComponent<ICustomInputFieldProps>;
|
306
|
-
|
307
282
|
export declare const DashArrowIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
308
283
|
|
309
|
-
export declare const DatePickerInput: NamedExoticComponent<IDatePickerInputProps>;
|
310
|
-
|
311
284
|
export declare const DesmosCalculator: FC<IDesmosCalculatorProps>;
|
312
285
|
|
313
286
|
export declare const DigitalMeter: FC<IDigitalMeterProps>;
|
@@ -514,8 +487,6 @@ export declare const GoalEdit: React.FC<IMileStoneEditContainerProps>;
|
|
514
487
|
|
515
488
|
export declare const GooglePlacesSearchInput: ComponentType<Omit_2<IGooglePlacesSearchInputProps, IProvidedProps>>;
|
516
489
|
|
517
|
-
export declare const GradeInput: NamedExoticComponent<ICustomInputFieldProps>;
|
518
|
-
|
519
490
|
export declare function GradeSelector({ selectedValue, onSelect, tabsWidth, width, grades, renderAs, size, layoutAlignment, }: IGradeSelectorProps): JSX.Element;
|
520
491
|
|
521
492
|
export declare const HandIcon: React_2.FC;
|
@@ -552,17 +523,6 @@ declare interface IAccordionSectionProps {
|
|
552
523
|
bodyOverFlow?: TStyleAttrubutes['overflow'];
|
553
524
|
}
|
554
525
|
|
555
|
-
declare interface IAccountSelectorViewProps {
|
556
|
-
userAccounts: {
|
557
|
-
id: string;
|
558
|
-
username: string;
|
559
|
-
user_avatar?: IAvatarLayer[] | null;
|
560
|
-
}[];
|
561
|
-
onSelect: (accountId: string) => void;
|
562
|
-
onAddNew: () => void;
|
563
|
-
isLoading: boolean;
|
564
|
-
}
|
565
|
-
|
566
526
|
declare interface IAchievementConfig {
|
567
527
|
pollingInterval?: number;
|
568
528
|
maxPollingAttempts?: number;
|
@@ -629,22 +589,6 @@ declare interface IAttempt {
|
|
629
589
|
score: ILearnosityQuestionScore;
|
630
590
|
}
|
631
591
|
|
632
|
-
declare interface IAuthPageLayoutProps {
|
633
|
-
leftBlock: JSX.Element;
|
634
|
-
rightBlock?: JSX.Element;
|
635
|
-
isFullWidth?: boolean;
|
636
|
-
}
|
637
|
-
|
638
|
-
declare interface IAuthStaticPanelProps {
|
639
|
-
title?: string;
|
640
|
-
description?: string;
|
641
|
-
}
|
642
|
-
|
643
|
-
declare interface IAuthTab {
|
644
|
-
id: TAuthTabKeys;
|
645
|
-
label: string;
|
646
|
-
}
|
647
|
-
|
648
592
|
declare interface IAutoPlayPermissionContextType {
|
649
593
|
canAutoPlayAudio: boolean;
|
650
594
|
canAutoPlayVideo: boolean;
|
@@ -1021,10 +965,6 @@ export declare interface ICircleHomeDetails {
|
|
1021
965
|
timestamps: ITodaysContentTimeStamps;
|
1022
966
|
}
|
1023
967
|
|
1024
|
-
export declare type ICircularStepRef = {
|
1025
|
-
playOutroAndFadeOut: () => Promise<void>;
|
1026
|
-
};
|
1027
|
-
|
1028
968
|
declare interface ICircularSteps {
|
1029
969
|
id: string;
|
1030
970
|
label?: React.ReactNode;
|
@@ -1048,29 +988,6 @@ declare interface ICircularStepsProps {
|
|
1048
988
|
sizeInPercent?: number;
|
1049
989
|
}
|
1050
990
|
|
1051
|
-
declare interface ICircularStepWrapperProps {
|
1052
|
-
children: JSX.Element;
|
1053
|
-
animation: string;
|
1054
|
-
introFrames: [number, number];
|
1055
|
-
outroFrames: [number, number];
|
1056
|
-
onGoBack?: () => void;
|
1057
|
-
onNext?: () => void;
|
1058
|
-
label?: string;
|
1059
|
-
showNext?: boolean;
|
1060
|
-
showPrevious?: boolean;
|
1061
|
-
isNextLoading?: boolean;
|
1062
|
-
progressAngle?: number;
|
1063
|
-
}
|
1064
|
-
|
1065
|
-
declare interface IClaimUserAccountProps {
|
1066
|
-
email?: string;
|
1067
|
-
onSelectAccount: (userId: string) => void;
|
1068
|
-
onCreateNewAccount: () => void;
|
1069
|
-
userAccounts: TUserAccount[];
|
1070
|
-
isCreatingAccount: boolean;
|
1071
|
-
isLoading: boolean;
|
1072
|
-
}
|
1073
|
-
|
1074
991
|
declare interface IClassStatus {
|
1075
992
|
next_class_time?: number;
|
1076
993
|
class_duration: number;
|
@@ -1154,16 +1071,6 @@ declare interface ICountdownTimer {
|
|
1154
1071
|
theme: 'GREEN_1' | 'ORANGE_1';
|
1155
1072
|
}
|
1156
1073
|
|
1157
|
-
declare interface ICountryOption {
|
1158
|
-
code: string;
|
1159
|
-
id: string;
|
1160
|
-
value: string;
|
1161
|
-
label: string;
|
1162
|
-
icon: string;
|
1163
|
-
url: string;
|
1164
|
-
geoIPCountryCode: string;
|
1165
|
-
}
|
1166
|
-
|
1167
1074
|
export declare interface ICreateUserPayloadDal {
|
1168
1075
|
username: string;
|
1169
1076
|
grade: string;
|
@@ -1222,26 +1129,6 @@ declare interface ICurriculumStandards {
|
|
1222
1129
|
name: string;
|
1223
1130
|
}
|
1224
1131
|
|
1225
|
-
declare interface ICustomInputFieldProps {
|
1226
|
-
value: string;
|
1227
|
-
onChange: (value: string) => void;
|
1228
|
-
onEnter?: () => void;
|
1229
|
-
error?: string;
|
1230
|
-
helperText?: string;
|
1231
|
-
actionElement?: JSX.Element;
|
1232
|
-
isLoading?: boolean;
|
1233
|
-
isValid?: boolean;
|
1234
|
-
type?: 'text' | 'password' | 'number' | 'phone';
|
1235
|
-
placeholder?: string;
|
1236
|
-
maxLength?: number;
|
1237
|
-
width?: number;
|
1238
|
-
textTransform?: string;
|
1239
|
-
textAlign?: string;
|
1240
|
-
onCountryChange?: (option: TSelectedCountry) => void;
|
1241
|
-
selectedCountry?: TSelectedCountry;
|
1242
|
-
autoSize?: boolean;
|
1243
|
-
}
|
1244
|
-
|
1245
1132
|
declare interface ICustomVideoProps extends React_2.DetailedHTMLProps<React_2.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement> {
|
1246
1133
|
isYoutube?: boolean;
|
1247
1134
|
analyticsData?: Record<string, unknown>;
|
@@ -1249,13 +1136,6 @@ declare interface ICustomVideoProps extends React_2.DetailedHTMLProps<React_2.Vi
|
|
1249
1136
|
src: string;
|
1250
1137
|
}
|
1251
1138
|
|
1252
|
-
declare interface IDatePickerInputProps extends Omit<ICustomInputFieldProps, 'value' | 'onChange'> {
|
1253
|
-
value: Date | null;
|
1254
|
-
onChange: (date: Date | null) => void;
|
1255
|
-
}
|
1256
|
-
|
1257
|
-
export declare const IdentifierOtpForm: React_2.NamedExoticComponent<IIdentifierOtpFormProps>;
|
1258
|
-
|
1259
1139
|
declare interface IDesmosCalculatorProps {
|
1260
1140
|
onClose: () => void;
|
1261
1141
|
height?: string | number;
|
@@ -1480,22 +1360,6 @@ declare interface IIconButtonProps extends Omit<IButtonProps, 'label' | 'shape'
|
|
1480
1360
|
renderAs: TButtonVariants;
|
1481
1361
|
}
|
1482
1362
|
|
1483
|
-
declare interface IIdentifierOtpFormProps {
|
1484
|
-
identifier: string;
|
1485
|
-
otp: string;
|
1486
|
-
errors: {
|
1487
|
-
identifier: string;
|
1488
|
-
otp: string;
|
1489
|
-
};
|
1490
|
-
isOtpVerified: boolean;
|
1491
|
-
isLoading: boolean;
|
1492
|
-
isSubmitDisabled: boolean;
|
1493
|
-
showOtpInput: boolean;
|
1494
|
-
onChange: (key: 'identifier' | 'otp', value: string) => void;
|
1495
|
-
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
1496
|
-
onSendOtp: () => void;
|
1497
|
-
}
|
1498
|
-
|
1499
1363
|
declare interface IImageProps extends ImgHTMLAttributes<HTMLImageElement> {
|
1500
1364
|
withLoader: boolean;
|
1501
1365
|
borderRadius?: number;
|
@@ -1521,15 +1385,6 @@ export declare interface IInputSizeConfig {
|
|
1521
1385
|
iconPadding: number;
|
1522
1386
|
}
|
1523
1387
|
|
1524
|
-
declare interface IInputStatusIconProps {
|
1525
|
-
isLoading?: boolean;
|
1526
|
-
isValid?: boolean;
|
1527
|
-
isError?: boolean;
|
1528
|
-
size?: number;
|
1529
|
-
successColor?: TColorNames;
|
1530
|
-
errorColor?: TColorNames;
|
1531
|
-
}
|
1532
|
-
|
1533
1388
|
export declare interface IInputVariantConfig {
|
1534
1389
|
valueColorName: {
|
1535
1390
|
inactive: TColorNames;
|
@@ -1889,7 +1744,6 @@ export declare const ILLUSTRATIONS: {
|
|
1889
1744
|
CHAPTER_HEADER_BG: string;
|
1890
1745
|
CHAPTER_HEADER_BG_2: string;
|
1891
1746
|
CIRCLE_CUEMATH_LOGO: string;
|
1892
|
-
CIRCLE_CUEMATH_LOGO_WHITE: string;
|
1893
1747
|
CIRCLE_OUTERCIRCLE_BG: string;
|
1894
1748
|
CLOCK_ORANGE: string;
|
1895
1749
|
COMMUNITY_BULB: string;
|
@@ -1897,7 +1751,6 @@ export declare const ILLUSTRATIONS: {
|
|
1897
1751
|
CROWN: string;
|
1898
1752
|
CROWN_OVERLAY: string;
|
1899
1753
|
CUECOIN_GOLD: string;
|
1900
|
-
CUEMATH_APP_QR_CODE: string;
|
1901
1754
|
DESKTOP_WITH_PURPLE_FILL: string;
|
1902
1755
|
DURATION_30MIN_GRAY: string;
|
1903
1756
|
DURATION_45MIN_GRAY: string;
|
@@ -1982,7 +1835,6 @@ export declare const ILLUSTRATIONS: {
|
|
1982
1835
|
USER_DOWN: string;
|
1983
1836
|
USER_PIN: string;
|
1984
1837
|
USER_PROFILE_BACKGROUND: string;
|
1985
|
-
USER_TYPE_SELECTOR_GRID_BG: string;
|
1986
1838
|
USER_UP: string;
|
1987
1839
|
YELLOW_FACE: string;
|
1988
1840
|
};
|
@@ -2413,8 +2265,6 @@ declare interface INodePermissions {
|
|
2413
2265
|
can_unassign: boolean;
|
2414
2266
|
}
|
2415
2267
|
|
2416
|
-
export declare const InputStatusIcon: NamedExoticComponent<IInputStatusIconProps>;
|
2417
|
-
|
2418
2268
|
export declare interface INudgeProps {
|
2419
2269
|
nudge: 'click';
|
2420
2270
|
content: ReactNode;
|
@@ -2447,16 +2297,6 @@ declare interface IOpenImageReviewModalProps {
|
|
2447
2297
|
image?: string;
|
2448
2298
|
}
|
2449
2299
|
|
2450
|
-
declare interface IOTPResendProps {
|
2451
|
-
onResendOTP: () => void;
|
2452
|
-
onResendVoiceOTP?: () => void;
|
2453
|
-
timerSeconds?: number;
|
2454
|
-
showVoiceOTP?: boolean;
|
2455
|
-
disabled?: boolean;
|
2456
|
-
renderAs?: 'submit' | 'text';
|
2457
|
-
width?: number;
|
2458
|
-
}
|
2459
|
-
|
2460
2300
|
declare interface IOutcomeConfig {
|
2461
2301
|
id: string;
|
2462
2302
|
input_type: string;
|
@@ -2734,16 +2574,6 @@ declare interface IReferenceSheetProps {
|
|
2734
2574
|
};
|
2735
2575
|
}
|
2736
2576
|
|
2737
|
-
declare interface IResetPasswordFormProps {
|
2738
|
-
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
2739
|
-
onChange: (key: string, value: string) => void;
|
2740
|
-
formData: Record<string, string>;
|
2741
|
-
errors: Record<string, string>;
|
2742
|
-
isProcessing: boolean;
|
2743
|
-
isSubmitDisabled: boolean;
|
2744
|
-
isValid?: boolean;
|
2745
|
-
}
|
2746
|
-
|
2747
2577
|
export declare interface IResourceItemData {
|
2748
2578
|
boards: string[];
|
2749
2579
|
created_on: string;
|
@@ -2962,14 +2792,6 @@ declare interface ISheetsListProps extends ISheetItemCallbackProps {
|
|
2962
2792
|
section?: TSheetsSection;
|
2963
2793
|
}
|
2964
2794
|
|
2965
|
-
declare interface ISignupMethodsProps {
|
2966
|
-
onEmailSignup: () => void;
|
2967
|
-
onPhoneSignup: () => void;
|
2968
|
-
onGoogleSignup: () => void;
|
2969
|
-
onAppleSignup: () => void;
|
2970
|
-
loadingProvider: TSocialAuthProvider | null;
|
2971
|
-
}
|
2972
|
-
|
2973
2795
|
export declare interface ISignUpProps {
|
2974
2796
|
circleOnLeapSignedUp: boolean;
|
2975
2797
|
circleOnLeapPremiumEnabled: boolean;
|
@@ -2987,29 +2809,6 @@ export declare interface ISignUpProps {
|
|
2987
2809
|
onSignupStepsComplete: (data: IUpdateUserPayloadDal | ICreateUserResponseDal | null) => void;
|
2988
2810
|
}
|
2989
2811
|
|
2990
|
-
declare interface ISingleFieldFormProps {
|
2991
|
-
onSubmit: (e?: FormEvent<HTMLFormElement>) => void;
|
2992
|
-
onChange: (key: string, value: string) => void;
|
2993
|
-
value: string;
|
2994
|
-
error: string;
|
2995
|
-
isProcessing: boolean;
|
2996
|
-
isSubmitDisabled?: boolean;
|
2997
|
-
isValid?: boolean;
|
2998
|
-
label?: string;
|
2999
|
-
helperText?: string;
|
3000
|
-
}
|
3001
|
-
|
3002
|
-
declare interface ISocialAccountNotFoundProps {
|
3003
|
-
onRetryLogin: () => void;
|
3004
|
-
onGoToSignup: () => void;
|
3005
|
-
}
|
3006
|
-
|
3007
|
-
declare interface ISocialLoginMethodsProps {
|
3008
|
-
onGoogleLogin: () => void;
|
3009
|
-
onAppleLogin: () => void;
|
3010
|
-
loadingProvider: TSocialAuthProvider | null;
|
3011
|
-
}
|
3012
|
-
|
3013
2812
|
export declare const isOkayTypeQuestion: IIsOkayTypeQuestion;
|
3014
2813
|
|
3015
2814
|
export declare enum IStatsToAwardErrorCode {
|
@@ -3105,11 +2904,6 @@ declare interface ISyncableWebGameProps {
|
|
3105
2904
|
enableSync?: boolean;
|
3106
2905
|
}
|
3107
2906
|
|
3108
|
-
declare interface ITabItem {
|
3109
|
-
id: string;
|
3110
|
-
label: string;
|
3111
|
-
}
|
3112
|
-
|
3113
2907
|
export declare interface ITable {
|
3114
2908
|
tableList: ITableInfo[];
|
3115
2909
|
infiniteModeHighScore: number;
|
@@ -3175,12 +2969,6 @@ export declare interface ITabSizeConfig {
|
|
3175
2969
|
textVariant: TTextVariants;
|
3176
2970
|
}
|
3177
2971
|
|
3178
|
-
declare interface ITabsProps {
|
3179
|
-
selectedTab: string;
|
3180
|
-
onChange: (tab: string) => void;
|
3181
|
-
tabs: ITabItem[];
|
3182
|
-
}
|
3183
|
-
|
3184
2972
|
export declare interface ITabVariantConfig {
|
3185
2973
|
backgroundColorName: {
|
3186
2974
|
inactive: TColorNames;
|
@@ -3538,25 +3326,6 @@ declare interface IUserChapterProgressProps {
|
|
3538
3326
|
total_core_sheets: number;
|
3539
3327
|
}
|
3540
3328
|
|
3541
|
-
declare interface IUsernamePasswordFormProps {
|
3542
|
-
username: string;
|
3543
|
-
password: string;
|
3544
|
-
errors: {
|
3545
|
-
username: string;
|
3546
|
-
password: string;
|
3547
|
-
};
|
3548
|
-
isLoading: boolean;
|
3549
|
-
onChange: (key: 'username' | 'password', value: string) => void;
|
3550
|
-
onSubmit: (e: FormEvent<HTMLFormElement>) => void;
|
3551
|
-
onForgotPassword: () => void;
|
3552
|
-
}
|
3553
|
-
|
3554
|
-
declare interface IUserTypeSelectorProps {
|
3555
|
-
onNext: () => void;
|
3556
|
-
onUserTypeChange: (id: TAuthUserType) => void;
|
3557
|
-
userType: TAuthUserType;
|
3558
|
-
}
|
3559
|
-
|
3560
3329
|
declare interface IUseTrialSessionMessageBroker {
|
3561
3330
|
(options: {
|
3562
3331
|
teacherClassroomId?: string;
|
@@ -3946,7 +3715,6 @@ export declare const LOTTIE: {
|
|
3946
3715
|
ACCURACY_METER: string;
|
3947
3716
|
ACCURACY_NEEDLE: string;
|
3948
3717
|
ADVANCE_MODE_SEGMENT_LOTTIE: string;
|
3949
|
-
AVATAR_SELECTED: string;
|
3950
3718
|
BEGINNER1X: string;
|
3951
3719
|
BRONZE_1: string;
|
3952
3720
|
BRONZE_2: string;
|
@@ -3961,10 +3729,8 @@ export declare const LOTTIE: {
|
|
3961
3729
|
COLOR_3: string;
|
3962
3730
|
COMPETITIVE_ARENA: string;
|
3963
3731
|
DIFFICULT: string;
|
3964
|
-
DOB: string;
|
3965
3732
|
EASY: string;
|
3966
3733
|
ELITE_CIRCLE: string;
|
3967
|
-
ERROR: string;
|
3968
3734
|
ERROR_LOTTIE: string;
|
3969
3735
|
FAMILIAR1X: string;
|
3970
3736
|
FIFTEEN_MIN_CLOCK: string;
|
@@ -3972,18 +3738,12 @@ export declare const LOTTIE: {
|
|
3972
3738
|
GOLD_1: string;
|
3973
3739
|
GOLD_2: string;
|
3974
3740
|
GOLD_3: string;
|
3975
|
-
GRADE: string;
|
3976
3741
|
INFINITE_BUTTON_BG: string;
|
3977
3742
|
INFINITE_BUTTON_SYMBOL: string;
|
3978
|
-
KEY: string;
|
3979
3743
|
LEARN: string;
|
3980
3744
|
LEVELUP_RINGS: string;
|
3981
|
-
MAIL: string;
|
3982
3745
|
MEDIUM: string;
|
3983
3746
|
NUDGE_TAP: string;
|
3984
|
-
OTP: string;
|
3985
|
-
PARENT_AVATAR: string;
|
3986
|
-
PHONE_NUMBER: string;
|
3987
3747
|
POINT100: string;
|
3988
3748
|
POINT10: string;
|
3989
3749
|
POINT15: string;
|
@@ -4013,7 +3773,6 @@ export declare const LOTTIE: {
|
|
4013
3773
|
SLEEPY_BOI: string;
|
4014
3774
|
SPINNER_WHITE: string;
|
4015
3775
|
SPLASH_SCREEN: string;
|
4016
|
-
STUDENT_AVATAR: string;
|
4017
3776
|
TABLE_MODE_REVEAL: string;
|
4018
3777
|
TABLE_MODE_STAR: string;
|
4019
3778
|
TABLE_SEGMENT_STAR: string;
|
@@ -4024,7 +3783,6 @@ export declare const LOTTIE: {
|
|
4024
3783
|
TOTAL_TIME: string;
|
4025
3784
|
TOTAL_TIME_SPENT: string;
|
4026
3785
|
TOURNAMENT_RIPPLE: string;
|
4027
|
-
USERNAME: string;
|
4028
3786
|
VIDEO: string;
|
4029
3787
|
};
|
4030
3788
|
|
@@ -4209,14 +3967,8 @@ declare interface NumRangeInputProps {
|
|
4209
3967
|
endPlaceholder?: string;
|
4210
3968
|
}
|
4211
3969
|
|
4212
|
-
export declare const OTPForm: MemoExoticComponent<({ onSubmit, onChange, value, error, isProcessing, isValid, helperText, }: ISingleFieldFormProps) => JSX_2.Element>;
|
4213
|
-
|
4214
3970
|
export declare type OutcomeStage = keyof typeof STAGES;
|
4215
3971
|
|
4216
|
-
export declare const OverlayLoader: MemoExoticComponent<({ isLoading }: {
|
4217
|
-
isLoading?: boolean | undefined;
|
4218
|
-
}) => JSX_2.Element | null>;
|
4219
|
-
|
4220
3972
|
export declare const PencilIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4221
3973
|
|
4222
3974
|
export declare const PercentileInput: React_2.ForwardRefExoticComponent<IPercentileProps & React_2.RefAttributes<HTMLInputElement>>;
|
@@ -4355,10 +4107,6 @@ export declare const ReferenceSheet: FC<IReferenceSheetProps>;
|
|
4355
4107
|
|
4356
4108
|
export declare const RemotePeerPointer: MemoExoticComponent<({ containerRef, onPublish, onSubscribe, responseId }: IPointerProps) => JSX_2.Element>;
|
4357
4109
|
|
4358
|
-
export declare const ResendOTP: NamedExoticComponent<IOTPResendProps>;
|
4359
|
-
|
4360
|
-
export declare const ResetPasswordForm: MemoExoticComponent<({ onSubmit, onChange, formData, errors, isSubmitDisabled, isProcessing, isValid, }: IResetPasswordFormProps) => JSX_2.Element>;
|
4361
|
-
|
4362
4110
|
export declare const REWARDS_LIST: string[];
|
4363
4111
|
|
4364
4112
|
export declare const RightIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
@@ -4448,8 +4196,6 @@ export declare const SheetLocked: MemoExoticComponent<({ onHomeClick }: {
|
|
4448
4196
|
|
4449
4197
|
export declare const SignUp: ({ mathGymEnrolledUser, circleEnrolledUser, circleOnLeapPremiumDays, circleUsername, countryCode, grade: defaultGrade, state, circleOnLeapPremiumEnabled, studentId, isSignUpProcessing, onCreateUser, onUpdateUser, onSignupStepsComplete, }: ISignUpProps) => JSX_2.Element;
|
4450
4198
|
|
4451
|
-
export declare const SignupMethods: NamedExoticComponent<ISignupMethodsProps>;
|
4452
|
-
|
4453
4199
|
declare const SketchIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4454
4200
|
export { SketchIcon as ScribbleIcon }
|
4455
4201
|
export { SketchIcon }
|
@@ -4460,10 +4206,6 @@ export declare const SkipColoredIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
4460
4206
|
|
4461
4207
|
export declare const SkipIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
4462
4208
|
|
4463
|
-
export declare const SocialAccountNotFound: MemoExoticComponent<({ onRetryLogin, onGoToSignup }: ISocialAccountNotFoundProps) => JSX_2.Element>;
|
4464
|
-
|
4465
|
-
export declare const SocialLoginMethods: NamedExoticComponent<ISocialLoginMethodsProps>;
|
4466
|
-
|
4467
4209
|
export declare const SplashScreen: ({ animationCompleted }: {
|
4468
4210
|
animationCompleted: () => void;
|
4469
4211
|
}) => JSX_2.Element;
|
@@ -4531,8 +4273,6 @@ declare const TAB_CODES: {
|
|
4531
4273
|
|
4532
4274
|
export declare const TabComponent: React_2.FC<ITabProps>;
|
4533
4275
|
|
4534
|
-
export declare const Tabs: MemoExoticComponent<({ selectedTab, onChange, tabs }: ITabsProps) => JSX_2.Element>;
|
4535
|
-
|
4536
4276
|
export declare type TAction = EventToPayload<TInclassMessage>;
|
4537
4277
|
|
4538
4278
|
declare type TActionListenerOptions = {
|
@@ -4559,14 +4299,6 @@ export declare type TArrowTooltipConfig = {
|
|
4559
4299
|
|
4560
4300
|
export declare type TArrowTooltipVariants = 'primary' | 'secondary';
|
4561
4301
|
|
4562
|
-
export declare type TAuthApiErrorCode = (typeof AuthApiErrorCode)[keyof typeof AuthApiErrorCode];
|
4563
|
-
|
4564
|
-
export declare type TAuthProvider = 'email' | 'phone' | 'username';
|
4565
|
-
|
4566
|
-
export declare type TAuthTabKeys = 'identifier' | 'username';
|
4567
|
-
|
4568
|
-
export declare type TAuthUserType = 'student' | 'parent';
|
4569
|
-
|
4570
4302
|
declare type TBadgeData = {
|
4571
4303
|
acknowledged_on: number | null;
|
4572
4304
|
animation_url: string;
|
@@ -5402,8 +5134,6 @@ declare type TSectionSummary = {
|
|
5402
5134
|
modules: TSATModule[];
|
5403
5135
|
};
|
5404
5136
|
|
5405
|
-
export declare type TSelectedCountry = Pick<ICountryOption, 'id' | 'code'>;
|
5406
|
-
|
5407
5137
|
declare type TSheetAttemptLocation = keyof typeof SHEET_ATTEMPT_LOCATION;
|
5408
5138
|
|
5409
5139
|
declare type TSheetAttemptLocation_2 = keyof typeof SHEET_ATTEMPT_LOCATION;
|
@@ -5473,8 +5203,6 @@ declare type TSheetStates = keyof typeof NODE_CARD_STATES;
|
|
5473
5203
|
|
5474
5204
|
export declare type TSkillStatus = 'pending' | 'completed';
|
5475
5205
|
|
5476
|
-
export declare type TSocialAuthProvider = 'google' | 'apple';
|
5477
|
-
|
5478
5206
|
declare type TStickerData = {
|
5479
5207
|
actor_id: string;
|
5480
5208
|
badge_id: string;
|
@@ -5549,12 +5277,6 @@ export declare type TTrialSessionMessage = {
|
|
5549
5277
|
|
5550
5278
|
declare type TUpdateHeight = (height: number) => void;
|
5551
5279
|
|
5552
|
-
declare type TUserAccount = {
|
5553
|
-
id: string;
|
5554
|
-
phone: string;
|
5555
|
-
user_avatar?: IAvatarLayer[] | null;
|
5556
|
-
};
|
5557
|
-
|
5558
5280
|
declare type TUserChapterStates = 'MASTERED' | 'PROFICIENT' | 'FAMILIAR' | 'STARTED';
|
5559
5281
|
|
5560
5282
|
declare type TUserProgram = {
|
@@ -5738,12 +5460,6 @@ export declare const User2Icon: React.FC<React.SVGProps<SVGSVGElement>>;
|
|
5738
5460
|
|
5739
5461
|
export declare const UserIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
5740
5462
|
|
5741
|
-
export declare const UserIdentifierForm: MemoExoticComponent<({ onSubmit, onChange, value, error, isSubmitDisabled, isProcessing, isValid, label, }: ISingleFieldFormProps) => JSX_2.Element>;
|
5742
|
-
|
5743
|
-
export declare const UsernamePasswordForm: NamedExoticComponent<IUsernamePasswordFormProps>;
|
5744
|
-
|
5745
|
-
export declare const UserTypeSelector: NamedExoticComponent<IUserTypeSelectorProps>;
|
5746
|
-
|
5747
5463
|
export declare const useTrackingContext: (commonAnalyticsProps: Record<string, unknown>, overrides?: Record<string, unknown>) => {
|
5748
5464
|
onClick: TTrackCTA;
|
5749
5465
|
onResponse: TTrackInput;
|