@cuemath/leap 4.0.4 → 4.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/features/utils/get-rgba-from-hex.js +18 -0
- package/dist/features/utils/get-rgba-from-hex.js.map +1 -0
- package/dist/features/worksheet/worksheet/worksheet-question/question-backdrop/question-backdrop.js +43 -31
- package/dist/features/worksheet/worksheet/worksheet-question/question-backdrop/question-backdrop.js.map +1 -1
- package/dist/index.d.ts +35 -0
- package/dist/index.js +92 -90
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const b = (n, t = 1) => {
|
|
2
|
+
if (t < 0 || t > 1)
|
|
3
|
+
throw new Error(`Invalid alpha value: ${t}. Alpha must be between 0 and 1.`);
|
|
4
|
+
const e = n.trim().replace(/^#/, "");
|
|
5
|
+
if (!/^[\da-f]{3}$|^[\da-f]{6}$/i.test(e))
|
|
6
|
+
throw new Error(
|
|
7
|
+
`Invalid hex color format: ${n}. Expected format: #RGB or #RRGGBB (e.g., #F57 or #FF5733)`
|
|
8
|
+
);
|
|
9
|
+
const r = e.length === 3 ? e.split("").map((i) => i + i).join("") : e, o = parseInt(r.slice(0, 2), 16), s = parseInt(r.slice(2, 4), 16), c = parseInt(r.slice(4, 6), 16), a = { r: o, g: s, b: c, a: t };
|
|
10
|
+
return {
|
|
11
|
+
string: `rgba(${o}, ${s}, ${c}, ${t})`,
|
|
12
|
+
object: a
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export {
|
|
16
|
+
b as getRGBAFromHex
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=get-rgba-from-hex.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-rgba-from-hex.js","sources":["../../../src/features/utils/get-rgba-from-hex.ts"],"sourcesContent":["/**\n * RGBA object representation with red, green, blue, and alpha channels\n */\nexport interface IRgbaObject {\n r: number;\n g: number;\n b: number;\n a: number;\n}\n\n/**\n * Result object containing both string and object representations of RGBA color\n */\nexport interface IRgbaResult {\n string: string;\n object: IRgbaObject;\n}\n\n/**\n * Converts a hex color string to RGBA format in both string and object representations\n *\n * @param color - Hex color string (e.g., '#FF5733' or '#F57')\n * @param alpha - Alpha value between 0 and 1 (default: 1 for fully opaque)\n * @returns Object containing both string ('rgba(255, 87, 51, 1)') and object ({ r: 255, g: 87, b: 51, a: 1 }) formats\n * @throws Error if hex color format is invalid or alpha is out of range\n *\n * @example\n * ```typescript\n * const result = getRGBAFromHex('#FF5733', 0.5);\n * // result.string: 'rgba(255, 87, 51, 0.5)'\n * // result.object: { r: 255, g: 87, b: 51, a: 0.5 }\n * ```\n */\nexport const getRGBAFromHex = (color: string, alpha = 1): IRgbaResult => {\n // Validate alpha range\n if (alpha < 0 || alpha > 1) {\n throw new Error(`Invalid alpha value: ${alpha}. Alpha must be between 0 and 1.`);\n }\n\n // Remove # if present and trim whitespace\n const hex = color.trim().replace(/^#/, '');\n\n // Validate hex format (3 or 6 characters)\n if (!/^[\\da-f]{3}$|^[\\da-f]{6}$/i.test(hex)) {\n throw new Error(\n `Invalid hex color format: ${color}. Expected format: #RGB or #RRGGBB (e.g., #F57 or #FF5733)`,\n );\n }\n\n // Convert 3-char hex to 6-char hex (e.g., F57 -> FF5577)\n const fullHex =\n hex.length === 3\n ? hex\n .split('')\n .map(char => char + char)\n .join('')\n : hex;\n\n // Parse RGB values\n const r = parseInt(fullHex.slice(0, 2), 16);\n const g = parseInt(fullHex.slice(2, 4), 16);\n const b = parseInt(fullHex.slice(4, 6), 16);\n\n // Create RGBA object\n const rgbaObject: IRgbaObject = { r, g, b, a: alpha };\n\n // Create RGBA string\n const rgbaString = `rgba(${r}, ${g}, ${b}, ${alpha})`;\n\n return {\n string: rgbaString,\n object: rgbaObject,\n };\n};\n"],"names":["getRGBAFromHex","color","alpha","hex","fullHex","char","r","g","b","rgbaObject"],"mappings":"AAiCO,MAAMA,IAAiB,CAACC,GAAeC,IAAQ,MAAmB;AAEnE,MAAAA,IAAQ,KAAKA,IAAQ;AACvB,UAAM,IAAI,MAAM,wBAAwBA,CAAK,kCAAkC;AAIjF,QAAMC,IAAMF,EAAM,KAAA,EAAO,QAAQ,MAAM,EAAE;AAGzC,MAAI,CAAC,6BAA6B,KAAKE,CAAG;AACxC,UAAM,IAAI;AAAA,MACR,6BAA6BF,CAAK;AAAA,IAAA;AAKtC,QAAMG,IACJD,EAAI,WAAW,IACXA,EACG,MAAM,EAAE,EACR,IAAI,OAAQE,IAAOA,CAAI,EACvB,KAAK,EAAE,IACVF,GAGAG,IAAI,SAASF,EAAQ,MAAM,GAAG,CAAC,GAAG,EAAE,GACpCG,IAAI,SAASH,EAAQ,MAAM,GAAG,CAAC,GAAG,EAAE,GACpCI,IAAI,SAASJ,EAAQ,MAAM,GAAG,CAAC,GAAG,EAAE,GAGpCK,IAA0B,EAAE,GAAAH,GAAG,GAAAC,GAAG,GAAAC,GAAG,GAAGN;AAKvC,SAAA;AAAA,IACL,QAHiB,QAAQI,CAAC,KAAKC,CAAC,KAAKC,CAAC,KAAKN,CAAK;AAAA,IAIhD,QAAQO;AAAA,EAAA;AAEZ;"}
|
package/dist/features/worksheet/worksheet/worksheet-question/question-backdrop/question-backdrop.js
CHANGED
|
@@ -1,43 +1,55 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { memo as
|
|
3
|
-
import { AbsoluteFill as
|
|
4
|
-
import { ILLUSTRATIONS as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
1
|
+
import { jsx as l, Fragment as E, jsxs as _ } from "react/jsx-runtime";
|
|
2
|
+
import { memo as A } from "react";
|
|
3
|
+
import { AbsoluteFill as i, AbsolutePattern as T, ChildrenWrapper as g } from "./question-backdrop-styled.js";
|
|
4
|
+
import { ILLUSTRATIONS as o } from "../../../../../assets/illustrations/illustrations.js";
|
|
5
|
+
import { getRGBAFromHex as p } from "../../../../utils/get-rgba-from-hex.js";
|
|
6
|
+
import P from "../../../../ui/theme/clrs.js";
|
|
7
|
+
const c = {
|
|
8
|
+
blue: o.PATTERN_DIAMOND,
|
|
9
|
+
yellow: o.PATTERN_CUBES,
|
|
10
|
+
purple: o.PATTERN_HONEYCOMB,
|
|
11
|
+
orange: o.PATTERN_HONEYCOMB,
|
|
12
|
+
green: o.PATTERN_DIAMOND,
|
|
13
|
+
white: o.PATTERN_DIAMOND
|
|
14
|
+
}, m = {
|
|
15
|
+
blue: "BLUE_2",
|
|
16
|
+
yellow: "YELLOW_2",
|
|
17
|
+
purple: "PURPLE_2",
|
|
18
|
+
orange: "ORANGE_2",
|
|
19
|
+
green: "GREEN_2",
|
|
20
|
+
white: "BLUE_2"
|
|
21
|
+
}, t = (s) => {
|
|
22
|
+
const e = P(), n = m[s], r = e[n], { string: a } = p(r, 0.5);
|
|
23
|
+
return `linear-gradient(270deg, ${a} 0%, ${r} 25%, ${r} 75%, ${a} 100%)`;
|
|
24
|
+
}, u = {
|
|
25
|
+
blue: t("blue"),
|
|
26
|
+
yellow: t("yellow"),
|
|
27
|
+
purple: t("purple"),
|
|
28
|
+
orange: t("orange"),
|
|
29
|
+
green: t("green"),
|
|
30
|
+
white: t("white")
|
|
31
|
+
}, C = A(
|
|
32
|
+
function({ paperColor: e, patternStrokeNumber: n = 1, children: r }) {
|
|
33
|
+
return /* @__PURE__ */ l(E, { children: /* @__PURE__ */ _(i, { $backgroundColor: `${e.toUpperCase()}_3`, children: [
|
|
34
|
+
/* @__PURE__ */ l(
|
|
35
|
+
T,
|
|
24
36
|
{
|
|
25
|
-
$backgroundColor: `${
|
|
26
|
-
$patternImage:
|
|
37
|
+
$backgroundColor: `${e.toUpperCase()}_${n}`,
|
|
38
|
+
$patternImage: c[e]
|
|
27
39
|
}
|
|
28
40
|
),
|
|
29
|
-
|
|
30
|
-
|
|
41
|
+
r && /* @__PURE__ */ l(
|
|
42
|
+
g,
|
|
31
43
|
{
|
|
32
|
-
$borderColor: `${
|
|
33
|
-
$gradient:
|
|
34
|
-
children:
|
|
44
|
+
$borderColor: `${e.toUpperCase()}_1`,
|
|
45
|
+
$gradient: u[e],
|
|
46
|
+
children: r
|
|
35
47
|
}
|
|
36
48
|
)
|
|
37
49
|
] }) });
|
|
38
50
|
}
|
|
39
51
|
);
|
|
40
52
|
export {
|
|
41
|
-
|
|
53
|
+
C as default
|
|
42
54
|
};
|
|
43
55
|
//# sourceMappingURL=question-backdrop.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"question-backdrop.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-question/question-backdrop/question-backdrop.tsx"],"sourcesContent":["import { memo, type FC, type PropsWithChildren } from 'react';\n\nimport type { TWorksheetQuestionPaperColor } from '../worksheet-question-types';\nimport * as Styled from './question-backdrop-styled';\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport { type TColorNames } from '../../../../ui/types';\n\ninterface IQuestionBackdropProps {\n paperColor: TWorksheetQuestionPaperColor;\n patternStrokeNumber?: number;\n}\n\nconst PATTERN_PAPER_MAP: Record<TWorksheetQuestionPaperColor, string> = {\n blue: ILLUSTRATIONS.PATTERN_DIAMOND,\n yellow: ILLUSTRATIONS.PATTERN_CUBES,\n purple: ILLUSTRATIONS.PATTERN_HONEYCOMB,\n orange: ILLUSTRATIONS.PATTERN_HONEYCOMB,\n green: ILLUSTRATIONS.PATTERN_DIAMOND,\n white: ILLUSTRATIONS.PATTERN_DIAMOND,\n};\n\nconst
|
|
1
|
+
{"version":3,"file":"question-backdrop.js","sources":["../../../../../../src/features/worksheet/worksheet/worksheet-question/question-backdrop/question-backdrop.tsx"],"sourcesContent":["import { memo, type FC, type PropsWithChildren } from 'react';\n\nimport type { TWorksheetQuestionPaperColor } from '../worksheet-question-types';\nimport * as Styled from './question-backdrop-styled';\nimport { ILLUSTRATIONS } from '../../../../../assets/illustrations/illustrations';\nimport { type TColorNames } from '../../../../ui/types';\nimport { getRGBAFromHex } from '../../../../utils/get-rgba-from-hex';\nimport getColors from '../../../../ui/theme/clrs';\n\ninterface IQuestionBackdropProps {\n paperColor: TWorksheetQuestionPaperColor;\n patternStrokeNumber?: number;\n}\n\nconst PATTERN_PAPER_MAP: Record<TWorksheetQuestionPaperColor, string> = {\n blue: ILLUSTRATIONS.PATTERN_DIAMOND,\n yellow: ILLUSTRATIONS.PATTERN_CUBES,\n purple: ILLUSTRATIONS.PATTERN_HONEYCOMB,\n orange: ILLUSTRATIONS.PATTERN_HONEYCOMB,\n green: ILLUSTRATIONS.PATTERN_DIAMOND,\n white: ILLUSTRATIONS.PATTERN_DIAMOND,\n};\n\n/**\n * Maps paper color to corresponding theme color name\n */\nconst PAPER_COLOR_TO_THEME_MAP: Record<TWorksheetQuestionPaperColor, TColorNames> = {\n blue: 'BLUE_2',\n yellow: 'YELLOW_2',\n purple: 'PURPLE_2',\n orange: 'ORANGE_2',\n green: 'GREEN_2',\n white: 'BLUE_2',\n};\n\n/**\n * Creates a gradient string using theme colors and getRGBAFromHex utility\n */\nconst createGradient = (paperColor: TWorksheetQuestionPaperColor): string => {\n const colors = getColors();\n const colorName = PAPER_COLOR_TO_THEME_MAP[paperColor];\n const hexColor = colors[colorName];\n\n const { string: rgbaTransparent } = getRGBAFromHex(hexColor, 0.5);\n\n return `linear-gradient(270deg, ${rgbaTransparent} 0%, ${hexColor} 25%, ${hexColor} 75%, ${rgbaTransparent} 100%)`;\n};\n\nconst GRADIENT_PAPER_MAP: Record<TWorksheetQuestionPaperColor, string> = {\n blue: createGradient('blue'),\n yellow: createGradient('yellow'),\n purple: createGradient('purple'),\n orange: createGradient('orange'),\n green: createGradient('green'),\n white: createGradient('white'),\n};\n\nconst QuestionBackdrop: FC<PropsWithChildren<IQuestionBackdropProps>> = memo(\n function QuestionBackdrop({ paperColor, patternStrokeNumber = 1, children }) {\n return (\n <>\n <Styled.AbsoluteFill $backgroundColor={`${paperColor.toUpperCase()}_3`}>\n <Styled.AbsolutePattern\n $backgroundColor={`${paperColor.toUpperCase()}_${patternStrokeNumber}` as TColorNames}\n $patternImage={PATTERN_PAPER_MAP[paperColor]}\n />\n {children && (\n <Styled.ChildrenWrapper\n $borderColor={`${paperColor.toUpperCase()}_1` as TColorNames}\n $gradient={GRADIENT_PAPER_MAP[paperColor]}\n >\n {children}\n </Styled.ChildrenWrapper>\n )}\n </Styled.AbsoluteFill>\n </>\n );\n },\n);\n\nexport default QuestionBackdrop;\n"],"names":["PATTERN_PAPER_MAP","ILLUSTRATIONS","PAPER_COLOR_TO_THEME_MAP","createGradient","paperColor","colors","getColors","colorName","hexColor","rgbaTransparent","getRGBAFromHex","GRADIENT_PAPER_MAP","QuestionBackdrop","memo","patternStrokeNumber","children","jsx","Fragment","jsxs","Styled.AbsoluteFill","Styled.AbsolutePattern","Styled.ChildrenWrapper"],"mappings":";;;;;;AAcA,MAAMA,IAAkE;AAAA,EACtE,MAAMC,EAAc;AAAA,EACpB,QAAQA,EAAc;AAAA,EACtB,QAAQA,EAAc;AAAA,EACtB,QAAQA,EAAc;AAAA,EACtB,OAAOA,EAAc;AAAA,EACrB,OAAOA,EAAc;AACvB,GAKMC,IAA8E;AAAA,EAClF,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,OAAO;AAAA,EACP,OAAO;AACT,GAKMC,IAAiB,CAACC,MAAqD;AAC3E,QAAMC,IAASC,KACTC,IAAYL,EAAyBE,CAAU,GAC/CI,IAAWH,EAAOE,CAAS,GAE3B,EAAE,QAAQE,EAAA,IAAoBC,EAAeF,GAAU,GAAG;AAEhE,SAAO,2BAA2BC,CAAe,QAAQD,CAAQ,SAASA,CAAQ,SAASC,CAAe;AAC5G,GAEME,IAAmE;AAAA,EACvE,MAAMR,EAAe,MAAM;AAAA,EAC3B,QAAQA,EAAe,QAAQ;AAAA,EAC/B,QAAQA,EAAe,QAAQ;AAAA,EAC/B,QAAQA,EAAe,QAAQ;AAAA,EAC/B,OAAOA,EAAe,OAAO;AAAA,EAC7B,OAAOA,EAAe,OAAO;AAC/B,GAEMS,IAAkEC;AAAA,EACtE,SAA0B,EAAE,YAAAT,GAAY,qBAAAU,IAAsB,GAAG,UAAAC,KAAY;AAEzE,WAAA,gBAAAC,EAAAC,GAAA,EACE,UAAC,gBAAAC,EAAAC,GAAA,EAAoB,kBAAkB,GAAGf,EAAW,YAAa,CAAA,MAChE,UAAA;AAAA,MAAA,gBAAAY;AAAA,QAACI;AAAAA,QAAA;AAAA,UACC,kBAAkB,GAAGhB,EAAW,YAAY,CAAC,IAAIU,CAAmB;AAAA,UACpE,eAAed,EAAkBI,CAAU;AAAA,QAAA;AAAA,MAC7C;AAAA,MACCW,KACC,gBAAAC;AAAA,QAACK;AAAAA,QAAA;AAAA,UACC,cAAc,GAAGjB,EAAW,YAAA,CAAa;AAAA,UACzC,WAAWO,EAAmBP,CAAU;AAAA,UAEvC,UAAAW;AAAA,QAAA;AAAA,MACH;AAAA,IAAA,EAEJ,CAAA,EACF,CAAA;AAAA,EAEJ;AACF;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -823,6 +823,23 @@ declare const getMediaQueries: () => {
|
|
|
823
823
|
|
|
824
824
|
export declare const getPreferencesFromConfig: IGetPreferencesFromConfig;
|
|
825
825
|
|
|
826
|
+
/**
|
|
827
|
+
* Converts a hex color string to RGBA format in both string and object representations
|
|
828
|
+
*
|
|
829
|
+
* @param color - Hex color string (e.g., '#FF5733' or '#F57')
|
|
830
|
+
* @param alpha - Alpha value between 0 and 1 (default: 1 for fully opaque)
|
|
831
|
+
* @returns Object containing both string ('rgba(255, 87, 51, 1)') and object ({ r: 255, g: 87, b: 51, a: 1 }) formats
|
|
832
|
+
* @throws Error if hex color format is invalid or alpha is out of range
|
|
833
|
+
*
|
|
834
|
+
* @example
|
|
835
|
+
* ```typescript
|
|
836
|
+
* const result = getRGBAFromHex('#FF5733', 0.5);
|
|
837
|
+
* // result.string: 'rgba(255, 87, 51, 0.5)'
|
|
838
|
+
* // result.object: { r: 255, g: 87, b: 51, a: 0.5 }
|
|
839
|
+
* ```
|
|
840
|
+
*/
|
|
841
|
+
export declare const getRGBAFromHex: (color: string, alpha?: number) => IRgbaResult;
|
|
842
|
+
|
|
826
843
|
declare const getTabConfig: IGetTabConfig;
|
|
827
844
|
|
|
828
845
|
/* Excluded from this release type: getTabsConfig */
|
|
@@ -3918,6 +3935,24 @@ export declare interface IReviewWorksheetModel {
|
|
|
3918
3935
|
items?: TWorksheetItems[];
|
|
3919
3936
|
}
|
|
3920
3937
|
|
|
3938
|
+
/**
|
|
3939
|
+
* RGBA object representation with red, green, blue, and alpha channels
|
|
3940
|
+
*/
|
|
3941
|
+
declare interface IRgbaObject {
|
|
3942
|
+
r: number;
|
|
3943
|
+
g: number;
|
|
3944
|
+
b: number;
|
|
3945
|
+
a: number;
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
/**
|
|
3949
|
+
* Result object containing both string and object representations of RGBA color
|
|
3950
|
+
*/
|
|
3951
|
+
declare interface IRgbaResult {
|
|
3952
|
+
string: string;
|
|
3953
|
+
object: IRgbaObject;
|
|
3954
|
+
}
|
|
3955
|
+
|
|
3921
3956
|
declare interface ISATSheetItemCallbacks {
|
|
3922
3957
|
onSATReview?: (userBlockId: string) => void;
|
|
3923
3958
|
onSATUnlock?: (userNodeIds: string[]) => void;
|
package/dist/index.js
CHANGED
|
@@ -357,48 +357,49 @@ import { useHandleStickerSend as bx } from "./features/stickers/hooks/use-handle
|
|
|
357
357
|
import { useStickersJourney as Ux } from "./features/stickers/hooks/use-stickers-journey/use-stickers-journey.js";
|
|
358
358
|
import { default as zx } from "./features/student-details/student-details.js";
|
|
359
359
|
import { default as wx } from "./features/utils/load-script.js";
|
|
360
|
-
import {
|
|
361
|
-
import { default as Jx } from "./features/wins-dashboard/
|
|
362
|
-
import { default as Kx } from "./features/wins-dashboard/
|
|
363
|
-
import {
|
|
364
|
-
import {
|
|
365
|
-
import {
|
|
366
|
-
import {
|
|
367
|
-
import { default as un } from "./features/worksheet/worksheet
|
|
368
|
-
import { default as mn } from "./features/worksheet/worksheet-preview/
|
|
369
|
-
import { default as xn } from "./features/worksheet/worksheet/worksheet-
|
|
370
|
-
import { default as cn } from "./features/worksheet/worksheet/worksheet-permissions/
|
|
371
|
-
import { default as Sn } from "./features/worksheet/
|
|
372
|
-
import { default as En } from "./features/worksheet/learnosity-preloader/
|
|
373
|
-
import { default as An } from "./features/worksheet/
|
|
374
|
-
import { default as _n } from "./features/
|
|
375
|
-
import { default as Mn } from "./features/parent-dashboard/comps/
|
|
376
|
-
import { default as Dn } from "./features/parent-dashboard/comps/
|
|
377
|
-
import { default as Ln } from "./features/parent-dashboard/comps/
|
|
378
|
-
import { default as gn } from "./features/parent-dashboard/comps/
|
|
379
|
-
import { default as Hn } from "./features/parent-dashboard/comps/
|
|
380
|
-
import { default as Gn } from "./features/parent-dashboard/
|
|
381
|
-
import { default as vn } from "./features/parent-dashboard/modals/
|
|
382
|
-
import { default as Bn } from "./features/parent-dashboard/modals/cancellation-
|
|
383
|
-
import { default as Fn } from "./features/parent-dashboard/modals/
|
|
384
|
-
import { default as Wn } from "./features/parent-dashboard/modals/
|
|
385
|
-
import { default as Yn } from "./features/parent-dashboard/modals/student-
|
|
386
|
-
import { default as Qn } from "./features/parent-dashboard/modals/
|
|
387
|
-
import { default as jn } from "./features/parent-dashboard/modals/
|
|
388
|
-
import { default as qn } from "./features/parent-dashboard/modals/
|
|
389
|
-
import { default as $n } from "./features/parent-dashboard/
|
|
390
|
-
import {
|
|
391
|
-
import {
|
|
392
|
-
import {
|
|
393
|
-
import { default as ui } from "./features/parent-dashboard/hooks/use-parent-home
|
|
394
|
-
import {
|
|
395
|
-
import {
|
|
396
|
-
import { default as ii } from "./features/math-fit/math-fit/math-fit.js";
|
|
397
|
-
import { default as Ii } from "./features/math-fit/math-fit
|
|
398
|
-
import { default as Ti } from "./features/math-fit/math-fit-
|
|
399
|
-
import {
|
|
400
|
-
import {
|
|
401
|
-
import {
|
|
360
|
+
import { getRGBAFromHex as Vx } from "./features/utils/get-rgba-from-hex.js";
|
|
361
|
+
import { default as Jx } from "./features/wins-dashboard/belts-elements-stickers/belts-elements-stickers.js";
|
|
362
|
+
import { default as Kx } from "./features/wins-dashboard/student-badges/student-badges-lists.js";
|
|
363
|
+
import { default as Zx } from "./features/wins-dashboard/header/wins-header.js";
|
|
364
|
+
import { STUDENT_BADGE_STATUS as Xx, STUDENT_BADGE_TYPE as $x } from "./features/wins-dashboard/constants.js";
|
|
365
|
+
import { ACTION_BAR_HEIGHT as on, QUESTIONS_GAP as rn, QUESTION_WIDTH as tn, TOP_NAVIGATION_HEIGHT as an } from "./features/worksheet/worksheet/constants.js";
|
|
366
|
+
import { isOkayTypeQuestion as sn } from "./features/worksheet/worksheet/worksheet-helpers.js";
|
|
367
|
+
import { default as un } from "./features/worksheet/worksheet/worksheet.js";
|
|
368
|
+
import { default as mn } from "./features/worksheet/worksheet-preview/worksheet-preview.js";
|
|
369
|
+
import { default as xn } from "./features/worksheet/worksheet-preview/dynamic-worksheet-preview/dynamic-worksheet-preview.js";
|
|
370
|
+
import { default as cn } from "./features/worksheet/worksheet/worksheet-permissions/sheet-locked.js";
|
|
371
|
+
import { default as Sn } from "./features/worksheet/worksheet/worksheet-permissions/error.js";
|
|
372
|
+
import { default as En } from "./features/worksheet/learnosity-preloader/learnosity-preloader.js";
|
|
373
|
+
import { default as An } from "./features/worksheet/learnosity-preloader/use-is-learnosity-loaded.js";
|
|
374
|
+
import { default as _n } from "./features/worksheet/worksheet-preview/hooks/use-worksheet-layout.js";
|
|
375
|
+
import { default as Mn } from "./features/parent-dashboard/comps/compact-header/compact-header.js";
|
|
376
|
+
import { default as Dn } from "./features/parent-dashboard/comps/cuemath-app-features/cuemath-app-features.js";
|
|
377
|
+
import { default as Ln } from "./features/parent-dashboard/comps/math-practice/math-practice.js";
|
|
378
|
+
import { default as gn } from "./features/parent-dashboard/comps/parent-dashboard-faqs/parent-dashboard-faqs.js";
|
|
379
|
+
import { default as Hn } from "./features/parent-dashboard/comps/pla-first-session-introduction/pla-first-session-introduction.js";
|
|
380
|
+
import { default as Gn } from "./features/parent-dashboard/comps/subscription-initiation/subscription-initiation.js";
|
|
381
|
+
import { default as vn } from "./features/parent-dashboard/modals/cancel-subscription/cancel-subscription.js";
|
|
382
|
+
import { default as Bn } from "./features/parent-dashboard/modals/cancellation-confirmation/cancellation-confirmation.js";
|
|
383
|
+
import { default as Fn } from "./features/parent-dashboard/modals/cancellation-reason/cancellation-reason.js";
|
|
384
|
+
import { default as Wn } from "./features/parent-dashboard/modals/help-and-support/help-and-support.js";
|
|
385
|
+
import { default as Yn } from "./features/parent-dashboard/modals/student-login-info/student-login-info.js";
|
|
386
|
+
import { default as Qn } from "./features/parent-dashboard/modals/student-profile-summary/student-profile-summary.js";
|
|
387
|
+
import { default as jn } from "./features/parent-dashboard/modals/trial-report/trial-report.js";
|
|
388
|
+
import { default as qn } from "./features/parent-dashboard/modals/tutor-change/tutor-change.js";
|
|
389
|
+
import { default as $n } from "./features/parent-dashboard/modals/view-payment-method/view-payment-method.js";
|
|
390
|
+
import { default as oi } from "./features/parent-dashboard/parent-dashboard.js";
|
|
391
|
+
import { EPLAState as ti, ESummaryType as ai } from "./features/parent-dashboard/parent-dashboard-types.js";
|
|
392
|
+
import { usePLASwitchUserJourney as si } from "./features/parent-dashboard/hooks/use-switch-user-journey.js";
|
|
393
|
+
import { default as ui } from "./features/parent-dashboard/hooks/use-fetch-parent-home.js";
|
|
394
|
+
import { default as mi } from "./features/parent-dashboard/hooks/use-parent-home-data.js";
|
|
395
|
+
import { invalidateParentHome as xi } from "./features/parent-dashboard/api/parent-home.js";
|
|
396
|
+
import { default as ii } from "./features/math-fit/math-fit-card/math-fit-card.js";
|
|
397
|
+
import { default as Ii } from "./features/math-fit/math-fit/math-fit.js";
|
|
398
|
+
import { default as Ti } from "./features/math-fit/math-fit-overview/math-fit-overview.js";
|
|
399
|
+
import { default as Ci } from "./features/math-fit/math-fit-report/math-fit-report.js";
|
|
400
|
+
import { invalidateMathFitAssessment as Pi } from "./features/math-fit/api/get-mathfit-assessment.js";
|
|
401
|
+
import { EWorksheetActivity as hi, NODE_TYPES as Mi } from "./types/models/worksheet.js";
|
|
402
|
+
import { COUNTRY_CODE_MAP as Di } from "./constants/country.js";
|
|
402
403
|
export {
|
|
403
404
|
xd as ACHIEVEMENT_ACTIONS,
|
|
404
405
|
al as AUTH_TABS,
|
|
@@ -425,7 +426,7 @@ export {
|
|
|
425
426
|
C as BackIcon,
|
|
426
427
|
Ru as BackgroundImage,
|
|
427
428
|
ha as BaseInput,
|
|
428
|
-
|
|
429
|
+
Jx as BeltsElementsStickers,
|
|
429
430
|
P as Bin2Icon,
|
|
430
431
|
h as BinIcon,
|
|
431
432
|
R as Book2Icon,
|
|
@@ -438,13 +439,13 @@ export {
|
|
|
438
439
|
Tu as CIRCLE_ACTION_IDS,
|
|
439
440
|
Iu as CIRCLE_ONBOARDING_ANALYTICS_STEPS,
|
|
440
441
|
ix as COMPLETED_SHEET_STATE,
|
|
441
|
-
|
|
442
|
+
Di as COUNTRY_CODE_MAP,
|
|
442
443
|
cd as COURSE_STREAMS,
|
|
443
444
|
U as CalendarIcon,
|
|
444
445
|
ef as Callout,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
446
|
+
vn as CancelSubscriptionModal,
|
|
447
|
+
Bn as CancellationConfirmationModal,
|
|
448
|
+
Fn as CancellationReasonModal,
|
|
448
449
|
Vp as CardTitle,
|
|
449
450
|
Cf as Carousel,
|
|
450
451
|
Ra as CascadingSelectInput,
|
|
@@ -473,7 +474,7 @@ export {
|
|
|
473
474
|
se as CloseIcon,
|
|
474
475
|
xm as Coachmark,
|
|
475
476
|
ue as CodeIcon,
|
|
476
|
-
|
|
477
|
+
Mn as CompactHeader,
|
|
477
478
|
Vt as ContextMenu,
|
|
478
479
|
me as CopyIcon,
|
|
479
480
|
Kt as CountdownTextTimer,
|
|
@@ -488,7 +489,7 @@ export {
|
|
|
488
489
|
Zu as CueCanvasSideBar,
|
|
489
490
|
Te as CueCoinIcon,
|
|
490
491
|
Pe as CueRocket,
|
|
491
|
-
|
|
492
|
+
Dn as CuemathAppFeatures,
|
|
492
493
|
he as CuemathLogo,
|
|
493
494
|
Ce as Cursor2Icon,
|
|
494
495
|
ks as CustomInputField,
|
|
@@ -504,19 +505,19 @@ export {
|
|
|
504
505
|
Oe as DraftIcon,
|
|
505
506
|
ye as DragIcon,
|
|
506
507
|
hf as Drawer,
|
|
507
|
-
|
|
508
|
+
xn as DynamicPreviewWorksheet,
|
|
508
509
|
yl as ECardType,
|
|
509
510
|
up as EClassTimeAlertLevel,
|
|
510
511
|
df as EDeviceType,
|
|
511
512
|
Xl as ELeaderboardType,
|
|
512
|
-
|
|
513
|
+
ti as EPLAState,
|
|
513
514
|
md as EPResourceAssign,
|
|
514
515
|
zd as EPostGameStat,
|
|
515
516
|
mp as ESessionStatus,
|
|
516
|
-
|
|
517
|
+
ai as ESummaryType,
|
|
517
518
|
hp as ETAB_IDS,
|
|
518
519
|
vu as EVENTS,
|
|
519
|
-
|
|
520
|
+
hi as EWorksheetActivity,
|
|
520
521
|
be as Edit2Icon,
|
|
521
522
|
Ue as EditIcon,
|
|
522
523
|
Zm as EditMilestoneModal,
|
|
@@ -567,18 +568,18 @@ export {
|
|
|
567
568
|
Cl as LPARChapter,
|
|
568
569
|
Pl as LPARMilestoneChapter,
|
|
569
570
|
hu as Leaderboard,
|
|
570
|
-
|
|
571
|
+
En as LearnosityPreloader,
|
|
571
572
|
Ao as LeftIcon,
|
|
572
573
|
Uf as LinearProgressBar,
|
|
573
574
|
_o as Lock2Icon,
|
|
574
575
|
Mo as Lock3Icon,
|
|
575
576
|
Do as LockIcon,
|
|
576
577
|
Om as Maintenance,
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
578
|
+
Ii as MathFit,
|
|
579
|
+
ii as MathFitCard,
|
|
580
|
+
Ti as MathFitOverview,
|
|
581
|
+
Ci as MathFitReport,
|
|
582
|
+
Ln as MathPractice,
|
|
582
583
|
ad as MilestoneActionWidget,
|
|
583
584
|
zm as MilestoneCreate,
|
|
584
585
|
ed as MilestoneEdit,
|
|
@@ -599,7 +600,7 @@ export {
|
|
|
599
600
|
cx as NODE_LABELS,
|
|
600
601
|
Ix as NODE_SUB_GROUP,
|
|
601
602
|
Sx as NODE_TYPE,
|
|
602
|
-
|
|
603
|
+
Mi as NODE_TYPES,
|
|
603
604
|
yp as NewProgressIntroModal,
|
|
604
605
|
Fo as Next2Icon,
|
|
605
606
|
Wo as NextIcon,
|
|
@@ -610,21 +611,21 @@ export {
|
|
|
610
611
|
ms as OTPInput,
|
|
611
612
|
ys as OnboardingGuide,
|
|
612
613
|
as as OverlayLoader,
|
|
613
|
-
|
|
614
|
+
Wn as PLAHelpAndSupportModal,
|
|
614
615
|
Kf as PLATFORM_EVENTS_STUDENT,
|
|
615
616
|
Zf as PLATFORM_EVENTS_TEACHER,
|
|
616
617
|
ul as PLA_ANALYTICS_EVENTS,
|
|
617
618
|
Id as PREFERENCE_CATEGORY,
|
|
618
619
|
Op as PTMReport,
|
|
619
620
|
Tx as PYTHON_NODE_TYPES,
|
|
620
|
-
|
|
621
|
-
|
|
621
|
+
oi as ParentDashboard,
|
|
622
|
+
gn as ParentDashboardFaqs,
|
|
622
623
|
Yo as PauseIcon,
|
|
623
624
|
Qo as PencilIcon,
|
|
624
625
|
Na as PercentileInput,
|
|
625
626
|
kf as PerfectHits,
|
|
626
627
|
xs as PillButton,
|
|
627
|
-
|
|
628
|
+
Hn as PlaFirstSessionIntroduction,
|
|
628
629
|
jo as Play2Icon,
|
|
629
630
|
qo as PlayIcon,
|
|
630
631
|
xu as PlayerType,
|
|
@@ -633,7 +634,7 @@ export {
|
|
|
633
634
|
tr as PointerIcon,
|
|
634
635
|
wd as PostGameStats,
|
|
635
636
|
fr as PracticeIcon,
|
|
636
|
-
|
|
637
|
+
mn as PreviewWorksheet,
|
|
637
638
|
lr as ProgressIcon,
|
|
638
639
|
su as ProjectOutcome,
|
|
639
640
|
mu as ProjectType,
|
|
@@ -670,8 +671,8 @@ export {
|
|
|
670
671
|
Mx as SHEET_DATA_TYPE,
|
|
671
672
|
Rx as SHEET_STATE,
|
|
672
673
|
nd as STAGES,
|
|
673
|
-
|
|
674
|
-
|
|
674
|
+
Xx as STUDENT_BADGE_STATUS,
|
|
675
|
+
$x as STUDENT_BADGE_TYPE,
|
|
675
676
|
Mr as ScreenGrabFilledIcon,
|
|
676
677
|
Dr as ScreenGrabIcon,
|
|
677
678
|
Lr as ScribbleIcon,
|
|
@@ -682,10 +683,10 @@ export {
|
|
|
682
683
|
is as SelectableInfoCard,
|
|
683
684
|
Oa as SelectionCards,
|
|
684
685
|
Nf as Separator,
|
|
685
|
-
|
|
686
|
+
Sn as SheetError,
|
|
686
687
|
yr as SheetIcon,
|
|
687
688
|
mx as SheetList,
|
|
688
|
-
|
|
689
|
+
cn as SheetLocked,
|
|
689
690
|
gu as SignUp,
|
|
690
691
|
bs as SignupHeader,
|
|
691
692
|
Os as SignupMethods,
|
|
@@ -712,14 +713,14 @@ export {
|
|
|
712
713
|
Of as StreakIcon,
|
|
713
714
|
eu as StreakReductionLocalStorageUtil,
|
|
714
715
|
rt as StrikedEyeIcon,
|
|
715
|
-
|
|
716
|
+
Kx as StudentBadgeList,
|
|
716
717
|
zx as StudentDetails,
|
|
717
|
-
|
|
718
|
+
Yn as StudentLoginInfoModal,
|
|
718
719
|
sp as StudentProfileHighlights,
|
|
719
|
-
|
|
720
|
-
|
|
720
|
+
Qn as StudentProfileSummaryModal,
|
|
721
|
+
jn as StudentTrialReportModal,
|
|
721
722
|
ym as SubmitMilestoneModal,
|
|
722
|
-
|
|
723
|
+
Gn as SubscriptionInitiation,
|
|
723
724
|
wf as SwipeableCarousel,
|
|
724
725
|
zf as SwipeableComponent,
|
|
725
726
|
at as SwitchIcon,
|
|
@@ -740,7 +741,7 @@ export {
|
|
|
740
741
|
Pp as TimelineTabs,
|
|
741
742
|
rp as TrialSession,
|
|
742
743
|
mt as TrophyIcon,
|
|
743
|
-
|
|
744
|
+
qn as TutorChangeModal,
|
|
744
745
|
ru as Tutorial,
|
|
745
746
|
Ul as TutorialOnboardingModal,
|
|
746
747
|
it as TutoringIcon,
|
|
@@ -757,31 +758,32 @@ export {
|
|
|
757
758
|
Cs as UserTypeSelector,
|
|
758
759
|
Ks as UsernamePasswordForm,
|
|
759
760
|
Jf as Video,
|
|
760
|
-
|
|
761
|
+
$n as ViewPaymentMethodModal,
|
|
761
762
|
Xf as WHITELIST_EVENTS,
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
763
|
+
on as WORKSHEET_ACTION_BAR_HEIGHT,
|
|
764
|
+
rn as WORKSHEET_QUESTIONS_GAP,
|
|
765
|
+
tn as WORKSHEET_QUESTION_WIDTH,
|
|
766
|
+
an as WORKSHEET_TOP_NAVIGATION_HEIGHT,
|
|
766
767
|
au as WebView,
|
|
767
768
|
uu as WebViewEvent,
|
|
768
769
|
kt as WinsCommonIcon,
|
|
769
|
-
|
|
770
|
-
|
|
770
|
+
Zx as WinsHeader,
|
|
771
|
+
un as Worksheet,
|
|
771
772
|
Rl as checkIfPPTNodeType,
|
|
772
773
|
kl as getActiveSATSheet,
|
|
773
774
|
Od as getPreferencesFromConfig,
|
|
775
|
+
Vx as getRGBAFromHex,
|
|
774
776
|
nf as getTheme,
|
|
775
777
|
Ol as invalidateGetChapterDetails,
|
|
776
778
|
wp as invalidateHomeworks,
|
|
777
|
-
|
|
779
|
+
Pi as invalidateMathFitAssessment,
|
|
778
780
|
Dd as invalidateMilestoneResources,
|
|
779
781
|
Td as invalidateMilestonesData,
|
|
780
|
-
|
|
782
|
+
xi as invalidateParentHome,
|
|
781
783
|
Ad as invalidatePastMilestoneCount,
|
|
782
784
|
Xd as invalidatePuzzleToAssign,
|
|
783
785
|
hd as invalidateTestHelpData,
|
|
784
|
-
|
|
786
|
+
sn as isOkayTypeQuestion,
|
|
785
787
|
wx as loadScript,
|
|
786
788
|
Jp as useAutoPlayPermission,
|
|
787
789
|
Ku as useCanvasSyncBroker,
|
|
@@ -789,7 +791,7 @@ export {
|
|
|
789
791
|
Jl as useCircleSounds,
|
|
790
792
|
Ip as useClassTimeAlerts,
|
|
791
793
|
lf as useContextMenuClickHandler,
|
|
792
|
-
|
|
794
|
+
ui as useFetchParentHome,
|
|
793
795
|
yt as useForceReload,
|
|
794
796
|
Ed as useGetAllMilestonesdata,
|
|
795
797
|
Pu as useGetCircleHomeDetailsDal,
|
|
@@ -807,13 +809,13 @@ export {
|
|
|
807
809
|
Bu as useInClassActionDispatcher,
|
|
808
810
|
zu as useInClassActionListener,
|
|
809
811
|
Hu as useInClassMessageBroker,
|
|
810
|
-
|
|
812
|
+
An as useIsLearnosityLoaded,
|
|
811
813
|
xl as useIsTabBlocked,
|
|
812
814
|
rm as useJourney,
|
|
813
815
|
wa as useModalActions,
|
|
814
816
|
Va as useModalParams,
|
|
815
|
-
|
|
816
|
-
|
|
817
|
+
si as usePLASwitchUserJourney,
|
|
818
|
+
mi as useParentHomeData,
|
|
817
819
|
bd as usePointerSync,
|
|
818
820
|
Rm as usePuzzleAttemptJourney,
|
|
819
821
|
Tm as usePuzzleDashboardJourney,
|
|
@@ -829,7 +831,7 @@ export {
|
|
|
829
831
|
ff as useTrackingContext,
|
|
830
832
|
Gu as useTrialSessionMessageBroker,
|
|
831
833
|
tf as useUIContext,
|
|
832
|
-
|
|
834
|
+
_n as useWorksheetLayout,
|
|
833
835
|
Ot as useZoomDisable
|
|
834
836
|
};
|
|
835
837
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|