@cuemath/leap 3.3.24 → 3.3.25-af

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 (171) hide show
  1. package/dist/assets/lottie/lottie.js +2 -2
  2. package/dist/assets/lottie/lottie.js.map +1 -1
  3. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js +6 -6
  4. package/dist/features/auth/comps/auth-page-layout/auth-page-layout.js.map +1 -1
  5. package/dist/features/auth/comps/pill-button/pill-button.js +19 -19
  6. package/dist/features/auth/comps/pill-button/pill-button.js.map +1 -1
  7. package/dist/features/auth/pla-signup/pla-analytics-events.js +4 -5
  8. package/dist/features/auth/pla-signup/pla-analytics-events.js.map +1 -1
  9. package/dist/features/auth/pla-signup/signup-header/signup-header.js +1 -1
  10. package/dist/features/auth/pla-signup/signup-header/signup-header.js.map +1 -1
  11. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js +24 -24
  12. package/dist/features/auth/signup/circular-step-wrapper/circular-step-wrapper.js.map +1 -1
  13. package/dist/features/circle-games/hooks/use-circle-sounds/constants.js +5 -7
  14. package/dist/features/circle-games/hooks/use-circle-sounds/constants.js.map +1 -1
  15. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js +71 -75
  16. package/dist/features/circle-games/hooks/use-circle-sounds/use-circle-sounds.js.map +1 -1
  17. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps.js +12 -12
  18. package/dist/features/circle-games/sign-up/comp/circular-steps/circular-steps.js.map +1 -1
  19. package/dist/features/circle-games/sign-up/sign-up-types.js.map +1 -1
  20. package/dist/features/circle-games/sign-up/sign-up.js +128 -156
  21. package/dist/features/circle-games/sign-up/sign-up.js.map +1 -1
  22. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js +29 -23
  23. package/dist/features/journey/hooks/use-puzzles-journey/use-puzzle-dashboard-journey.js.map +1 -1
  24. package/dist/features/journey/journey-id/journey-id-student.js +1 -1
  25. package/dist/features/journey/journey-id/journey-id-student.js.map +1 -1
  26. package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js +40 -42
  27. package/dist/features/milestone/create/comps/add-custom-chapter/add-custom-chapter.js.map +1 -1
  28. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js +64 -70
  29. package/dist/features/milestone/create/comps/add-custom-chapter/course-catalog.js.map +1 -1
  30. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js +29 -54
  31. package/dist/features/milestone/create/comps/add-custom-chapter/hooks/use-catalog-helpers.js.map +1 -1
  32. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js +28 -48
  33. package/dist/features/milestone/create/comps/chapters-selection-step/chapter-selection-step-v2/chapter-category/chapter-category-container.js.map +1 -1
  34. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js +76 -79
  35. package/dist/features/milestone/create/comps/chapters-selection-step/chapters-selection-step.js.map +1 -1
  36. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js +94 -97
  37. package/dist/features/milestone/create/comps/chapters-selection-step/utils.js.map +1 -1
  38. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js +143 -160
  39. package/dist/features/milestone/create/comps/class-details-step/class-details-step.js.map +1 -1
  40. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js +12 -22
  41. package/dist/features/milestone/create/comps/class-details-step/class-details-utils.js.map +1 -1
  42. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js +59 -64
  43. package/dist/features/milestone/create/comps/test-type-step/test-type-step.js.map +1 -1
  44. package/dist/features/milestone/create/milestone-create-container.js +15 -17
  45. package/dist/features/milestone/create/milestone-create-container.js.map +1 -1
  46. package/dist/features/milestone/create/milestone-create-helpers.js +153 -170
  47. package/dist/features/milestone/create/milestone-create-helpers.js.map +1 -1
  48. package/dist/features/milestone/create/milestone-create-styled.js +1 -1
  49. package/dist/features/milestone/create/milestone-create-styled.js.map +1 -1
  50. package/dist/features/milestone/create/milestone-create.js +17 -19
  51. package/dist/features/milestone/create/milestone-create.js.map +1 -1
  52. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js +42 -45
  53. package/dist/features/parent-dashboard/hooks/use-parent-home-data.js.map +1 -1
  54. package/dist/features/parent-dashboard/parent-dashboard-types.js +2 -3
  55. package/dist/features/parent-dashboard/parent-dashboard-types.js.map +1 -1
  56. package/dist/features/parent-dashboard/parent-dashboard-view.js +127 -139
  57. package/dist/features/parent-dashboard/parent-dashboard-view.js.map +1 -1
  58. package/dist/features/sentry/constants/ignored.js +6 -10
  59. package/dist/features/sentry/constants/ignored.js.map +1 -1
  60. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js +7 -8
  61. package/dist/features/trial-session/comps/pla/session-summary/session-summary-constants.js.map +1 -1
  62. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js +26 -27
  63. package/dist/features/trial-session/comps/pla/session-summary/session-summary.js.map +1 -1
  64. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js +16 -16
  65. package/dist/features/trial-session/comps/pla/session-summary/summary-card/summary-card.js.map +1 -1
  66. package/dist/features/trial-session/comps/school-goals/school-goals.js +24 -25
  67. package/dist/features/trial-session/comps/school-goals/school-goals.js.map +1 -1
  68. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js +13 -15
  69. package/dist/features/trial-session/comps/session-report/report-information/report-information-styled.js.map +1 -1
  70. package/dist/features/trial-session/comps/session-report/report-information/report-information.js +1 -1
  71. package/dist/features/trial-session/comps/session-report/report-information/report-information.js.map +1 -1
  72. package/dist/features/trial-session/comps/worksheet/worksheet.js +23 -23
  73. package/dist/features/trial-session/comps/worksheet/worksheet.js.map +1 -1
  74. package/dist/features/trial-session/trial-session-types.js.map +1 -1
  75. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js +75 -88
  76. package/dist/features/ui/dot-lottie-animations/dot-lottie-animation.js.map +1 -1
  77. package/dist/features/ui/lottie-animation/lottie-animation.js +46 -55
  78. package/dist/features/ui/lottie-animation/lottie-animation.js.map +1 -1
  79. package/dist/features/ui/modals/modal-styled.js +15 -48
  80. package/dist/features/ui/modals/modal-styled.js.map +1 -1
  81. package/dist/features/ui/modals/modal.js +38 -46
  82. package/dist/features/ui/modals/modal.js.map +1 -1
  83. package/dist/features/{stickers/sticker-selector/comps/sticker/sticker-styled.js → ui/sticker-grid/sticker-grid-styles.js} +45 -15
  84. package/dist/features/ui/sticker-grid/sticker-grid-styles.js.map +1 -0
  85. package/dist/features/ui/sticker-grid/sticker-grid.js +24 -0
  86. package/dist/features/ui/sticker-grid/sticker-grid.js.map +1 -0
  87. package/dist/features/ui/sticker-grid/sticker.js +57 -0
  88. package/dist/features/ui/sticker-grid/sticker.js.map +1 -0
  89. package/dist/features/ui/stickers/constants.js +6 -0
  90. package/dist/features/ui/stickers/constants.js.map +1 -0
  91. package/dist/features/ui/stickers/stickers-effects.js +64 -0
  92. package/dist/features/ui/stickers/stickers-effects.js.map +1 -0
  93. package/dist/features/ui/stickers/stickers-styled.js +29 -0
  94. package/dist/features/ui/stickers/stickers-styled.js.map +1 -0
  95. package/dist/features/ui/stickers/stickers-utils.js +91 -0
  96. package/dist/features/ui/stickers/stickers-utils.js.map +1 -0
  97. package/dist/features/ui/stickers/stickers.js +40 -0
  98. package/dist/features/ui/stickers/stickers.js.map +1 -0
  99. package/dist/index.d.ts +59 -138
  100. package/dist/index.js +467 -485
  101. package/dist/index.js.map +1 -1
  102. package/dist/static/error.cbe1ddde.json +1 -0
  103. package/dist/static/username.9e034d51.json +1 -0
  104. package/package.json +1 -1
  105. package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js +0 -16
  106. package/dist/features/auth/signup-unavailable/signup-unavailable-styled.js.map +0 -1
  107. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js +0 -62
  108. package/dist/features/auth/signup-unavailable/signup-unavailable-view.js.map +0 -1
  109. package/dist/features/auth/signup-unavailable/signup-unavailable.js +0 -17
  110. package/dist/features/auth/signup-unavailable/signup-unavailable.js.map +0 -1
  111. package/dist/features/circle-games/hooks/use-circle-sounds/helper.js +0 -19
  112. package/dist/features/circle-games/hooks/use-circle-sounds/helper.js.map +0 -1
  113. package/dist/features/circle-games/sign-up/api/use-update-username-api/use-update-username-api.js +0 -9
  114. package/dist/features/circle-games/sign-up/api/use-update-username-api/use-update-username-api.js.map +0 -1
  115. package/dist/features/circle-games/sign-up/dal/update-username-dal/update-username-dal.js +0 -38
  116. package/dist/features/circle-games/sign-up/dal/update-username-dal/update-username-dal.js.map +0 -1
  117. package/dist/features/parent-dashboard/api/get-student-profile-summary.js +0 -9
  118. package/dist/features/parent-dashboard/api/get-student-profile-summary.js.map +0 -1
  119. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js +0 -10
  120. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction-styled.js.map +0 -1
  121. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js +0 -42
  122. package/dist/features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js.map +0 -1
  123. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js +0 -24
  124. package/dist/features/parent-dashboard/hooks/use-student-profile-summary-data.js.map +0 -1
  125. package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js +0 -71
  126. package/dist/features/parent-dashboard/hooks/use-switch-user-journey.js.map +0 -1
  127. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js +0 -40
  128. package/dist/features/parent-dashboard/modals/help-and-support/help-and-support.js.map +0 -1
  129. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js +0 -44
  130. package/dist/features/parent-dashboard/modals/student-login-info/student-login-info.js.map +0 -1
  131. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js +0 -32
  132. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-helpers.js.map +0 -1
  133. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js +0 -12
  134. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary-styled.js.map +0 -1
  135. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js +0 -44
  136. package/dist/features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js.map +0 -1
  137. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js +0 -13
  138. package/dist/features/parent-dashboard/modals/trial-report/trial-report-styled.js.map +0 -1
  139. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js +0 -28
  140. package/dist/features/parent-dashboard/modals/trial-report/trial-report.js.map +0 -1
  141. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js +0 -43
  142. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-constants.js.map +0 -1
  143. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js +0 -59
  144. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change-styled.js.map +0 -1
  145. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js +0 -86
  146. package/dist/features/parent-dashboard/modals/tutor-change/tutor-change.js.map +0 -1
  147. package/dist/features/stickers/constants.js +0 -235
  148. package/dist/features/stickers/constants.js.map +0 -1
  149. package/dist/features/stickers/sticker-selector/comps/sticker/sticker-styled.js.map +0 -1
  150. package/dist/features/stickers/sticker-selector/comps/sticker/sticker.js +0 -49
  151. package/dist/features/stickers/sticker-selector/comps/sticker/sticker.js.map +0 -1
  152. package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid-styled.js +0 -28
  153. package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid-styled.js.map +0 -1
  154. package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.js +0 -26
  155. package/dist/features/stickers/sticker-selector/comps/stiker-selector-grid/sticker-selector-grid.js.map +0 -1
  156. package/dist/features/stickers/sticker-selector/sticker-selector-styled.js +0 -13
  157. package/dist/features/stickers/sticker-selector/sticker-selector-styled.js.map +0 -1
  158. package/dist/features/stickers/sticker-selector/sticker-selector.js +0 -86
  159. package/dist/features/stickers/sticker-selector/sticker-selector.js.map +0 -1
  160. package/dist/features/stickers/stickers-effects/stickers-effects-animations.js +0 -82
  161. package/dist/features/stickers/stickers-effects/stickers-effects-animations.js.map +0 -1
  162. package/dist/features/stickers/stickers-effects/stickers-effects-cache.js +0 -19
  163. package/dist/features/stickers/stickers-effects/stickers-effects-cache.js.map +0 -1
  164. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js +0 -105
  165. package/dist/features/stickers/stickers-effects/stickers-effects-helper.js.map +0 -1
  166. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js +0 -37
  167. package/dist/features/stickers/stickers-effects/stickers-effects-styled.js.map +0 -1
  168. package/dist/features/stickers/stickers-effects/stickers-effects.js +0 -67
  169. package/dist/features/stickers/stickers-effects/stickers-effects.js.map +0 -1
  170. package/dist/static/error.dd744fa5.json +0 -1
  171. package/dist/static/username.2c755605.json +0 -1
@@ -0,0 +1,91 @@
1
+ const f = (n, s) => {
2
+ const t = Math.ceil(s / 4), r = Math.floor(n / t), d = n % t, M = ["top", "right", "bottom", "left"][r] ?? "left", h = (d + 0.5) / t * 100, i = (Math.random() - 0.5) * 25, o = Math.min(Math.max(h + i, 0), 100), a = 45 + Math.random() * 10, e = 45 + Math.random() * 10;
3
+ let l = 0, m = 0;
4
+ switch (M) {
5
+ case "top":
6
+ l = o - a, m = -e + i;
7
+ break;
8
+ case "right":
9
+ l = 100 - a + i, m = o - e;
10
+ break;
11
+ case "bottom":
12
+ l = o - a, m = 100 - e + i;
13
+ break;
14
+ case "left":
15
+ l = -a + i, m = o - e;
16
+ break;
17
+ }
18
+ return {
19
+ fromX: `${l}vw`,
20
+ fromY: `${m}vh`,
21
+ x: a,
22
+ y: e
23
+ };
24
+ }, g = (n, s = 10) => {
25
+ const t = [];
26
+ let r = 0;
27
+ const d = n;
28
+ for (; t.length < n && r < d; ) {
29
+ const c = Math.floor(Math.random() * (100 - 2 * s) + s);
30
+ t.every((M) => Math.abs(M - c) >= s) && t.push(c), r++;
31
+ }
32
+ for (; t.length < n; )
33
+ t.push(Math.floor(Math.random() * (100 - 2 * s) + s));
34
+ return t;
35
+ };
36
+ function x({
37
+ count: n,
38
+ effect: s,
39
+ stickers: t,
40
+ minSize: r,
41
+ maxSize: d
42
+ }) {
43
+ const c = 100 / n * 2, M = () => Math.random() * (d - r) + r, h = [], i = ["float_up", "fall_down"].includes(s) ? g(n, c) : [];
44
+ for (let o = 0; o < n; o++) {
45
+ const a = t[o % t.length] ?? "", e = M();
46
+ if (s === "float_up")
47
+ h.push({
48
+ id: o,
49
+ sticker: a,
50
+ x: i[o],
51
+ y: 110 + (Math.random() - 0.5) * e,
52
+ size: e
53
+ });
54
+ else if (s === "fall_down")
55
+ h.push({
56
+ id: o,
57
+ sticker: a,
58
+ x: i[o],
59
+ y: -10 + (Math.random() - 0.5) * e,
60
+ size: e
61
+ });
62
+ else if (s === "burst_from_edges") {
63
+ const { x: l, y: m, fromX: p, fromY: u } = f(o, n);
64
+ h.push({ id: o, sticker: a, x: l, y: m, fromX: p, fromY: u, size: e });
65
+ } else s === "pop_expand" ? h.push({
66
+ id: o,
67
+ sticker: a,
68
+ x: 50,
69
+ y: 100,
70
+ fromX: `${(Math.random() - 0.5) * 27.5}vw`,
71
+ fromY: `${-50 - Math.random() * 27.5}vh`,
72
+ size: e
73
+ }) : h.push({
74
+ id: o,
75
+ sticker: a,
76
+ x: Math.random() * 100,
77
+ y: Math.random() * 100,
78
+ size: e
79
+ });
80
+ }
81
+ return h;
82
+ }
83
+ const v = (n, s = 0.2) => {
84
+ const t = n * s, r = n - t, d = n + t;
85
+ return Math.floor(Math.random() * (d - r + 1)) + r;
86
+ };
87
+ export {
88
+ x as generateStickerData,
89
+ v as randomizeDuration
90
+ };
91
+ //# sourceMappingURL=stickers-utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stickers-utils.js","sources":["../../../../src/features/ui/stickers/stickers-utils.ts"],"sourcesContent":["import type { StickerDatum, StickersProps } from './stickers-types';\n\nconst getBurstPosition = (\n index: number,\n total: number,\n): {\n fromX: string;\n fromY: string;\n x: number;\n y: number;\n} => {\n const countPerSide = Math.ceil(total / 4);\n const sideIndex = Math.floor(index / countPerSide);\n const pos = index % countPerSide;\n\n const sides = ['top', 'right', 'bottom', 'left'] as const;\n const side = sides[sideIndex] ?? 'left';\n\n const basePercent = ((pos + 0.5) / countPerSide) * 100;\n const jitter = (Math.random() - 0.5) * 25;\n const edgePercent = Math.min(Math.max(basePercent + jitter, 0), 100);\n\n const centerX = 45 + Math.random() * 10;\n const centerY = 45 + Math.random() * 10;\n\n let fromX = 0;\n let fromY = 0;\n\n switch (side) {\n case 'top':\n fromX = edgePercent - centerX;\n fromY = -centerY + jitter;\n break;\n case 'right':\n fromX = 100 - centerX + jitter;\n fromY = edgePercent - centerY;\n break;\n case 'bottom':\n fromX = edgePercent - centerX;\n fromY = 100 - centerY + jitter;\n break;\n case 'left':\n fromX = -centerX + jitter;\n fromY = edgePercent - centerY;\n break;\n }\n\n return {\n fromX: `${fromX}vw`,\n fromY: `${fromY}vh`,\n x: centerX,\n y: centerY,\n };\n};\n\nconst getRandomNonOverlappingPositions = (count: number, buffer = 10): number[] => {\n const used: number[] = [];\n let attempts = 0;\n const maxAttempts = count;\n\n while (used.length < count && attempts < maxAttempts) {\n const value = Math.floor(Math.random() * (100 - 2 * buffer) + buffer);\n\n if (used.every(v => Math.abs(v - value) >= buffer)) {\n used.push(value);\n }\n attempts++;\n }\n\n while (used.length < count) {\n used.push(Math.floor(Math.random() * (100 - 2 * buffer) + buffer));\n }\n\n return used;\n};\n\nexport function generateStickerData({\n count,\n effect,\n stickers,\n minSize,\n maxSize,\n}: {\n count: number;\n effect: StickersProps['effect'];\n stickers: string[];\n minSize: number;\n maxSize: number;\n}): StickerDatum[] {\n const buffer = (100 / count) * 2;\n const getSize = () => Math.random() * (maxSize - minSize) + minSize;\n const result: StickerDatum[] = [];\n const xPositions = ['float_up', 'fall_down'].includes(effect)\n ? getRandomNonOverlappingPositions(count, buffer)\n : [];\n\n for (let i = 0; i < count; i++) {\n const sticker = stickers[i % stickers.length] ?? '';\n const size = getSize();\n\n if (effect === 'float_up') {\n result.push({\n id: i,\n sticker,\n x: xPositions[i]!,\n y: 110 + (Math.random() - 0.5) * size,\n size,\n });\n } else if (effect === 'fall_down') {\n result.push({\n id: i,\n sticker,\n x: xPositions[i]!,\n y: -10 + (Math.random() - 0.5) * size,\n size,\n });\n } else if (effect === 'burst_from_edges') {\n const { x, y, fromX, fromY } = getBurstPosition(i, count);\n\n result.push({ id: i, sticker, x, y, fromX, fromY, size });\n } else if (effect === 'pop_expand') {\n result.push({\n id: i,\n sticker,\n x: 50,\n y: 100,\n fromX: `${(Math.random() - 0.5) * 27.5}vw`,\n fromY: `${-50 - Math.random() * 27.5}vh`,\n size,\n });\n } else {\n result.push({\n id: i,\n sticker,\n x: Math.random() * 100,\n y: Math.random() * 100,\n size,\n });\n }\n }\n\n return result;\n}\n\nexport const randomizeDuration = (base: number, variancePercent = 0.2): number => {\n const delta = base * variancePercent;\n const min = base - delta;\n const max = base + delta;\n\n return Math.floor(Math.random() * (max - min + 1)) + min;\n};\n"],"names":["getBurstPosition","index","total","countPerSide","sideIndex","pos","side","basePercent","jitter","edgePercent","centerX","centerY","fromX","fromY","getRandomNonOverlappingPositions","count","buffer","used","attempts","maxAttempts","value","v","generateStickerData","effect","stickers","minSize","maxSize","getSize","result","xPositions","i","sticker","size","x","y","randomizeDuration","base","variancePercent","delta","min","max"],"mappings":"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"}
@@ -0,0 +1,40 @@
1
+ import { jsx as a } from "react/jsx-runtime";
2
+ import { memo as E, useState as I, useLayoutEffect as l } from "react";
3
+ import { STICKER_MIN_SIZE as x, STICKER_MAX_SIZE as D } from "./constants.js";
4
+ import { Container as T, Sticker as _ } from "./stickers-styled.js";
5
+ import { generateStickerData as z } from "./stickers-utils.js";
6
+ const C = ({ stickers: i, effect: t, count: m, duration: r }) => {
7
+ const [c, s] = I([]);
8
+ return l(() => {
9
+ const e = z({
10
+ count: m,
11
+ effect: t,
12
+ stickers: i,
13
+ minSize: x,
14
+ maxSize: D
15
+ });
16
+ s(e);
17
+ const o = setTimeout(() => s([]), r);
18
+ return () => clearTimeout(o);
19
+ }, [i, t, m, r]), /* @__PURE__ */ a(T, { children: c.map((e) => {
20
+ const { id: o, sticker: n, x: S, y: k, size: p, fromX: u, fromY: f } = e;
21
+ return /* @__PURE__ */ a(
22
+ _,
23
+ {
24
+ effect: t,
25
+ duration: r,
26
+ fromX: u,
27
+ fromY: f,
28
+ x: S,
29
+ y: k,
30
+ size: p,
31
+ children: n
32
+ },
33
+ o
34
+ );
35
+ }) });
36
+ }, R = E(C);
37
+ export {
38
+ R as default
39
+ };
40
+ //# sourceMappingURL=stickers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stickers.js","sources":["../../../../src/features/ui/stickers/stickers.tsx"],"sourcesContent":["import type { StickerDatum, StickersProps } from './stickers-types';\n\nimport React, { memo, useLayoutEffect, useState } from 'react';\n\nimport { STICKER_MAX_SIZE, STICKER_MIN_SIZE } from './constants';\nimport { Container, Sticker } from './stickers-styled';\nimport { generateStickerData } from './stickers-utils';\n\nconst Stickers: React.FC<StickersProps> = ({ stickers, effect, count, duration }) => {\n const [stickersData, setStickersData] = useState<ReturnType<typeof generateStickerData>>([]);\n\n useLayoutEffect(() => {\n const stickerData = generateStickerData({\n count,\n effect,\n stickers,\n minSize: STICKER_MIN_SIZE,\n maxSize: STICKER_MAX_SIZE,\n });\n\n setStickersData(stickerData);\n\n const timeout = setTimeout(() => setStickersData([]), duration);\n\n return () => clearTimeout(timeout);\n }, [stickers, effect, count, duration]);\n\n return (\n <Container>\n {stickersData.map((data: StickerDatum) => {\n const { id, sticker, x, y, size, fromX, fromY } = data;\n\n return (\n <Sticker\n key={id}\n effect={effect}\n duration={duration}\n fromX={fromX}\n fromY={fromY}\n x={x}\n y={y}\n size={size}\n >\n {sticker}\n </Sticker>\n );\n })}\n </Container>\n );\n};\n\nexport default memo(Stickers);\n"],"names":["Stickers","stickers","effect","count","duration","stickersData","setStickersData","useState","useLayoutEffect","stickerData","generateStickerData","STICKER_MIN_SIZE","STICKER_MAX_SIZE","timeout","jsx","Container","data","id","sticker","x","y","size","fromX","fromY","Sticker","memo"],"mappings":";;;;;AAQA,MAAMA,IAAoC,CAAC,EAAE,UAAAC,GAAU,QAAAC,GAAQ,OAAAC,GAAO,UAAAC,QAAe;AACnF,QAAM,CAACC,GAAcC,CAAe,IAAIC,EAAiD,CAAE,CAAA;AAE3F,SAAAC,EAAgB,MAAM;AACpB,UAAMC,IAAcC,EAAoB;AAAA,MACtC,OAAAP;AAAA,MACA,QAAAD;AAAA,MACA,UAAAD;AAAA,MACA,SAASU;AAAA,MACT,SAASC;AAAA,IAAA,CACV;AAED,IAAAN,EAAgBG,CAAW;AAE3B,UAAMI,IAAU,WAAW,MAAMP,EAAgB,CAAE,CAAA,GAAGF,CAAQ;AAEvD,WAAA,MAAM,aAAaS,CAAO;AAAA,KAChC,CAACZ,GAAUC,GAAQC,GAAOC,CAAQ,CAAC,GAGnC,gBAAAU,EAAAC,GAAA,EACE,UAAaV,EAAA,IAAI,CAACW,MAAuB;AAClC,UAAA,EAAE,IAAAC,GAAI,SAAAC,GAAS,GAAAC,GAAG,GAAAC,GAAG,MAAAC,GAAM,OAAAC,GAAO,OAAAC,EAAU,IAAAP;AAGhD,WAAA,gBAAAF;AAAA,MAACU;AAAA,MAAA;AAAA,QAEC,QAAAtB;AAAA,QACA,UAAAE;AAAA,QACA,OAAAkB;AAAA,QACA,OAAAC;AAAA,QACA,GAAAJ;AAAA,QACA,GAAAC;AAAA,QACA,MAAAC;AAAA,QAEC,UAAAH;AAAA,MAAA;AAAA,MATID;AAAA,IAAA;AAAA,EAYV,CAAA,EACH,CAAA;AAEJ,GAEehB,IAAAwB,EAAKzB,CAAQ;"}
package/dist/index.d.ts CHANGED
@@ -4,7 +4,6 @@ import { ChannelStatus } from '@cuemath/cue-message-broker';
4
4
  import { ComponentType } from 'react';
5
5
  import type { Config } from '@lottiefiles/dotlottie-web';
6
6
  import { Context } from 'react';
7
- import type { Data } from '@lottiefiles/dotlottie-web';
8
7
  import type { DefaultTheme } from 'styled-components';
9
8
  import { DetailedHTMLProps } from 'react';
10
9
  import type { Dispatch } from 'react';
@@ -466,7 +465,7 @@ export declare const DesmosCalculator: FC<IDesmosCalculatorProps>;
466
465
 
467
466
  export declare const DigitalMeter: FC<IDigitalMeterProps>;
468
467
 
469
- export declare const DotLottieAnimation: NamedExoticComponent<IDotLottieAnimationProps & RefAttributes<IDotLottieAnimationRef>>;
468
+ export declare const DotLottieAnimation: NamedExoticComponent<ILottieAnimationProps & RefAttributes<ILottieAnimationRef>>;
470
469
 
471
470
  export declare const DownIcon: React.FC<React.SVGProps<SVGSVGElement>>;
472
471
 
@@ -558,12 +557,6 @@ export declare enum ESessionStatus {
558
557
  IN_FUTURE = "IN FUTURE"
559
558
  }
560
559
 
561
- export declare enum ESummaryType {
562
- STUDENT_PROFILE = "studentProfile",
563
- INSIGHTS = "insights",
564
- LEARNING_PLAN = "learningPlan"
565
- }
566
-
567
560
  export declare const EveningIcon: React.FC<React.SVGProps<SVGSVGElement>>;
568
561
 
569
562
  export declare const EVENTS: {
@@ -796,7 +789,7 @@ declare interface IAccountSelectorViewProps {
796
789
  user_avatar?: IAvatarLayer[] | null;
797
790
  }[];
798
791
  onSelect: (accountId: string) => void;
799
- onAddNew?: () => void;
792
+ onAddNew: () => void;
800
793
  isLoading: boolean;
801
794
  }
802
795
 
@@ -1568,15 +1561,6 @@ declare interface IDigitalMeterProps {
1568
1561
  actAsTimer?: boolean;
1569
1562
  }
1570
1563
 
1571
- declare type IDotLottieAnimationProps = XOR<WithSrc, WithData> & SharedProps;
1572
-
1573
- declare interface IDotLottieAnimationRef {
1574
- play: () => void;
1575
- pause: () => void;
1576
- playSegments: (segments: AnimationSegment) => void;
1577
- setFrame: (frame: number) => void;
1578
- }
1579
-
1580
1564
  declare interface IDrawerProps {
1581
1565
  isOpen: boolean;
1582
1566
  onClose?: () => void;
@@ -1664,11 +1648,6 @@ declare interface IFile {
1664
1648
  url: string;
1665
1649
  }
1666
1650
 
1667
- declare interface IFirstSessionIntroductionProps {
1668
- onRunSystemCheck: () => void;
1669
- studentId: string;
1670
- }
1671
-
1672
1651
  declare interface IGame extends IBaseProject {
1673
1652
  played: boolean;
1674
1653
  }
@@ -2414,6 +2393,23 @@ declare interface ILogger {
2414
2393
  (eventName: string, data?: Record<string, unknown>): void;
2415
2394
  }
2416
2395
 
2396
+ declare interface ILottieAnimationProps {
2397
+ src: string;
2398
+ width?: string | number;
2399
+ height?: string | number;
2400
+ settings?: Partial<LottieSettings>;
2401
+ eventListeners?: {
2402
+ name: EventType;
2403
+ callback: EventListener_2<EventType>;
2404
+ }[];
2405
+ onRender?: () => void;
2406
+ onError?: () => void;
2407
+ }
2408
+
2409
+ declare interface ILottieAnimationRef {
2410
+ playSegments: (segments: AnimationSegment, forceFlag?: boolean) => void;
2411
+ }
2412
+
2417
2413
  declare interface ILPARChapterProps extends ILPARSheetCallbacks {
2418
2414
  userType: TUserTypes;
2419
2415
  chapterData: TLPARChapterData;
@@ -2589,7 +2585,6 @@ declare interface IMileStoneCreateProps {
2589
2585
  config: IMilestoneConfig;
2590
2586
  userType: TUserTypes;
2591
2587
  enrollmentType?: TEnrollmentTypes;
2592
- isTeacherTrainingAccount?: boolean;
2593
2588
  height?: string | number;
2594
2589
  minHeight?: string;
2595
2590
  formData?: IMilestoneFormData;
@@ -2767,13 +2762,11 @@ export declare interface IModal {
2767
2762
  /** Content to display inside the modal */
2768
2763
  element: ReactElement;
2769
2764
  /** Rendering style of the modal */
2770
- renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet' | 'fullscreen-transparent';
2765
+ renderAs?: 'modal' | 'fullscreen' | 'spotlight' | 'bottom-sheet';
2771
2766
  /** Whether the modal can be dismissed by clicking outside or ESC key (default: true) */
2772
2767
  isDismissable?: boolean;
2773
2768
  /** Whether the modal requires authentication to view (default: true) */
2774
2769
  isPrivate?: boolean;
2775
- /** If true, disables interaction behind modal (default: true) */
2776
- blocking?: boolean;
2777
2770
  /** Width of the modal in CSS units (e.g., '500px', '80vw') */
2778
2771
  modalWidth: string;
2779
2772
  renderOnMobileAs?: 'bottom-sheet';
@@ -2928,8 +2921,6 @@ export declare const invalidateMilestoneResources: (id: string, query?: void | u
2928
2921
 
2929
2922
  export declare const invalidateMilestonesData: (query?: TQuery | undefined) => void;
2930
2923
 
2931
- export declare const invalidateParentHome: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
2932
-
2933
2924
  export declare const invalidatePastMilestoneCount: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
2934
2925
 
2935
2926
  export declare const invalidatePuzzleToAssign: (id: string, query?: void | undefined, allIdsInvalid?: boolean) => void;
@@ -2945,10 +2936,6 @@ declare interface IOnChapterExitWarningProps {
2945
2936
  onSuccess?: () => void;
2946
2937
  }
2947
2938
 
2948
- declare interface IOnViewSummaryParams extends IStudentProfileSummary {
2949
- userAttemptId?: string;
2950
- }
2951
-
2952
2939
  declare interface IOpenImageReviewModalProps {
2953
2940
  isReviewed?: boolean;
2954
2941
  disableScoreForm?: boolean;
@@ -3008,11 +2995,11 @@ export declare interface IOutcomeStageData {
3008
2995
 
3009
2996
  declare interface IParentDashboardProps {
3010
2997
  studentName: string;
3011
- studentId: string;
2998
+ studentServiceId: string;
3012
2999
  onRescheduleDemo: (demoId?: string) => void;
3013
3000
  onChangeTutor: (demoId: string) => void;
3014
3001
  onGetStartedAgain?: () => void;
3015
- onViewSummary?: (key: ESummaryType, summaryData: IOnViewSummaryParams) => void;
3002
+ onViewSummary?: (key: string) => void;
3016
3003
  onSwitchUser?: () => void;
3017
3004
  canChangeTutor: boolean;
3018
3005
  isSubscriptionCancelled: boolean;
@@ -3528,7 +3515,7 @@ declare interface ISessionStatusProps {
3528
3515
  declare interface ISessionSummaryProps {
3529
3516
  isDemoDone: boolean;
3530
3517
  studentName: string;
3531
- onViewSummary?: (key: ESummaryType) => void;
3518
+ onViewSummary?: (key: string) => void;
3532
3519
  }
3533
3520
 
3534
3521
  declare interface IShareInstructionModalProps {
@@ -3653,12 +3640,7 @@ export declare interface ISignUpProps {
3653
3640
  isSignUpProcessing: boolean;
3654
3641
  onUpdateUser?: (data: IUpdateUserPayloadDal) => void;
3655
3642
  onCreateUser?: (data: ICreateUserResponseDal) => void;
3656
- onSignupStepsComplete: (data: IUpdateUserPayloadDal | ICreateUserResponseDal | IUpdateUsernameResponse | null) => void;
3657
- isPLAStudent?: boolean;
3658
- }
3659
-
3660
- declare interface ISignupUnavailableProps {
3661
- onGoToLogin?: () => void;
3643
+ onSignupStepsComplete: (data: IUpdateUserPayloadDal | ICreateUserResponseDal | null) => void;
3662
3644
  }
3663
3645
 
3664
3646
  declare interface ISingleFieldFormProps {
@@ -3703,35 +3685,19 @@ declare interface IStepperProps {
3703
3685
  currentStep: number;
3704
3686
  }
3705
3687
 
3706
- export declare interface IStickerData {
3688
+ declare interface IStickerData {
3707
3689
  id: string;
3708
3690
  emoji: string;
3709
3691
  lottieUrl?: string;
3710
- name: string;
3692
+ name?: string;
3711
3693
  }
3712
3694
 
3713
- declare interface IStickerSelectorGridProps {
3695
+ declare interface IStickerGridProps {
3696
+ stickers: IStickerData[];
3714
3697
  columns?: number;
3715
3698
  gap?: number;
3716
3699
  stickerSize?: number | string;
3717
- onStickerClick: (sticker: IStickerData) => void;
3718
- disabled?: boolean;
3719
- }
3720
-
3721
- declare interface IStickerSelectorProps {
3722
- triggerNode: React.ReactNode;
3723
- onStickerSend: (sticker: IStickerData) => void;
3724
- gridConfig: Omit<Partial<IStickerSelectorGridProps>, 'stickers' | 'onStickerClick'>;
3725
- tooltipConfig: Omit<Partial<IArrowTooltipProps>, 'children' | 'tooltipItem' | 'hidden' | 'alwaysVisible'>;
3726
- visible: boolean;
3727
- onToggle: () => void;
3728
- }
3729
-
3730
- declare interface IStickersProps {
3731
- stickerId: IStickerData['id'];
3732
- effect: TStickerEffects;
3733
- count: number;
3734
- duration: number;
3700
+ onStickerClick?: (sticker: IStickerData) => void;
3735
3701
  }
3736
3702
 
3737
3703
  declare interface IStreakIconProps extends React.HTMLProps<HTMLDivElement> {
@@ -3762,13 +3728,6 @@ declare interface IStudentProfileHighlightsProps {
3762
3728
  profileHighlights: TProfileHighlight[];
3763
3729
  }
3764
3730
 
3765
- declare interface IStudentProfileSummary {
3766
- studentLevel: string;
3767
- studentObjectives: string[] | string;
3768
- learningPlan: string[] | string;
3769
- levelPreference?: string;
3770
- }
3771
-
3772
3731
  declare interface IStudentSchool {
3773
3732
  place_id: string;
3774
3733
  country_code: string;
@@ -4190,10 +4149,6 @@ declare interface IUpdateImages {
4190
4149
  newImages: IFile[];
4191
4150
  }
4192
4151
 
4193
- export declare interface IUpdateUsernameResponse {
4194
- username: string;
4195
- }
4196
-
4197
4152
  export declare interface IUpdateUserPayloadDal {
4198
4153
  username: string;
4199
4154
  grade: string;
@@ -4717,7 +4672,6 @@ export declare enum JOURNEY_ID_STUDENT {
4717
4672
  CIRCLE_TABLES_INTRO_JOURNEY = "CIRCLE_TABLES_INTRO_JOURNEY",
4718
4673
  CIRCLE_TABLES_INFINTE_JOURNEY = "CIRCLE_TABLES_INFINITE_JOURNEY",
4719
4674
  CIRCLE_LESSONS_K_1_INTRO_JOURNEY = "CIRCLE_LESSONS_K_1_INTRO_JOURNEY",
4720
- PLA_SWITCH_USER_JOURNEY = "PLA_SWITCH_USER_JOURNEY",
4721
4675
  HOMEPAGE_JOURNEY = "HOMEPAGE_JOURNEY",
4722
4676
  CHAPTER_PAGE_JOURNEY = "CHAPTER_PAGE_JOURNEY",
4723
4677
  PUZZLE_ATTEMPT_JOURNEY = "PUZZLE_ATTEMPT_JOURNEY",
@@ -4741,6 +4695,15 @@ export declare const JourneyProvider: FC<IJourneyProviderProps>;
4741
4695
 
4742
4696
  export declare const Leaderboard: ({ leaderboardData, type, userId, onClose, isLoading, streakInfo, }: ILeaderboardProps) => JSX.Element;
4743
4697
 
4698
+ export declare const LEARNING_PREFERENCE_CATEGORY: {
4699
+ readonly LEVEL: "Level";
4700
+ readonly FOCUS: "Focus";
4701
+ readonly BEHAVIOR: "Behaviors";
4702
+ readonly OBJECTIVES: "Objectives";
4703
+ readonly POSITION: "Position";
4704
+ readonly COURSE: "Course";
4705
+ };
4706
+
4744
4707
  export declare const LearnosityPreloader: FC<PropsWithChildren<ILearnosityPreloaderProps>>;
4745
4708
 
4746
4709
  export declare const LeftIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
@@ -5168,14 +5131,9 @@ export declare enum PLA_ANALYTICS_EVENTS {
5168
5131
  SIGNUP_OTP_FAILED = "signup_otp_failed",
5169
5132
  SLOTS_SHOWN = "slots_shown",
5170
5133
  SLOT_DATE_SELECTED = "slot_date_selected",
5171
- SLOT_TIME_SELECTED = "slot_time_selected",
5172
- TUTOR_CHANGE_REASON_SELECTED = "tutor_change_reason_selected"
5134
+ SLOT_TIME_SELECTED = "slot_time_selected"
5173
5135
  }
5174
5136
 
5175
- export declare const PlaFirstSessionIntroduction: NamedExoticComponent<IFirstSessionIntroductionProps>;
5176
-
5177
- export declare const PLAHelpAndSupportModal: MemoExoticComponent<({}: {}) => JSX.Element>;
5178
-
5179
5137
  /**
5180
5138
  ** Global/Platform specific events that needs to be tracked goes here
5181
5139
  ** Naming convention needs to be snake_case
@@ -5228,15 +5186,6 @@ export declare const PostGameStats: NamedExoticComponent<IPostGameStatsProps & R
5228
5186
 
5229
5187
  export declare const PracticeIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5230
5188
 
5231
- declare const PREFERENCE_CATEGORY: {
5232
- readonly LEVEL: "Level";
5233
- readonly FOCUS: "Focus";
5234
- readonly BEHAVIOR: "Behaviors";
5235
- readonly OBJECTIVES: "Objectives";
5236
- readonly POSITION: "Position";
5237
- readonly COURSE: "Course";
5238
- };
5239
-
5240
5189
  export declare const PreviewWorksheet: FC<IPreviewWorksheetProps>;
5241
5190
 
5242
5191
  export declare const ProgressIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -5403,18 +5352,6 @@ export declare const SessionStatus: MemoExoticComponent<({ completedSessions, ne
5403
5352
 
5404
5353
  export declare const SessionSummary: MemoExoticComponent<({ isDemoDone, studentName, onViewSummary }: ISessionSummaryProps) => JSX.Element>;
5405
5354
 
5406
- declare type SharedProps = {
5407
- width?: string | number;
5408
- height?: string | number;
5409
- settings?: Partial<LottieSettings>;
5410
- eventListeners?: {
5411
- name: EventType;
5412
- callback: EventListener_2<EventType>;
5413
- }[];
5414
- onRender?: () => void;
5415
- onError?: () => void;
5416
- };
5417
-
5418
5355
  export declare const SHEET_ACTIONS: {
5419
5356
  readonly START: "START";
5420
5357
  readonly RESUME: "RESUME";
@@ -5458,7 +5395,7 @@ export declare const SheetLocked: MemoExoticComponent<({ onHomeClick }: {
5458
5395
  onHomeClick: () => void;
5459
5396
  }) => JSX.Element>;
5460
5397
 
5461
- export declare const SignUp: ({ mathGymEnrolledUser, circleEnrolledUser, circleOnLeapPremiumDays, circleUsername, countryCode, grade: defaultGrade, state, circleOnLeapPremiumEnabled, studentId, isSignUpProcessing, onCreateUser, onUpdateUser, onSignupStepsComplete, isPLAStudent, }: ISignUpProps) => JSX.Element;
5398
+ export declare const SignUp: ({ mathGymEnrolledUser, circleEnrolledUser, circleOnLeapPremiumDays, circleUsername, countryCode, grade: defaultGrade, state, circleOnLeapPremiumEnabled, studentId, isSignUpProcessing, onCreateUser, onUpdateUser, onSignupStepsComplete, }: ISignUpProps) => JSX.Element;
5462
5399
 
5463
5400
  export declare const SignupHeader: () => JSX.Element;
5464
5401
 
@@ -5466,8 +5403,6 @@ export declare const SignupMethods: NamedExoticComponent<ISignupMethodsProps>;
5466
5403
 
5467
5404
  export declare const SignupOptions: NamedExoticComponent<ISignupOptionsProps>;
5468
5405
 
5469
- export declare const SignupUnavailable: NamedExoticComponent<ISignupUnavailableProps>;
5470
-
5471
5406
  declare const SketchIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5472
5407
  export { SketchIcon as ScribbleIcon }
5473
5408
  export { SketchIcon }
@@ -5523,6 +5458,8 @@ declare const STICKER_BADGE: {
5523
5458
  AWESOME: string;
5524
5459
  };
5525
5460
 
5461
+ declare type StickerEffect = 'burst_from_edges' | 'pop_expand' | 'float_up' | 'fall_down';
5462
+
5526
5463
  declare interface StickerElement {
5527
5464
  badge_id?: string;
5528
5465
  name?: string;
@@ -5532,9 +5469,16 @@ export declare const StickerFilledIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5532
5469
 
5533
5470
  export declare const StickerIcon: React.FC<React.SVGProps<SVGSVGElement>>;
5534
5471
 
5535
- export declare const StickersEffects: React_2.NamedExoticComponent<IStickersProps>;
5472
+ export declare const Stickers: React_2.NamedExoticComponent<StickersProps>;
5473
+
5474
+ declare interface StickersProps {
5475
+ stickers: string[];
5476
+ effect: StickerEffect;
5477
+ count: number;
5478
+ duration: number;
5479
+ }
5536
5480
 
5537
- export declare const StickerSelector: NamedExoticComponent<IStickerSelectorProps>;
5481
+ export declare const StickersSelector: React_2.NamedExoticComponent<IStickerGridProps>;
5538
5482
 
5539
5483
  export declare const StreakIcon: React_2.FC<IStreakIconProps>;
5540
5484
 
@@ -5580,14 +5524,8 @@ declare interface StudentBadgeListProps {
5580
5524
 
5581
5525
  export declare const StudentDetails: FC<IStudentDetailsProps>;
5582
5526
 
5583
- export declare const StudentLoginInfoModal: MemoExoticComponent<() => JSX.Element>;
5584
-
5585
5527
  export declare const StudentProfileHighlights: FC<IStudentProfileHighlightsProps>;
5586
5528
 
5587
- export declare const StudentProfileSummaryModal: MemoExoticComponent<() => JSX.Element>;
5588
-
5589
- export declare const StudentTrialReportModal: MemoExoticComponent<() => JSX.Element>;
5590
-
5591
5529
  export declare const SubmitMilestoneModal: React.FC<ISubmitModalProps>;
5592
5530
 
5593
5531
  export declare const SwitchIcon: React.FC<React.SVGProps<SVGSVGElement>>;
@@ -6459,7 +6397,7 @@ declare type TPreference = {
6459
6397
  selectedTime: string;
6460
6398
  };
6461
6399
 
6462
- declare type TPreferenceCategory = (typeof PREFERENCE_CATEGORY)[keyof typeof PREFERENCE_CATEGORY];
6400
+ declare type TPreferenceCategory = (typeof LEARNING_PREFERENCE_CATEGORY)[keyof typeof LEARNING_PREFERENCE_CATEGORY];
6463
6401
 
6464
6402
  declare type TProfileHighlight = {
6465
6403
  illustration: string;
@@ -6678,8 +6616,6 @@ declare type TStickerData = {
6678
6616
  user_type: string;
6679
6617
  };
6680
6618
 
6681
- declare type TStickerEffects = 'burst-from-edges' | 'pop-expand' | 'float-up' | 'fall-down';
6682
-
6683
6619
  export declare type TStreakStatus = 'pending' | 'completed';
6684
6620
 
6685
6621
  declare type TStyleAttrubutes = NonNullable<HTMLAttributes<HTMLDivElement>['style']>;
@@ -6771,8 +6707,6 @@ declare type TUserProgram = {
6771
6707
 
6772
6708
  export declare type TUserTypes = 'TEACHER' | 'STUDENT';
6773
6709
 
6774
- export declare const TutorChangeModal: MemoExoticComponent<() => JSX.Element>;
6775
-
6776
6710
  export declare const Tutorial: ({ src, title, onCross, showProgress, onTutorialPlayedOnce, isJourneyActive, }: ITutorialProps) => JSX.Element;
6777
6711
 
6778
6712
  export declare const TutoringIcon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
@@ -6831,9 +6765,9 @@ export declare const useChapterPageJourney: () => {
6831
6765
 
6832
6766
  export declare const useCircleSounds: () => {
6833
6767
  playSwipeSound: () => void;
6834
- play: (key: CircleSoundKey, immediately?: boolean, loop?: boolean) => HTMLAudioElement | undefined;
6835
- stop: (key: CircleSoundKey, immediately?: boolean) => void;
6836
- playButtonSound: () => HTMLAudioElement | undefined;
6768
+ play: (key: CircleSoundKey, immediately?: boolean, loop?: boolean) => Promise<void>;
6769
+ stop: (key: CircleSoundKey, immediately?: boolean) => Promise<void>;
6770
+ playButtonSound: () => void;
6837
6771
  };
6838
6772
 
6839
6773
  export declare const useClassTimeAlerts: ({ alertLevel, classStartedOn, classDuration, onUpdateClassTimeAlertConfig, }: IUseClassTimeAlerts) => {
@@ -7002,8 +6936,6 @@ export declare const useModalActions: IUseModalActions;
7002
6936
 
7003
6937
  export declare const useModalParams: IUseModalParams;
7004
6938
 
7005
- export declare const usePLASwitchUserJourney: () => (userAvatarRef: RefObject<HTMLDivElement>, avatar?: IAvatarLayer[] | null) => void;
7006
-
7007
6939
  export declare const usePointerSync: ({ userType, targetUserId, }: IusePointerSyncProps) => IusePointerSyncMethods;
7008
6940
 
7009
6941
  export declare const usePuzzleAttemptJourney: () => {
@@ -7011,7 +6943,10 @@ export declare const usePuzzleAttemptJourney: () => {
7011
6943
  startJourney: () => void;
7012
6944
  };
7013
6945
 
7014
- export declare const usePuzzleDashboardJourney: () => (puzzleProfileRef: RefObject<HTMLDivElement>, avatar: IAvatarLayer[]) => void;
6946
+ export declare const usePuzzleDashboardJourney: () => {
6947
+ puzzleProfileRef: RefObject<HTMLDivElement>;
6948
+ startJourney: (avatar: IAvatarLayer[]) => void;
6949
+ };
7015
6950
 
7016
6951
  export declare const usePuzzleIntroJourney: ({ onJourneyComplete }: IUsePuzzleIntroJourney) => {
7017
6952
  puzzleIconRef: RefObject<HTMLDivElement>;
@@ -7117,18 +7052,6 @@ declare interface WinsTabHeaderProps {
7117
7052
  widthOffset?: number;
7118
7053
  }
7119
7054
 
7120
- declare type WithData = {
7121
- data: Data;
7122
- };
7123
-
7124
- declare type Without<T, K extends keyof any> = {
7125
- [P in Exclude<keyof T, K>]?: never;
7126
- };
7127
-
7128
- declare type WithSrc = {
7129
- src: string;
7130
- };
7131
-
7132
7055
  export declare const Worksheet: NamedExoticComponent<IWorksheetContainerProps & RefAttributes<IWorksheetRef>>;
7133
7056
 
7134
7057
  export declare const WORKSHEET_ACTION_BAR_HEIGHT = 56;
@@ -7141,8 +7064,6 @@ export declare const WORKSHEET_TOP_NAVIGATION_HEIGHT = 48;
7141
7064
 
7142
7065
  export declare const WORKSHEET_V3_NODE_TYPES: TNodeTypeProps[];
7143
7066
 
7144
- declare type XOR<T, U> = (T & Without<U, keyof T>) | (U & Without<T, keyof U>);
7145
-
7146
7067
  declare const ZINDEX: {
7147
7068
  readonly CHAPTER_CROWN_ICON: 4;
7148
7069
  readonly CHAPTER_PLUS_ICON: 2;