@cuemath/leap 3.5.19-as1 → 3.5.19-link.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.
Files changed (41) hide show
  1. package/dist/assets/line-icons/icons/change-icon.js +41 -0
  2. package/dist/assets/line-icons/icons/change-icon.js.map +1 -0
  3. package/dist/features/timeline/comps/accordion-item/accordion-item.js +39 -51
  4. package/dist/features/timeline/comps/accordion-item/accordion-item.js.map +1 -1
  5. package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items.js +10 -9
  6. package/dist/features/timeline/comps/daily-timeline-items/daily-timeline-items.js.map +1 -1
  7. package/dist/features/timeline/comps/no-activity.js +5 -4
  8. package/dist/features/timeline/comps/no-activity.js.map +1 -1
  9. package/dist/features/timeline/comps/utils.js +9 -9
  10. package/dist/features/timeline/comps/utils.js.map +1 -1
  11. package/dist/features/timeline/daily-timeline-types.js.map +1 -1
  12. package/dist/features/trial-session/api/course-stream.js.map +1 -1
  13. package/dist/features/trial-session/api/trial-nodes.js +6 -5
  14. package/dist/features/trial-session/api/trial-nodes.js.map +1 -1
  15. package/dist/features/trial-session/comps/confirmation-modal/confirmation-modal-styled.js +68 -0
  16. package/dist/features/trial-session/comps/confirmation-modal/confirmation-modal-styled.js.map +1 -0
  17. package/dist/features/trial-session/comps/confirmation-modal/confirmation-modal.js +65 -0
  18. package/dist/features/trial-session/comps/confirmation-modal/confirmation-modal.js.map +1 -0
  19. package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js +41 -0
  20. package/dist/features/trial-session/comps/confirmation-modal/hooks/use-confirmation-modal.js.map +1 -0
  21. package/dist/features/trial-session/comps/student-feedback/student-feedback.js +90 -71
  22. package/dist/features/trial-session/comps/student-feedback/student-feedback.js.map +1 -1
  23. package/dist/features/trial-session/comps/worksheet/worksheet.js +27 -23
  24. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  25. package/dist/features/trial-session/hooks/use-trial-session-navigation.js +26 -25
  26. package/dist/features/trial-session/hooks/use-trial-session-navigation.js.map +1 -1
  27. package/dist/features/trial-session/left-panel/index.js +37 -34
  28. package/dist/features/trial-session/left-panel/index.js.map +1 -1
  29. package/dist/features/trial-session/left-panel/left-panel-styled.js +7 -4
  30. package/dist/features/trial-session/left-panel/left-panel-styled.js.map +1 -1
  31. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  32. package/dist/features/trial-session/trial-session-view.js +77 -74
  33. package/dist/features/trial-session/trial-session-view.js.map +1 -1
  34. package/dist/features/ui/theme/button.js +17 -0
  35. package/dist/features/ui/theme/button.js.map +1 -1
  36. package/dist/index.d.ts +31 -54
  37. package/dist/index.js +735 -733
  38. package/dist/index.js.map +1 -1
  39. package/package.json +1 -1
  40. package/dist/features/timeline/comps/accordion-item/accordian-item-styled.js +0 -30
  41. package/dist/features/timeline/comps/accordion-item/accordian-item-styled.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sources":["../../../../src/features/ui/theme/button.ts"],"sourcesContent":["import type {\n IButtonSizeConfig,\n TButtonSizes,\n IButtonVariantConfig,\n TButtonVariants,\n} from '../types';\n\ninterface IGetButtonConfig {\n (gutter: number): {\n sizes: Record<TButtonSizes, IButtonSizeConfig>;\n variants: Record<TButtonVariants, IButtonVariantConfig>;\n };\n}\n\nconst getButtonConfig: IGetButtonConfig = (gutter: number) => {\n const sizes: Record<TButtonSizes, IButtonSizeConfig> = {\n xsmall: {\n height: gutter * 2,\n paddingHorizontal: gutter * (1 + 0.375),\n textVariant: 'ub3-bold',\n borderWidth: 1,\n iconSize: gutter,\n iconPadding: gutter * 0.25,\n loaderSize: gutter * 1.25,\n },\n small: {\n height: gutter * 2.5,\n paddingHorizontal: gutter * (1 + 0.625),\n textVariant: 'ub2-bold',\n borderWidth: 1,\n iconSize: gutter * 1.25,\n iconPadding: gutter * 0.375,\n loaderSize: gutter * 1.5,\n },\n regular: {\n height: gutter * 3,\n paddingHorizontal: gutter * (1 + 0.875),\n textVariant: 'ub1-bold',\n borderWidth: 1,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 1.75,\n },\n medium: {\n height: gutter * 3.5,\n paddingHorizontal: gutter * (1 + 1.125),\n textVariant: 'ub1-bold',\n borderWidth: 1.5,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 2,\n },\n large: {\n height: gutter * 4,\n paddingHorizontal: gutter * (1 + 1.375),\n textVariant: 'ub1-bold',\n borderWidth: 2,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 2.25,\n },\n };\n\n const variants: Record<TButtonVariants, IButtonVariantConfig> = {\n 'primary': {\n backgroundColorName: {\n inactive: 'YELLOW_4',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'tertiary': {\n backgroundColorName: {\n inactive: 'RED',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary-gray': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'WHITE_4',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary-dark': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_10',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'WHITE_T_38',\n },\n borderColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_15',\n },\n },\n 'black': {\n backgroundColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_T_60',\n disabled: 'BLACK_T_15',\n },\n borderColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_1',\n disabled: 'BLACK_T_15',\n },\n colorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_87',\n },\n },\n 'black-dark': {\n backgroundColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_4',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_15',\n },\n colorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_38',\n },\n },\n 'yellow-dark': {\n backgroundColorName: {\n inactive: 'YELLOW_4',\n active: 'YELLOW_3',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'WHITE_T_15',\n },\n colorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_1',\n disabled: 'WHITE_T_38',\n },\n },\n // 'yellow': {\n // backgroundColorName: {\n // inactive: 'YELLOW_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'WHITE_4',\n // disabled: 'BLACK_T_35',\n // },\n // },\n\n // 'white': {\n // backgroundColorName: {\n // inactive: 'WHITE_1',\n // active: 'BLACK_T_35',\n // disabled: 'BLACK_T_35',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // },\n // 'white-dark': {\n // backgroundColorName: {\n // inactive: 'WHITE_4',\n // active: 'WHITE_T_70',\n // disabled: 'WHITE_T_40',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'WHITE_T_40',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'WHITE_T_40',\n // },\n // },\n };\n\n return { sizes, variants };\n};\n\nexport default getButtonConfig;\n"],"names":["getButtonConfig","gutter"],"mappings":"AAcM,MAAAA,IAAoC,CAACC,OAgPlC,EAAE,OA/O8C;AAAA,EACrD,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA;AAAA,IACV,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,OAAO;AAAA,IACL,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,SAAS;AAAA,IACP,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,E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AAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
1
+ {"version":3,"file":"button.js","sources":["../../../../src/features/ui/theme/button.ts"],"sourcesContent":["import type {\n IButtonSizeConfig,\n TButtonSizes,\n IButtonVariantConfig,\n TButtonVariants,\n} from '../types';\n\ninterface IGetButtonConfig {\n (gutter: number): {\n sizes: Record<TButtonSizes, IButtonSizeConfig>;\n variants: Record<TButtonVariants, IButtonVariantConfig>;\n };\n}\n\nconst getButtonConfig: IGetButtonConfig = (gutter: number) => {\n const sizes: Record<TButtonSizes, IButtonSizeConfig> = {\n xsmall: {\n height: gutter * 2,\n paddingHorizontal: gutter * (1 + 0.375),\n textVariant: 'ub3-bold',\n borderWidth: 1,\n iconSize: gutter,\n iconPadding: gutter * 0.25,\n loaderSize: gutter * 1.25,\n },\n small: {\n height: gutter * 2.5,\n paddingHorizontal: gutter * (1 + 0.625),\n textVariant: 'ub2-bold',\n borderWidth: 1,\n iconSize: gutter * 1.25,\n iconPadding: gutter * 0.375,\n loaderSize: gutter * 1.5,\n },\n regular: {\n height: gutter * 3,\n paddingHorizontal: gutter * (1 + 0.875),\n textVariant: 'ub1-bold',\n borderWidth: 1,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 1.75,\n },\n medium: {\n height: gutter * 3.5,\n paddingHorizontal: gutter * (1 + 1.125),\n textVariant: 'ub1-bold',\n borderWidth: 1.5,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 2,\n },\n large: {\n height: gutter * 4,\n paddingHorizontal: gutter * (1 + 1.375),\n textVariant: 'ub1-bold',\n borderWidth: 2,\n iconSize: gutter * 1.5,\n iconPadding: gutter * 0.5,\n loaderSize: gutter * 2.25,\n },\n };\n\n const variants: Record<TButtonVariants, IButtonVariantConfig> = {\n 'primary': {\n backgroundColorName: {\n inactive: 'YELLOW_4',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'tertiary': {\n backgroundColorName: {\n inactive: 'RED',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary-gray': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'WHITE_4',\n disabled: 'GREY_3',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'BLACK',\n },\n borderColorName: {\n inactive: 'BLACK',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'secondary-dark': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_10',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n disabled: 'WHITE_T_38',\n },\n borderColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_15',\n },\n },\n 'secondary-danger': {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n disabled: 'WHITE_T_10',\n },\n colorName: {\n inactive: 'RED',\n active: 'WHITE',\n disabled: 'GREY_3',\n },\n borderColorName: {\n inactive: 'RED',\n active: 'BLACK',\n disabled: 'GREY_3',\n },\n },\n 'black': {\n backgroundColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_T_60',\n disabled: 'BLACK_T_15',\n },\n borderColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_1',\n disabled: 'BLACK_T_15',\n },\n colorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_87',\n },\n },\n 'black-dark': {\n backgroundColorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_4',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_15',\n },\n colorName: {\n inactive: 'WHITE_1',\n active: 'WHITE_1',\n disabled: 'WHITE_T_38',\n },\n },\n 'yellow-dark': {\n backgroundColorName: {\n inactive: 'YELLOW_4',\n active: 'YELLOW_3',\n disabled: 'WHITE_T_10',\n },\n borderColorName: {\n inactive: 'WHITE',\n active: 'WHITE',\n disabled: 'WHITE_T_15',\n },\n colorName: {\n inactive: 'BLACK_1',\n active: 'BLACK_1',\n disabled: 'WHITE_T_38',\n },\n },\n // 'yellow': {\n // backgroundColorName: {\n // inactive: 'YELLOW_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'WHITE_4',\n // disabled: 'BLACK_T_35',\n // },\n // },\n\n // 'white': {\n // backgroundColorName: {\n // inactive: 'WHITE_1',\n // active: 'BLACK_T_35',\n // disabled: 'BLACK_T_35',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'BLACK_T_35',\n // },\n // },\n // 'white-dark': {\n // backgroundColorName: {\n // inactive: 'WHITE_4',\n // active: 'WHITE_T_70',\n // disabled: 'WHITE_T_40',\n // },\n // borderColorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'WHITE_T_40',\n // },\n // colorName: {\n // inactive: 'BLACK_4',\n // active: 'BLACK_4',\n // disabled: 'WHITE_T_40',\n // },\n // },\n };\n\n return { sizes, variants };\n};\n\nexport default getButtonConfig;\n"],"names":["getButtonConfig","gutter"],"mappings":"AAcM,MAAAA,IAAoC,CAACC,OAiQlC,EAAE,OAhQ8C;AAAA,EACrD,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA;AAAA,IACV,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,OAAO;AAAA,IACL,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,SAAS;AAAA,IACP,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA,IACb,aAAa;AAAA,IACb,UAAUA,IAAS;AAAA,IACnB,aAAaA,IAAS;AAAA,IACtB,YAAYA,IAAS;AAAA,EACvB;AAAA,EACA,OAAO;AAAA,IACL,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAU;AAAA,IAC7B,aAAa;AAAA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,MACf,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,UAAU;AAAA,IACZ;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;"}
package/dist/index.d.ts CHANGED
@@ -1,40 +1,40 @@
1
- import { ButtonHTMLAttributes } from 'react';
2
- import { Channel } from '@cuemath/cue-message-broker';
1
+ import type { ButtonHTMLAttributes } from 'react';
2
+ import type { Channel } from '@cuemath/cue-message-broker';
3
3
  import { ChannelStatus } from '@cuemath/cue-message-broker';
4
4
  import { ComponentProps } from 'react';
5
5
  import { ComponentType } from 'react';
6
- import { Config } from '@lottiefiles/dotlottie-web';
6
+ import type { Config } from '@lottiefiles/dotlottie-web';
7
7
  import { Context } from 'react';
8
- import { Data } from '@lottiefiles/dotlottie-web';
9
- import { DefaultTheme } from 'styled-components';
8
+ import type { Data } from '@lottiefiles/dotlottie-web';
9
+ import type { DefaultTheme } from 'styled-components';
10
10
  import { DetailedHTMLProps } from 'react';
11
- import { Dispatch } from 'react';
12
- import { EventListener as EventListener_2 } from '@lottiefiles/dotlottie-web';
13
- import { EventType } from '@lottiefiles/dotlottie-web';
11
+ import type { Dispatch } from 'react';
12
+ import type { EventListener as EventListener_2 } from '@lottiefiles/dotlottie-web';
13
+ import type { EventType } from '@lottiefiles/dotlottie-web';
14
14
  import { FC } from 'react';
15
- import { FormEvent } from 'react';
15
+ import type { FormEvent } from 'react';
16
16
  import { ForwardRefExoticComponent } from 'react';
17
17
  import { HTMLAttributes } from 'react';
18
- import { HTMLProps } from 'react';
18
+ import type { HTMLProps } from 'react';
19
19
  import { IChannelMessage } from '@cuemath/cue-message-broker';
20
- import { IframeHTMLAttributes } from 'react';
21
- import { ImgHTMLAttributes } from 'react';
22
- import { InputHTMLAttributes } from 'react';
20
+ import type { IframeHTMLAttributes } from 'react';
21
+ import type { ImgHTMLAttributes } from 'react';
22
+ import type { InputHTMLAttributes } from 'react';
23
23
  import { IProvidedProps } from 'google-maps-react';
24
24
  import { IStyledComponent } from 'styled-components';
25
25
  import { JSX } from 'react/jsx-runtime';
26
26
  import { MemoExoticComponent } from 'react';
27
- import { MutableRefObject } from 'react';
27
+ import type { MutableRefObject } from 'react';
28
28
  import { NamedExoticComponent } from 'react';
29
29
  import { Omit as Omit_2 } from 'google-maps-react';
30
- import { PLUGIN_NAME } from '@cuemath/analytics-v2/dist/constants';
30
+ import type { PLUGIN_NAME } from '@cuemath/analytics-v2/dist/constants';
31
31
  import { PropsWithChildren } from 'react';
32
32
  import { ReactElement } from 'react';
33
33
  import { ReactNode } from 'react';
34
34
  import { RefAttributes } from 'react';
35
35
  import { RefObject } from 'react';
36
36
  import { ResourceModel } from '@cuemath/rest-api';
37
- import { SetStateAction } from 'react';
37
+ import type { SetStateAction } from 'react';
38
38
  import { Substitute } from 'styled-components/dist/types';
39
39
  import { SVGProps } from 'react';
40
40
  import { VideoHTMLAttributes } from 'react';
@@ -87,7 +87,7 @@ declare type AnimationSegment = [number, number];
87
87
  export declare const AppLoader: FC<IAppLoaderProps>;
88
88
 
89
89
  export declare const ArcButton: NamedExoticComponent<IArcButtonProps & {
90
- children?: ReactNode | undefined;
90
+ children?: ReactNode | undefined;
91
91
  } & RefAttributes<HTMLDivElement>>;
92
92
 
93
93
  export declare const ArrowTooltip: NamedExoticComponent<IArrowTooltipProps>;
@@ -276,6 +276,8 @@ declare interface CarouselProps {
276
276
 
277
277
  export declare const CascadingSelectInput: FC<ICascadingSelectInputProps>;
278
278
 
279
+ export declare const ChangeIcon: FC<SVGProps<SVGSVGElement>>;
280
+
279
281
  export declare const Chapter: FC<IChapterProps>;
280
282
 
281
283
  declare const CHAPTER_LOCK_STATE: {
@@ -446,7 +448,7 @@ declare interface CueCoinIconProps extends SVGProps<SVGSVGElement> {
446
448
  variant?: 'gold' | 'silver';
447
449
  }
448
450
 
449
- export declare const CuemathAppFeatures: NamedExoticComponent< {}>;
451
+ export declare const CuemathAppFeatures: NamedExoticComponent<{}>;
450
452
 
451
453
  export declare const CuemathLogo: FC<SVGProps<SVGSVGElement>>;
452
454
 
@@ -703,7 +705,7 @@ declare enum GENDER {
703
705
  OTHER = "OTHER"
704
706
  }
705
707
 
706
- export declare const getActiveSATSheet: (sheets: TLPARSheetData[]) => TLPARSheetData | undefined;
708
+ export declare const getActiveSATSheet: (sheets: TLPARSheetData[]) => TLPARSheetData;
707
709
 
708
710
  declare const getArrowTooltipConfig: IGetArrowTooltipConfig;
709
711
 
@@ -1567,7 +1569,7 @@ declare interface IDailyTimelineProps {
1567
1569
  userType: USER_TYPE;
1568
1570
  studentId: string;
1569
1571
  courseStreams?: TCourseStream[];
1570
- onPuzzleClick?: (card: ITimeLineItem) => void;
1572
+ onPuzzleClick?: (userNodeId: string, state: NODE_STATE) => void;
1571
1573
  onReviewClick?: (userNodeId: string | null, isSatMockTestBlock: boolean, userBlockId: string | null) => void;
1572
1574
  scrollAreaHeight?: string | number;
1573
1575
  }
@@ -4192,34 +4194,6 @@ declare interface ITimeLeftTimelineProps {
4192
4194
  showRemainingTime?: boolean;
4193
4195
  }
4194
4196
 
4195
- export declare interface ITimeLineItem {
4196
- accuracy: number | null;
4197
- block_type: string | null;
4198
- card_type?: string;
4199
- chapter_name: string | null;
4200
- feedback_comments: string | null;
4201
- image_hue: string | null;
4202
- is_timed: boolean;
4203
- items: TNodeDataTestItemsDataProps[] | null;
4204
- label: string;
4205
- learnosity_activity_ref: string | null;
4206
- max_score: number | null;
4207
- node_id: string;
4208
- node_type: string;
4209
- points: number | null;
4210
- state: NODE_STATE;
4211
- subtext: string | null;
4212
- task_type: string | null;
4213
- time_taken: number | null;
4214
- tip: string | null;
4215
- title: string;
4216
- total_questions: number | null;
4217
- total_score: number | null;
4218
- user_block_id: string | null;
4219
- user_id?: string;
4220
- user_node_id: string;
4221
- }
4222
-
4223
4197
  declare interface ITimeStampsResponseModel {
4224
4198
  current: number;
4225
4199
  start_timestamp: number;
@@ -4276,6 +4250,8 @@ export declare interface ITrialSessionFormFields {
4276
4250
  chapterId?: string;
4277
4251
  matchmakingId?: string;
4278
4252
  numberInNameError?: boolean;
4253
+ confirmationModalActive?: boolean;
4254
+ resetAttempt: boolean;
4279
4255
  }
4280
4256
 
4281
4257
  declare interface ITrialSessionMetadata {
@@ -4302,6 +4278,7 @@ declare interface ITrialSessionProps {
4302
4278
  handleInfoMessage: (message: IInfoMessage) => void;
4303
4279
  classTimeAlertConfig?: IClassTimeAlertConfig;
4304
4280
  classDuration?: number;
4281
+ changeDemoLevel?: boolean;
4305
4282
  }
4306
4283
 
4307
4284
  export declare interface ITutorialProps {
@@ -5332,7 +5309,7 @@ export declare const OTPInput: NamedExoticComponent<IOTPInputProps>;
5332
5309
  export declare type OutcomeStage = keyof typeof STAGES;
5333
5310
 
5334
5311
  export declare const OverlayLoader: MemoExoticComponent<({ isLoading }: {
5335
- isLoading?: boolean | undefined;
5312
+ isLoading?: boolean | undefined;
5336
5313
  }) => JSX.Element | null>;
5337
5314
 
5338
5315
  export declare const ParentDashboard: NamedExoticComponent<IParentDashboardProps>;
@@ -5664,7 +5641,7 @@ export declare const SheetIcon: FC<SVGProps<SVGSVGElement>>;
5664
5641
  export declare const SheetList: FC<ISheetsListProps>;
5665
5642
 
5666
5643
  export declare const SheetLocked: MemoExoticComponent<({ onHomeClick }: {
5667
- onHomeClick: () => void;
5644
+ onHomeClick: () => void;
5668
5645
  }) => JSX.Element>;
5669
5646
 
5670
5647
  export declare const SignUp: ({ circleOnLeapPremiumDays, circleUsername, countryCode, grade: defaultGrade, state, circleOnLeapPremiumEnabled, studentId, isSignUpProcessing, onCreateUser, onUpdateUser, onSignupStepsComplete, isPLAStudent, }: ISignUpProps) => JSX.Element;
@@ -5912,7 +5889,7 @@ declare type TBlockType = keyof typeof BLOCK_TYPE_2;
5912
5889
 
5913
5890
  export declare type TButtonSizes = 'xsmall' | 'small' | 'regular' | 'medium' | 'large';
5914
5891
 
5915
- export declare type TButtonVariants = 'primary' | 'secondary' | 'tertiary' | 'secondary-gray' | 'secondary-dark' | 'black' | 'black-dark' | 'yellow-dark';
5892
+ export declare type TButtonVariants = 'primary' | 'secondary' | 'tertiary' | 'secondary-gray' | 'secondary-dark' | 'secondary-danger' | 'black' | 'black-dark' | 'yellow-dark';
5916
5893
 
5917
5894
  declare type TCallback = (messages: TInclassMessage[]) => void;
5918
5895
 
@@ -6655,7 +6632,7 @@ declare type TMilestoneStates = 'ACTIVE' | 'OUTCOME_PENDING' | 'OUTCOME_ADDED' |
6655
6632
 
6656
6633
  declare type TMilestoneType = 'ACTIVE' | 'INACTIVE' | 'DRAFT';
6657
6634
 
6658
- export declare interface TNodeDataTestItemsDataProps {
6635
+ declare interface TNodeDataTestItemsDataProps {
6659
6636
  chapter_name: string;
6660
6637
  goal_name: string;
6661
6638
  ref: string;
@@ -7196,8 +7173,8 @@ export declare const useGetMilestoneResources: (initialId?: string, initialQuery
7196
7173
 
7197
7174
  export declare const useGetPastMilestoneCount: (initialId?: string, initialQuery?: void | undefined) => {
7198
7175
  get: (id: string, query: void, meta: TQuery_2) => Promise<void>;
7199
- resource: ResourceModel< {
7200
- user_milestones_count: number;
7176
+ resource: ResourceModel<{
7177
+ user_milestones_count: number;
7201
7178
  }> | undefined;
7202
7179
  data: {
7203
7180
  user_milestones_count: number;