@cuemath/leap 3.4.4 → 3.4.5-akm-3

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 (100) hide show
  1. package/dist/assets/illustrations/illustrations.js +7 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +1 -0
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js +31 -16
  6. package/dist/features/auth/comps/tabs/tab-tem/tab-item.js.map +1 -1
  7. package/dist/features/auth/comps/tabs/tabs.js +22 -5
  8. package/dist/features/auth/comps/tabs/tabs.js.map +1 -1
  9. package/dist/features/auth/pla-signup/pla-analytics-events.js +1 -1
  10. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  11. package/dist/features/auth/pla-signup/signup-options/signup-options.js +46 -37
  12. package/dist/features/auth/pla-signup/signup-options/signup-options.js.map +1 -1
  13. package/dist/features/circle-games/game-launcher/api/get-content-for-today/constants.js +1 -1
  14. package/dist/features/circle-games/game-launcher/api/get-content-for-today/constants.js.map +1 -1
  15. package/dist/features/circle-games/game-launcher/api/get-content-for-today/get-circle-home-api.js +4 -4
  16. package/dist/features/circle-games/game-launcher/api/get-content-for-today/get-circle-home-api.js.map +1 -1
  17. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js +84 -21
  18. package/dist/features/circle-games/game-launcher/comps/carousel/carousel-styled.js.map +1 -1
  19. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js +46 -73
  20. package/dist/features/circle-games/game-launcher/comps/carousel/carousel.js.map +1 -1
  21. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-badge-style.js +20 -0
  22. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-badge-style.js.map +1 -0
  23. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-badge.js +17 -0
  24. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-badge.js.map +1 -0
  25. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-single-badge.js +20 -0
  26. package/dist/features/circle-games/game-launcher/comps/carousel-badge/carousel-single-badge.js.map +1 -0
  27. package/dist/features/circle-games/game-launcher/comps/circular-game-card/circular-game-card-styled.js +67 -0
  28. package/dist/features/circle-games/game-launcher/comps/circular-game-card/circular-game-card-styled.js.map +1 -0
  29. package/dist/features/circle-games/game-launcher/comps/circular-game-card/circular-game-card.js +87 -0
  30. package/dist/features/circle-games/game-launcher/comps/circular-game-card/circular-game-card.js.map +1 -0
  31. package/dist/features/circle-games/game-launcher/comps/circular-game-card/constants.js +7 -0
  32. package/dist/features/circle-games/game-launcher/comps/circular-game-card/constants.js.map +1 -0
  33. package/dist/features/circle-games/game-launcher/comps/game-card-content/constants.js +6 -0
  34. package/dist/features/circle-games/game-launcher/comps/game-card-content/constants.js.map +1 -0
  35. package/dist/features/circle-games/game-launcher/comps/game-card-content/game-card-content-styled.js +62 -0
  36. package/dist/features/circle-games/game-launcher/comps/game-card-content/game-card-content-styled.js.map +1 -0
  37. package/dist/features/circle-games/game-launcher/comps/game-card-content/game-card-content.js +9 -0
  38. package/dist/features/circle-games/game-launcher/comps/game-card-content/game-card-content.js.map +1 -0
  39. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js +2 -7
  40. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/constants.js.map +1 -1
  41. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js +80 -59
  42. package/dist/features/circle-games/game-launcher/dal/use-get-circle-home-details-dal/helper.js.map +1 -1
  43. package/dist/features/circle-games/game-launcher/game-launcher-v2.js +246 -0
  44. package/dist/features/circle-games/game-launcher/game-launcher-v2.js.map +1 -0
  45. package/dist/features/circle-games/game-launcher/helpers.js +8 -0
  46. package/dist/features/circle-games/game-launcher/helpers.js.map +1 -0
  47. package/dist/features/milestone/create/milestone-create-helpers.js +6 -2
  48. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  49. package/dist/features/post-game-stats/accuracy/accuracy-styled.js +1 -1
  50. package/dist/features/post-game-stats/accuracy/accuracy-styled.js.map +1 -1
  51. package/dist/features/post-game-stats/clock/clock-styled.js +1 -1
  52. package/dist/features/post-game-stats/clock/clock-styled.js.map +1 -1
  53. package/dist/features/post-game-stats/points/points.js +4 -3
  54. package/dist/features/post-game-stats/points/points.js.map +1 -1
  55. package/dist/features/post-game-stats/post-game-stats-styled.js +9 -8
  56. package/dist/features/post-game-stats/post-game-stats-styled.js.map +1 -1
  57. package/dist/features/post-game-stats/post-game-stats.js +107 -105
  58. package/dist/features/post-game-stats/post-game-stats.js.map +1 -1
  59. package/dist/features/post-game-stats/score/score-styled.js +1 -1
  60. package/dist/features/post-game-stats/score/score-styled.js.map +1 -1
  61. package/dist/features/post-game-stats/streak/streak-styled.js +1 -1
  62. package/dist/features/post-game-stats/streak/streak-styled.js.map +1 -1
  63. package/dist/index.d.ts +90 -7
  64. package/dist/index.js +271 -264
  65. package/dist/index.js.map +1 -1
  66. package/dist/static/accuracy-badge.2e161f00.svg +1 -0
  67. package/dist/static/clock-badge.0adb4ba6.svg +1 -0
  68. package/dist/static/down-arrow-badge.f462f615.svg +1 -0
  69. package/dist/static/green-tick.43b94c3a.svg +1 -0
  70. package/dist/static/pill-tick.c06f606d.json +1 -0
  71. package/dist/static/points-badge.96bdecc9.svg +1 -0
  72. package/dist/static/star-badge.5450c267.svg +1 -0
  73. package/dist/static/up-arrow-badge.71fe7ad1.svg +1 -0
  74. package/package.json +1 -1
  75. package/dist/assets/line-icons/icons/carat-left.js +0 -26
  76. package/dist/assets/line-icons/icons/carat-left.js.map +0 -1
  77. package/dist/assets/line-icons/icons/carat-right.js +0 -26
  78. package/dist/assets/line-icons/icons/carat-right.js.map +0 -1
  79. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js +0 -138
  80. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card-styled.js.map +0 -1
  81. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js +0 -105
  82. package/dist/features/circle-games/game-launcher/comps/segmented-game-card/segmented-game-card.js.map +0 -1
  83. package/dist/features/circle-games/game-launcher/game-launcher.js +0 -219
  84. package/dist/features/circle-games/game-launcher/game-launcher.js.map +0 -1
  85. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.js +0 -8
  86. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/constants.js.map +0 -1
  87. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js +0 -286
  88. package/dist/features/circle-games/game-launcher/hooks/use-game-launcher-journey/use-game-launcher-journey.js.map +0 -1
  89. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/constants.js +0 -10
  90. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/constants.js.map +0 -1
  91. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey-styled.js +0 -13
  92. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey-styled.js.map +0 -1
  93. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js +0 -137
  94. package/dist/features/circle-games/game-launcher/hooks/use-table-infinite-launcher-journey/use-table-infinite-launcher-journey.js.map +0 -1
  95. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/constants.js +0 -14
  96. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/constants.js.map +0 -1
  97. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey-styled.js +0 -13
  98. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey-styled.js.map +0 -1
  99. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js +0 -230
  100. package/dist/features/circle-games/game-launcher/hooks/use-table-launcher-journey/use-table-launcher-journey.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  import i, { keyframes as r, css as s } from "styled-components";
2
2
  import { GAME_LAUNCHER_SIZE as t } from "../../circle-games/game-launcher/comps/card-container/constants.js";
3
- import { GAME_LAUNCHER_ASSET_PADDING as n } from "../../circle-games/game-launcher/comps/segmented-game-card/constants.js";
3
+ import { GAME_LAUNCHER_ASSET_PADDING as n } from "../../circle-games/game-launcher/comps/circular-game-card/constants.js";
4
4
  import c from "../../ui/text/text.js";
5
5
  import { STREAK_TOP_GREEN_SEGMENT_HEIGHT as x, STREAK_CONTAINER_HEIGHT as o } from "./constants.js";
6
6
  const m = 50 * 84 / 100, p = r`
@@ -1 +1 @@
1
- {"version":3,"file":"streak-styled.js","sources":["../../../../src/features/post-game-stats/streak/streak-styled.tsx"],"sourcesContent":["import styled, { keyframes, css } from 'styled-components';\n\nimport { GAME_LAUNCHER_SIZE } from '../../circle-games/game-launcher/comps/card-container/constants';\nimport { GAME_LAUNCHER_ASSET_PADDING } from '../../circle-games/game-launcher/comps/segmented-game-card/constants';\nimport Text from '../../ui/text/text';\nimport { STREAK_CONTAINER_HEIGHT, STREAK_TOP_GREEN_SEGMENT_HEIGHT } from './constants';\n\nconst MASK_PADDING = (50 * 84) / 100;\n\nconst fadeIn = keyframes`\n 0%{\n opacity: 0;\n }\n 100%{\n opacity: 1;\n }\n`;\n\nconst fadeOut = keyframes`\n 0%{\n opacity: 1;\n }\n 100%{\n opacity: 0;\n }\n`;\n\nexport const Streak = styled.div`\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n background: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n`;\n\nexport const SVGImgContainer = styled.div`\n position: absolute;\n border-radius: ${Math.ceil((GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING) / 2)}px;\n height: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n width: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n z-index: 0;\n`;\n\nexport const StreakLottieView = styled.div`\n height: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n width: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n position: absolute;\n z-index: 2;\n`;\nexport const StreakValueWrapper = styled.div<{\n $duration: number;\n $animationType: 'fadein' | 'fadeout';\n}>`\n position: absolute;\n top: ${STREAK_TOP_GREEN_SEGMENT_HEIGHT}px;\n z-index: 2;\n height: ${STREAK_CONTAINER_HEIGHT}px;\n animation: ${({ $animationType, $duration }) => css`\n ${$animationType === 'fadein' ? fadeIn : fadeOut} ${$duration}ms linear forwards\n `};\n overflow: hidden;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const StreakValueContainer = styled.div<{\n $translate: boolean;\n $translateDuration: number;\n}>`\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n height: ${STREAK_CONTAINER_HEIGHT * 2}px;\n transition: transform ${({ $translateDuration }) => `${$translateDuration}ms linear`};\n transform: ${({ $translate }) =>\n $translate ? `translateY(-${STREAK_CONTAINER_HEIGHT}px)` : 'translateY(0)'};\n`;\n\nexport const StreakValue = styled(Text)`\n font-size: 123px;\n line-height: 123px;\n text-align: center;\n height: ${STREAK_CONTAINER_HEIGHT}px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const TextWrapper = styled.div<{\n $duration: number;\n $delay: number;\n $animationType: 'fadein' | 'fadeout';\n}>`\n z-index: 2;\n opacity: 0;\n animation: ${({ $animationType, $duration, $delay }) => css`\n ${$animationType === 'fadein' ? fadeIn : fadeOut} ${$duration}ms ${$delay}ms ease forwards\n `};\n transform: translateY(${((GAME_LAUNCHER_SIZE + MASK_PADDING) * 84) / 200 + 25}px);\n`;\n"],"names":["MASK_PADDING","fadeIn","keyframes","fadeOut","Streak","styled","GAME_LAUNCHER_SIZE","SVGImgContainer","GAME_LAUNCHER_ASSET_PADDING","StreakLottieView","StreakValueWrapper","STREAK_TOP_GREEN_SEGMENT_HEIGHT","STREAK_CONTAINER_HEIGHT","$animationType","$duration","css","StreakValueContainer","$translateDuration","$translate","StreakValue","Text","TextWrapper","$delay"],"mappings":";;;;;AAOA,MAAMA,IAAgB,KAAK,KAAM,KAE3BC,IAASC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASTC,IAAUD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASHE,IAASC,EAAO;AAAA,YACjBC,CAAkB;AAAA,WACnBA,CAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQhBC,IAAkBF,EAAO;AAAA;AAAA,mBAEnB,KAAK,MAAMC,IAAqBE,KAA+B,CAAC,CAAC;AAAA,YACxEF,IAAqBE,CAA2B;AAAA,WACjDF,IAAqBE,CAA2B;AAAA;AAAA,GAI9CC,IAAmBJ,EAAO;AAAA,YAC3BC,IAAqBE,CAA2B;AAAA,WACjDF,IAAqBE,CAA2B;AAAA;AAAA;AAAA,GAI9CE,IAAqBL,EAAO;AAAA;AAAA,SAKhCM,CAA+B;AAAA;AAAA,YAE5BC,CAAuB;AAAA,eACpB,CAAC,EAAE,gBAAAC,GAAgB,WAAAC,EAAA,MAAgBC;AAAA,MAC5CF,MAAmB,WAAWZ,IAASE,CAAO,IAAIW,CAAS;AAAA,GAC9D;AAAA;AAAA;AAAA;AAAA;AAAA,GAOUE,IAAuBX,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,YAQ/BO,IAA0B,CAAC;AAAA,0BACb,CAAC,EAAE,oBAAAK,EAAyB,MAAA,GAAGA,CAAkB,WAAW;AAAA,eACvE,CAAC,EAAE,YAAAC,EAAW,MACzBA,IAAa,eAAeN,CAAuB,QAAQ,eAAe;AAAA,GAGjEO,IAAcd,EAAOe,CAAI;AAAA;AAAA;AAAA;AAAA,YAI1BR,CAAuB;AAAA;AAAA;AAAA;AAAA;AAAA,GAOtBS,IAAchB,EAAO;AAAA;AAAA;AAAA,eAOnB,CAAC,EAAE,gBAAAQ,GAAgB,WAAAC,GAAW,QAAAQ,QAAaP;AAAA,MACpDF,MAAmB,WAAWZ,IAASE,CAAO,IAAIW,CAAS,MAAMQ,CAAM;AAAA,GAC1E;AAAA,2BACyBhB,IAAqBN,KAAgB,KAAM,MAAM,EAAE;AAAA;"}
1
+ {"version":3,"file":"streak-styled.js","sources":["../../../../src/features/post-game-stats/streak/streak-styled.tsx"],"sourcesContent":["import styled, { keyframes, css } from 'styled-components';\n\nimport { GAME_LAUNCHER_SIZE } from '../../circle-games/game-launcher/comps/card-container/constants';\nimport { GAME_LAUNCHER_ASSET_PADDING } from '../../circle-games/game-launcher/comps/circular-game-card/constants';\nimport Text from '../../ui/text/text';\nimport { STREAK_CONTAINER_HEIGHT, STREAK_TOP_GREEN_SEGMENT_HEIGHT } from './constants';\n\nconst MASK_PADDING = (50 * 84) / 100;\n\nconst fadeIn = keyframes`\n 0%{\n opacity: 0;\n }\n 100%{\n opacity: 1;\n }\n`;\n\nconst fadeOut = keyframes`\n 0%{\n opacity: 1;\n }\n 100%{\n opacity: 0;\n }\n`;\n\nexport const Streak = styled.div`\n height: ${GAME_LAUNCHER_SIZE}px;\n width: ${GAME_LAUNCHER_SIZE}px;\n background: transparent;\n display: flex;\n justify-content: center;\n align-items: center;\n position: relative;\n`;\n\nexport const SVGImgContainer = styled.div`\n position: absolute;\n border-radius: ${Math.ceil((GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING) / 2)}px;\n height: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n width: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n z-index: 0;\n`;\n\nexport const StreakLottieView = styled.div`\n height: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n width: ${GAME_LAUNCHER_SIZE + GAME_LAUNCHER_ASSET_PADDING}px;\n position: absolute;\n z-index: 2;\n`;\nexport const StreakValueWrapper = styled.div<{\n $duration: number;\n $animationType: 'fadein' | 'fadeout';\n}>`\n position: absolute;\n top: ${STREAK_TOP_GREEN_SEGMENT_HEIGHT}px;\n z-index: 2;\n height: ${STREAK_CONTAINER_HEIGHT}px;\n animation: ${({ $animationType, $duration }) => css`\n ${$animationType === 'fadein' ? fadeIn : fadeOut} ${$duration}ms linear forwards\n `};\n overflow: hidden;\n display: flex;\n flex-direction: column;\n align-items: center;\n`;\n\nexport const StreakValueContainer = styled.div<{\n $translate: boolean;\n $translateDuration: number;\n}>`\n width: 100%;\n display: flex;\n flex-direction: column;\n align-items: center;\n height: ${STREAK_CONTAINER_HEIGHT * 2}px;\n transition: transform ${({ $translateDuration }) => `${$translateDuration}ms linear`};\n transform: ${({ $translate }) =>\n $translate ? `translateY(-${STREAK_CONTAINER_HEIGHT}px)` : 'translateY(0)'};\n`;\n\nexport const StreakValue = styled(Text)`\n font-size: 123px;\n line-height: 123px;\n text-align: center;\n height: ${STREAK_CONTAINER_HEIGHT}px;\n flex-shrink: 0;\n display: flex;\n align-items: center;\n justify-content: center;\n`;\n\nexport const TextWrapper = styled.div<{\n $duration: number;\n $delay: number;\n $animationType: 'fadein' | 'fadeout';\n}>`\n z-index: 2;\n opacity: 0;\n animation: ${({ $animationType, $duration, $delay }) => css`\n ${$animationType === 'fadein' ? fadeIn : fadeOut} ${$duration}ms ${$delay}ms ease forwards\n `};\n transform: translateY(${((GAME_LAUNCHER_SIZE + MASK_PADDING) * 84) / 200 + 25}px);\n`;\n"],"names":["MASK_PADDING","fadeIn","keyframes","fadeOut","Streak","styled","GAME_LAUNCHER_SIZE","SVGImgContainer","GAME_LAUNCHER_ASSET_PADDING","StreakLottieView","StreakValueWrapper","STREAK_TOP_GREEN_SEGMENT_HEIGHT","STREAK_CONTAINER_HEIGHT","$animationType","$duration","css","StreakValueContainer","$translateDuration","$translate","StreakValue","Text","TextWrapper","$delay"],"mappings":";;;;;AAOA,MAAMA,IAAgB,KAAK,KAAM,KAE3BC,IAASC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASTC,IAAUD;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GASHE,IAASC,EAAO;AAAA,YACjBC,CAAkB;AAAA,WACnBA,CAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAQhBC,IAAkBF,EAAO;AAAA;AAAA,mBAEnB,KAAK,MAAMC,IAAqBE,KAA+B,CAAC,CAAC;AAAA,YACxEF,IAAqBE,CAA2B;AAAA,WACjDF,IAAqBE,CAA2B;AAAA;AAAA,GAI9CC,IAAmBJ,EAAO;AAAA,YAC3BC,IAAqBE,CAA2B;AAAA,WACjDF,IAAqBE,CAA2B;AAAA;AAAA;AAAA,GAI9CE,IAAqBL,EAAO;AAAA;AAAA,SAKhCM,CAA+B;AAAA;AAAA,YAE5BC,CAAuB;AAAA,eACpB,CAAC,EAAE,gBAAAC,GAAgB,WAAAC,EAAA,MAAgBC;AAAA,MAC5CF,MAAmB,WAAWZ,IAASE,CAAO,IAAIW,CAAS;AAAA,GAC9D;AAAA;AAAA;AAAA;AAAA;AAAA,GAOUE,IAAuBX,EAAO;AAAA;AAAA;AAAA;AAAA;AAAA,YAQ/BO,IAA0B,CAAC;AAAA,0BACb,CAAC,EAAE,oBAAAK,EAAyB,MAAA,GAAGA,CAAkB,WAAW;AAAA,eACvE,CAAC,EAAE,YAAAC,EAAW,MACzBA,IAAa,eAAeN,CAAuB,QAAQ,eAAe;AAAA,GAGjEO,IAAcd,EAAOe,CAAI;AAAA;AAAA;AAAA;AAAA,YAI1BR,CAAuB;AAAA;AAAA;AAAA;AAAA;AAAA,GAOtBS,IAAchB,EAAO;AAAA;AAAA;AAAA,eAOnB,CAAC,EAAE,gBAAAQ,GAAgB,WAAAC,GAAW,QAAAQ,QAAaP;AAAA,MACpDF,MAAmB,WAAWZ,IAASE,CAAO,IAAIW,CAAS,MAAMQ,CAAM;AAAA,GAC1E;AAAA,2BACyBhB,IAAqBN,KAAgB,KAAM,MAAM,EAAE;AAAA;"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import type { ButtonHTMLAttributes } from 'react';
2
2
  import type { Channel } from '@cuemath/cue-message-broker';
3
3
  import { ChannelStatus } from '@cuemath/cue-message-broker';
4
+ import { ComponentProps } from 'react';
4
5
  import { ComponentType } from 'react';
5
6
  import type { Config } from '@lottiefiles/dotlottie-web';
6
7
  import { Context } from 'react';
@@ -153,6 +154,7 @@ declare interface BaseProject {
153
154
  cardLottie: string;
154
155
  tutorial: string;
155
156
  variant: string;
157
+ displayNameImage: string;
156
158
  }
157
159
 
158
160
  export declare const BeltsElementsStickers: NamedExoticComponent<BeltsElementsStickersProps>;
@@ -404,7 +406,7 @@ export declare const COUNTRY_CODE_MAP: {
404
406
  geoIPCountryCode: string;
405
407
  }[];
406
408
 
407
- declare const COURSE_STREAMS: {
409
+ export declare const COURSE_STREAMS: {
408
410
  readonly SAT_DEMO: "SAT-DEMO";
409
411
  readonly SAT_MATH: "SAT-MATH";
410
412
  readonly SAT_ENGLISH: "SAT-ENGLISH";
@@ -673,6 +675,8 @@ declare interface FlexViewProps {
673
675
 
674
676
  export declare interface Game extends BaseProject {
675
677
  isPlayed: boolean;
678
+ wonToday: number;
679
+ lostToday: number;
676
680
  }
677
681
 
678
682
  export declare const GAME_LAUNCHER_ASSET_PADDING: number;
@@ -681,7 +685,7 @@ export declare const GAME_LAUNCHER_SIZE: number;
681
685
 
682
686
  export declare const GameIcon: FC<SVGProps<SVGSVGElement>>;
683
687
 
684
- export declare const GameLauncher: FC<IGameLauncherProps>;
688
+ export declare const GameLauncherV2: FC<IGameLauncherProps>;
685
689
 
686
690
  declare enum GENDER {
687
691
  MALE = "MALE",
@@ -712,6 +716,8 @@ declare const getMediaQueries: () => {
712
716
  minWidthLargeDevice: string;
713
717
  };
714
718
 
719
+ export declare const getPreferencesFromConfig: IGetPreferencesFromConfig;
720
+
715
721
  declare const getTabConfig: IGetTabConfig;
716
722
 
717
723
  declare const getTextButtonConfig: IGetTextButtonConfig;
@@ -981,6 +987,7 @@ declare interface IBaseProject {
981
987
  card: string;
982
988
  variant: string;
983
989
  tutorial: string;
990
+ display_name_image?: string;
984
991
  }
985
992
 
986
993
  declare interface IBaseSelectInputProps<IDType extends string | number> extends Omit<IBaseInputProps, 'inputElement' | 'size'> {
@@ -1708,6 +1715,8 @@ declare interface IFirstSessionIntroductionProps {
1708
1715
 
1709
1716
  declare interface IGame extends IBaseProject {
1710
1717
  played: boolean;
1718
+ won_today: number;
1719
+ lost_today: number;
1711
1720
  }
1712
1721
 
1713
1722
  declare interface IGameLauncherProps {
@@ -1779,6 +1788,14 @@ declare interface IGetMilestoneResourcesAPIMetaData {
1779
1788
  studentId: string;
1780
1789
  }
1781
1790
 
1791
+ declare interface IGetPreferencesFromConfig {
1792
+ (config: IMilestoneConfig, options: {
1793
+ grade: string;
1794
+ preferenceCategory: TPreferenceCategory;
1795
+ courseStream: TCourseStream;
1796
+ }): TMilestoneConfigOption[];
1797
+ }
1798
+
1782
1799
  declare interface IGetTabConfig {
1783
1800
  (gutter: number): {
1784
1801
  sizes: Record<TTabSizes, ITabSizeConfig>;
@@ -2222,7 +2239,8 @@ declare interface ILesson extends IBaseProject {
2222
2239
  session_id: string;
2223
2240
  mini_game_identifier: string;
2224
2241
  target_questions: number;
2225
- status: 'pending' | 'completed';
2242
+ status: 'pending' | 'completed' | 'paused';
2243
+ first_attempt?: ILessonFirstAttempt;
2226
2244
  }
2227
2245
 
2228
2246
  export declare interface ILessonDataProps {
@@ -2241,6 +2259,12 @@ export declare interface ILessonDataProps {
2241
2259
  learnosity_activity_ref: string;
2242
2260
  }
2243
2261
 
2262
+ declare interface ILessonFirstAttempt {
2263
+ points_scored: number;
2264
+ accuracy: number;
2265
+ gross_time_taken: number;
2266
+ }
2267
+
2244
2268
  declare interface ILessonItemCallbackProps extends Omit<ISheetItemCallbackProps, 'onReset'> {
2245
2269
  onReset?: (nodeId: string) => void;
2246
2270
  }
@@ -2273,6 +2297,7 @@ declare interface ILinearProgressBarProps {
2273
2297
  }
2274
2298
 
2275
2299
  export declare const ILLUSTRATIONS: {
2300
+ ACCURACY_BADGE: string;
2276
2301
  ALARM_CLOCK_ORANGE: string;
2277
2302
  ALARM_CLOCK_PURPLE: string;
2278
2303
  ALIEN_1: string;
@@ -2311,6 +2336,7 @@ export declare const ILLUSTRATIONS: {
2311
2336
  CIRCLE_CUEMATH_LOGO: string;
2312
2337
  CIRCLE_CUEMATH_LOGO_WHITE: string;
2313
2338
  CIRCLE_OUTERCIRCLE_BG: string;
2339
+ CLOCK_BADGE: string;
2314
2340
  CLOCK_ORANGE: string;
2315
2341
  COMMON: string;
2316
2342
  COMMUNITY_BULB: string;
@@ -2321,6 +2347,7 @@ export declare const ILLUSTRATIONS: {
2321
2347
  CUECOIN_GOLD: string;
2322
2348
  CUEMATH_APP_QR_CODE: string;
2323
2349
  DESKTOP_WITH_PURPLE_FILL: string;
2350
+ DOWN_ARROW_BADGE: string;
2324
2351
  DURATION_30MIN_GRAY: string;
2325
2352
  DURATION_45MIN_GRAY: string;
2326
2353
  DURATION_60MIN_GRAY: string;
@@ -2338,6 +2365,7 @@ export declare const ILLUSTRATIONS: {
2338
2365
  GRADUATE_PINK_FILLED_BG: string;
2339
2366
  GREEN_BALLOON: string;
2340
2367
  GREEN_FACE: string;
2368
+ GREEN_TICK: string;
2341
2369
  HANDSHAKE: string;
2342
2370
  HANDSHAKE_GREEN: string;
2343
2371
  HEART_OUTLINED: string;
@@ -2389,6 +2417,7 @@ export declare const ILLUSTRATIONS: {
2389
2417
  PLATFORM_PURPLE: string;
2390
2418
  PLAY: string;
2391
2419
  PLAY_ICON: string;
2420
+ POINTS_BADGE: string;
2392
2421
  POINTS_SUM: string;
2393
2422
  PRACTICED_SHIELD_GREEN: string;
2394
2423
  PRACTICED_SHIELD_GREY: string;
@@ -2412,6 +2441,7 @@ export declare const ILLUSTRATIONS: {
2412
2441
  ROCKET_YELLOW: string;
2413
2442
  SCORE: string;
2414
2443
  SMILEY: string;
2444
+ STAR_BADGE: string;
2415
2445
  STAR_ORANGE: string;
2416
2446
  STAR_ORANGE_FILLED: string;
2417
2447
  STAR_OUTLINED: string;
@@ -2433,6 +2463,7 @@ export declare const ILLUSTRATIONS: {
2433
2463
  TRUSTPILOT: string;
2434
2464
  TWO_STARS_FILLED: string;
2435
2465
  UP_ARROW: string;
2466
+ UP_ARROW_BADGE: string;
2436
2467
  USER_CROWN_GRID_BACKGROUND: string;
2437
2468
  USER_DOWN: string;
2438
2469
  USER_PIN: string;
@@ -3151,6 +3182,7 @@ export declare interface IPostGameStat {
3151
3182
  export declare interface IPostGameStatsProps {
3152
3183
  stats: IPostGameStat[];
3153
3184
  show: boolean;
3185
+ offsetY?: number;
3154
3186
  onComplete?: () => void;
3155
3187
  }
3156
3188
 
@@ -3168,6 +3200,7 @@ declare interface IPreferencesCurriculumMap {
3168
3200
  text_input_needed?: boolean;
3169
3201
  preference_description?: string;
3170
3202
  lottie_key?: string;
3203
+ preference_description_2?: string;
3171
3204
  }
3172
3205
 
3173
3206
  export declare interface IPreviewWorksheetModel {
@@ -3266,6 +3299,7 @@ declare interface IPuzzle extends IBaseProject {
3266
3299
  question: string;
3267
3300
  is_hint_seen: boolean;
3268
3301
  solved: boolean;
3302
+ first_attempt?: IPuzzleFirstAttempt;
3269
3303
  }
3270
3304
 
3271
3305
  declare interface IPuzzleAppProps {
@@ -3338,6 +3372,11 @@ declare interface IPuzzleDashboardProps {
3338
3372
  onCardClick: (userNodeId: string) => void;
3339
3373
  }
3340
3374
 
3375
+ declare interface IPuzzleFirstAttempt {
3376
+ solved_with_hint: boolean;
3377
+ points_scored: number;
3378
+ }
3379
+
3341
3380
  export declare interface IPuzzleWebGameProps extends IBaseWebGameProps, ISyncableWebGameProps {
3342
3381
  question: string;
3343
3382
  askHintPermission?: boolean;
@@ -3946,6 +3985,8 @@ declare interface ITabsProps {
3946
3985
  onChange: (tab: string) => void;
3947
3986
  tabs: ITabItem[];
3948
3987
  background?: TColorNames;
3988
+ selectedTextProps?: ComponentProps<typeof Text_2>;
3989
+ defaultTextProps?: ComponentProps<typeof Text_2>;
3949
3990
  }
3950
3991
 
3951
3992
  export declare interface ITabVariantConfig {
@@ -4827,6 +4868,7 @@ export declare interface Lesson extends BaseProject {
4827
4868
  miniGameIdentifier: string;
4828
4869
  targetQuestions: number;
4829
4870
  status: TSkillStatus;
4871
+ firstAttempt: LessonFirstAttempt;
4830
4872
  }
4831
4873
 
4832
4874
  declare const LESSON_TAG_TYPE: {
@@ -4834,6 +4876,12 @@ declare const LESSON_TAG_TYPE: {
4834
4876
  readonly DEFAULT: "DEFAULT";
4835
4877
  };
4836
4878
 
4879
+ export declare interface LessonFirstAttempt {
4880
+ pointsScored: number;
4881
+ accuracy: number;
4882
+ grossTimeTaken: number;
4883
+ }
4884
+
4837
4885
  export declare const LinearProgressBar: NamedExoticComponent<ILinearProgressBarProps>;
4838
4886
 
4839
4887
  export declare const loadScript: ILoadScript;
@@ -4920,6 +4968,7 @@ export declare const LOTTIE: {
4920
4968
  PARTY_POPPER: string;
4921
4969
  PENCIL: string;
4922
4970
  PHONE_NUMBER: string;
4971
+ PILL_TICK: string;
4923
4972
  PLUS_SIGN: string;
4924
4973
  POINT100: string;
4925
4974
  POINT10: string;
@@ -5231,6 +5280,7 @@ export declare const PillButton: NamedExoticComponent<IPillButtonProps>;
5231
5280
 
5232
5281
  export declare enum PLA_ANALYTICS_EVENTS {
5233
5282
  START_SIGNUP_CTA_CLICKED = "start_signup_cta_clicked",
5283
+ SIGNUP_TO_LOGIN_CTA_CLICKED = "signup_to_login_cta_clicked",
5234
5284
  ECNA_STEP_VIEWED = "ecna_step_viewed",
5235
5285
  ECNA_RESPONSE_RECORDED_DEBUG = "ecna_response_recorded_debug",
5236
5286
  PARENT_SIGNUP_CTA_CLICKED = "parent_signup_cta_clicked",
@@ -5313,7 +5363,7 @@ export declare const PostGameStats: NamedExoticComponent<IPostGameStatsProps & R
5313
5363
 
5314
5364
  export declare const PracticeIcon: FC<SVGProps<SVGSVGElement>>;
5315
5365
 
5316
- declare const PREFERENCE_CATEGORY: {
5366
+ export declare const PREFERENCE_CATEGORY: {
5317
5367
  readonly LEVEL: "Level";
5318
5368
  readonly FOCUS: "Focus";
5319
5369
  readonly BEHAVIOR: "Behaviors";
@@ -5348,6 +5398,7 @@ export declare interface Puzzle extends BaseProject {
5348
5398
  question: string;
5349
5399
  isHintSeen: boolean;
5350
5400
  solved: boolean;
5401
+ firstAttempt: PuzzleFirstAttempt;
5351
5402
  }
5352
5403
 
5353
5404
  export declare const Puzzle2Icon: FC<SVGProps<SVGSVGElement>>;
@@ -5375,6 +5426,11 @@ export declare const PuzzleDashboard: FC<IPuzzleDashboardProps>;
5375
5426
 
5376
5427
  export declare const PuzzleFeedbackCelebration: FC;
5377
5428
 
5429
+ export declare interface PuzzleFirstAttempt {
5430
+ solvedWithHint: boolean;
5431
+ pointsScored: number;
5432
+ }
5433
+
5378
5434
  export declare const PuzzleIcon: FC<SVGProps<SVGSVGElement>>;
5379
5435
 
5380
5436
  export declare const PYTHON_NODE_TYPES: {
@@ -5682,7 +5738,7 @@ declare const TAB_CODES: {
5682
5738
 
5683
5739
  export declare const TabComponent: FC<ITabProps>;
5684
5740
 
5685
- export declare const Tabs: MemoExoticComponent<({ selectedTab, onChange, tabs, background }: ITabsProps) => JSX.Element>;
5741
+ export declare const Tabs: MemoExoticComponent<({ selectedTab, onChange, tabs, background, selectedTextProps, defaultTextProps, }: ITabsProps) => JSX.Element>;
5686
5742
 
5687
5743
  export declare type TAction = EventToPayload<TInclassMessage>;
5688
5744
 
@@ -6497,6 +6553,15 @@ declare type TMilestoneChapterBlockData = {
6497
6553
  user_id: string;
6498
6554
  };
6499
6555
 
6556
+ export declare type TMilestoneConfigOption = {
6557
+ id: string;
6558
+ label: string;
6559
+ description?: string;
6560
+ lottie?: keyof typeof LOTTIE;
6561
+ extendedDescription?: string;
6562
+ category?: TPreferenceCategory;
6563
+ };
6564
+
6500
6565
  declare type TMilestoneDeleteProps = {
6501
6566
  milestoneId: string;
6502
6567
  isGoalCreation?: boolean;
@@ -6551,7 +6616,7 @@ declare type TPreference = {
6551
6616
  selectedTime: string;
6552
6617
  };
6553
6618
 
6554
- declare type TPreferenceCategory = (typeof PREFERENCE_CATEGORY)[keyof typeof PREFERENCE_CATEGORY];
6619
+ export declare type TPreferenceCategory = (typeof PREFERENCE_CATEGORY)[keyof typeof PREFERENCE_CATEGORY];
6555
6620
 
6556
6621
  declare type TProfileHighlight = {
6557
6622
  illustration: string;
@@ -6753,7 +6818,7 @@ declare type TSheetStateProps = 'LOCKED' | 'NOT_STARTED' | 'IN_PROGRESS' | 'FAMI
6753
6818
 
6754
6819
  declare type TSheetStates = keyof typeof NODE_CARD_STATES;
6755
6820
 
6756
- export declare type TSkillStatus = 'pending' | 'completed';
6821
+ export declare type TSkillStatus = 'pending' | 'completed' | 'paused';
6757
6822
 
6758
6823
  export declare type TSocialAuthProvider = 'google' | 'apple';
6759
6824
 
@@ -7005,6 +7070,24 @@ export declare const useGetLeaderboardDal: (userId: string) => Omit<ReturnType<t
7005
7070
  data: ILeaderboardDetails | null;
7006
7071
  };
7007
7072
 
7073
+ export declare const useGetMileStoneConfig: (initialId?: string, initialQuery?: {
7074
+ demo_type?: "TRIAL_V3";
7075
+ } | undefined) => {
7076
+ get: (id: string, query: {
7077
+ demo_type?: "TRIAL_V3";
7078
+ } | undefined, meta: void) => Promise<void>;
7079
+ resource: ResourceModel<IMilestoneConfig> | undefined;
7080
+ data: IMilestoneConfig | undefined;
7081
+ permissions: Record<string, unknown> | undefined;
7082
+ isProcessing: boolean;
7083
+ isProcessed: boolean;
7084
+ isProcessingFailed: boolean;
7085
+ isStale: boolean;
7086
+ error: ({
7087
+ message?: string | undefined;
7088
+ } & Record<string, unknown>) | undefined;
7089
+ };
7090
+
7008
7091
  export declare const useGetMilestoneResources: (initialId?: string, initialQuery?: void | undefined) => {
7009
7092
  get: (id: string, query: void, meta: IGetMilestoneResourcesAPIMetaData) => Promise<void>;
7010
7093
  resource: ResourceModel<INodeDataProps[]> | undefined;