@cuemath/leap 3.1.46 → 3.1.48-aa0

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 (67) hide show
  1. package/dist/assets/illustrations/illustrations.js +3 -0
  2. package/dist/assets/illustrations/illustrations.js.map +1 -1
  3. package/dist/assets/lottie/lottie.js +19 -1
  4. package/dist/assets/lottie/lottie.js.map +1 -1
  5. package/dist/features/auth/forgot-password/forgot-password-styled.js +12 -12
  6. package/dist/features/auth/forgot-password/forgot-password-styled.js.map +1 -1
  7. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js +9 -9
  8. package/dist/features/auth/login/identifier-otp-form/identifier-otp-form-styled.js.map +1 -1
  9. package/dist/features/auth/login/login-styled.js +6 -6
  10. package/dist/features/auth/login/login-styled.js.map +1 -1
  11. package/dist/features/chapters/lpar-chapter/constants/index.js.map +1 -1
  12. package/dist/features/chapters-v2/utils/index.js +23 -11
  13. package/dist/features/chapters-v2/utils/index.js.map +1 -1
  14. package/dist/features/chapters-v2/utils/node-card-utils.js +50 -34
  15. package/dist/features/chapters-v2/utils/node-card-utils.js.map +1 -1
  16. package/dist/features/hooks/use-viewport/use-viewport.js +14 -13
  17. package/dist/features/hooks/use-viewport/use-viewport.js.map +1 -1
  18. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js +10 -0
  19. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration-styled.js.map +1 -0
  20. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js +44 -0
  21. package/dist/features/puzzles/puzzle-feedback-celebration/puzzle-feedback-celebration.js.map +1 -0
  22. package/dist/features/puzzles/utils/puzzle-feedback-celebration.js +44 -0
  23. package/dist/features/puzzles/utils/puzzle-feedback-celebration.js.map +1 -0
  24. package/dist/features/ui/theme/constants.js +11 -0
  25. package/dist/features/ui/theme/constants.js.map +1 -0
  26. package/dist/features/ui/theme/get-device.js +6 -0
  27. package/dist/features/ui/theme/get-device.js.map +1 -0
  28. package/dist/features/ui/theme/get-theme.js +25 -23
  29. package/dist/features/ui/theme/get-theme.js.map +1 -1
  30. package/dist/features/ui/theme/layout.js +6 -3
  31. package/dist/features/ui/theme/layout.js.map +1 -1
  32. package/dist/features/ui/theme/media-queries.js +11 -0
  33. package/dist/features/ui/theme/media-queries.js.map +1 -0
  34. package/dist/features/worksheet/worksheet/constants.js +12 -13
  35. package/dist/features/worksheet/worksheet/constants.js.map +1 -1
  36. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +227 -245
  37. package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
  38. package/dist/features/worksheet/worksheet/worksheet.js +163 -162
  39. package/dist/features/worksheet/worksheet/worksheet.js.map +1 -1
  40. package/dist/index.d.ts +46 -10
  41. package/dist/index.js +90 -90
  42. package/dist/static/activity.ca6afed5.json +417 -0
  43. package/dist/static/cent.3a07ef13.json +5576 -0
  44. package/dist/static/clap.aa0b824b.json +12684 -0
  45. package/dist/static/dart.60f73d0f.json +4207 -0
  46. package/dist/static/diamond.8c91431a.json +6716 -0
  47. package/dist/static/dice.eb192df8.json +16260 -0
  48. package/dist/static/download.475e7e15.json +1038 -0
  49. package/dist/static/golf.55585049.json +2832 -0
  50. package/dist/static/magicwand.75ac8f1b.json +3879 -0
  51. package/dist/static/mechanical-arm.7561628e.json +4428 -0
  52. package/dist/static/medal.782dab23.json +4134 -0
  53. package/dist/static/node-activity-bg.122f7e01.svg +1 -0
  54. package/dist/static/node-download-bg.b8367de7.svg +1 -0
  55. package/dist/static/node-subjective-bg.d6013a16.svg +1 -0
  56. package/dist/static/party-ball.e19caed6.json +11578 -0
  57. package/dist/static/party-popper.9f7992e8.json +6416 -0
  58. package/dist/static/slot-machine.ba8014dd.json +7779 -0
  59. package/dist/static/subjective.bc5f37fb.json +1177 -0
  60. package/dist/static/super.7fad19f6.json +3720 -0
  61. package/dist/static/trophy.a8ea85ef.json +6813 -0
  62. package/dist/static/victory.2ca41d92.json +9959 -0
  63. package/package.json +1 -1
  64. package/dist/features/ui/theme/device.js +0 -5
  65. package/dist/features/ui/theme/device.js.map +0 -1
  66. package/dist/features/utils/media.js +0 -16
  67. package/dist/features/utils/media.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cuemath/leap",
3
- "version": "3.1.46",
3
+ "version": "3.1.48-aa0",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist"
@@ -1,5 +0,0 @@
1
- const n = () => window.innerWidth <= 600 ? "mobile" : "desktop";
2
- export {
3
- n as getDeviceConfig
4
- };
5
- //# sourceMappingURL=device.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"device.js","sources":["../../../../src/features/ui/theme/device.ts"],"sourcesContent":["import type { TSupportedDevices } from '../types';\n\nexport const getDeviceConfig = (): TSupportedDevices => {\n const MOBILE_WIDTH = 600;\n\n return window.innerWidth <= MOBILE_WIDTH ? 'mobile' : 'desktop';\n};\n"],"names":["getDeviceConfig"],"mappings":"AAEO,MAAMA,IAAkB,MAGtB,OAAO,cAAc,MAAe,WAAW;"}
@@ -1,16 +0,0 @@
1
- const e = {
2
- mobile: 480,
3
- tablet: 760,
4
- desktop: 920,
5
- large: 1200,
6
- xl: 1424
7
- }, l = (r) => r < e.mobile || r >= e.mobile && r < e.tablet ? "mobile" : r >= e.tablet && r < e.desktop ? "tablet" : r >= e.desktop && r < e.large ? "desktop" : r >= e.large && r < e.xl ? "large" : (r >= e.xl, "xl"), t = {
8
- minDesktop: `@media (min-width: ${e.desktop}px)`,
9
- minLarge: `@media (min-width: ${e.large}px)`
10
- };
11
- export {
12
- e as BREAKPOINTS,
13
- l as getDeviceType,
14
- t as media
15
- };
16
- //# sourceMappingURL=media.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"media.js","sources":["../../../src/features/utils/media.ts"],"sourcesContent":["export const BREAKPOINTS = {\n mobile: 480,\n tablet: 760,\n desktop: 920,\n large: 1200,\n xl: 1424,\n};\nexport type TDeviceType = 'mobile' | 'tablet' | 'desktop' | 'large' | 'xl';\n\nexport const getDeviceType = (width: number): TDeviceType => {\n if (width < BREAKPOINTS.mobile) return 'mobile';\n\n if (width >= BREAKPOINTS.mobile && width < BREAKPOINTS.tablet) return 'mobile';\n\n if (width >= BREAKPOINTS.tablet && width < BREAKPOINTS.desktop) return 'tablet';\n\n if (width >= BREAKPOINTS.desktop && width < BREAKPOINTS.large) return 'desktop';\n\n if (width >= BREAKPOINTS.large && width < BREAKPOINTS.xl) return 'large';\n\n if (width >= BREAKPOINTS.xl) return 'xl';\n\n return 'xl';\n};\n\nexport const media = {\n minDesktop: `@media (min-width: ${BREAKPOINTS.desktop}px)`,\n minLarge: `@media (min-width: ${BREAKPOINTS.large}px)`,\n};\n"],"names":["BREAKPOINTS","getDeviceType","width","media"],"mappings":"AAAO,MAAMA,IAAc;AAAA,EACzB,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,OAAO;AAAA,EACP,IAAI;AACN,GAGaC,IAAgB,CAACC,MACxBA,IAAQF,EAAY,UAEpBE,KAASF,EAAY,UAAUE,IAAQF,EAAY,SAAe,WAElEE,KAASF,EAAY,UAAUE,IAAQF,EAAY,UAAgB,WAEnEE,KAASF,EAAY,WAAWE,IAAQF,EAAY,QAAc,YAElEE,KAASF,EAAY,SAASE,IAAQF,EAAY,KAAW,WAE7DE,KAASF,EAAY,IAAW,OAKzBG,IAAQ;AAAA,EACnB,YAAY,sBAAsBH,EAAY,OAAO;AAAA,EACrD,UAAU,sBAAsBA,EAAY,KAAK;AACnD;"}