@cuemath/leap 3.0.12 → 3.0.13-gs1
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/chapters-v2/comps/node-card/node-card-styled.js +68 -32
- package/dist/features/chapters-v2/comps/node-card/node-card-styled.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js +98 -95
- package/dist/features/chapters-v2/comps/node-card/student-actions/student-actions.js.map +1 -1
- package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js +124 -112
- package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -1
- package/dist/features/cue-canvas/cue-canvas-context.js +8 -5
- package/dist/features/cue-canvas/cue-canvas-context.js.map +1 -1
- package/dist/features/cue-canvas/cue-canvas-core.js +50 -75
- package/dist/features/cue-canvas/cue-canvas-core.js.map +1 -1
- package/dist/features/cue-canvas/cue-canvas-provider.js +16 -14
- package/dist/features/cue-canvas/cue-canvas-provider.js.map +1 -1
- package/dist/features/cue-canvas/cue-canvas.js +13 -13
- package/dist/features/cue-canvas/cue-canvas.js.map +1 -1
- package/dist/features/cue-canvas/cue-cavas-styled.js +8 -9
- package/dist/features/cue-canvas/cue-cavas-styled.js.map +1 -1
- package/dist/features/cue-canvas/hooks/use-cue-canvas-actions.js +14 -10
- package/dist/features/cue-canvas/hooks/use-cue-canvas-actions.js.map +1 -1
- package/dist/features/ui/border-path-animation/border-path-animation-styled.js +51 -0
- package/dist/features/ui/border-path-animation/border-path-animation-styled.js.map +1 -0
- package/dist/features/ui/border-path-animation/border-path-animation.js +108 -0
- package/dist/features/ui/border-path-animation/border-path-animation.js.map +1 -0
- package/dist/features/ui/theme/tab.js +0 -26
- package/dist/features/ui/theme/tab.js.map +1 -1
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js +34 -34
- package/dist/features/worksheet/worksheet/worksheet-question/worksheet-question.js.map +1 -1
- package/dist/index.d.ts +7 -9
- package/package.json +1 -1
@@ -1,14 +1,16 @@
|
|
1
|
-
import { useContext as
|
2
|
-
import
|
3
|
-
const
|
1
|
+
import { useContext as l, useMemo as v } from "react";
|
2
|
+
import u from "../cue-canvas-context.js";
|
3
|
+
const C = () => {
|
4
4
|
const {
|
5
5
|
activeInstance: t,
|
6
6
|
setActiveTool: o,
|
7
7
|
activeTool: e,
|
8
8
|
setActiveInstance: i,
|
9
|
-
activeColor:
|
10
|
-
setActiveColor:
|
11
|
-
|
9
|
+
activeColor: r,
|
10
|
+
setActiveColor: s,
|
11
|
+
setActiveSidebar: c,
|
12
|
+
activeSidebar: n
|
13
|
+
} = l(u), a = v(
|
12
14
|
() => e ? ["pen", "ruler", "highlighter", "marker"].includes(e) : !1,
|
13
15
|
[e]
|
14
16
|
);
|
@@ -17,12 +19,14 @@ const m = () => {
|
|
17
19
|
setActiveTool: o,
|
18
20
|
activeTool: e,
|
19
21
|
setActiveInstance: i,
|
20
|
-
activeColor:
|
21
|
-
setActiveColor:
|
22
|
-
isWritingToolActive:
|
22
|
+
activeColor: r,
|
23
|
+
setActiveColor: s,
|
24
|
+
isWritingToolActive: a,
|
25
|
+
setActiveSidebar: c,
|
26
|
+
activeSidebar: n
|
23
27
|
};
|
24
28
|
};
|
25
29
|
export {
|
26
|
-
|
30
|
+
C as useCueCanvasActions
|
27
31
|
};
|
28
32
|
//# sourceMappingURL=use-cue-canvas-actions.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"use-cue-canvas-actions.js","sources":["../../../../src/features/cue-canvas/hooks/use-cue-canvas-actions.ts"],"sourcesContent":["import { useContext, useMemo } from 'react';\n\nimport PolyContext from '../cue-canvas-context';\n\nexport const useCueCanvasActions = () => {\n const {\n activeInstance,\n setActiveTool,\n activeTool,\n setActiveInstance,\n activeColor,\n setActiveColor,\n } = useContext(PolyContext);\n\n const isWritingToolActive = useMemo(\n () => (activeTool ? ['pen', 'ruler', 'highlighter', 'marker'].includes(activeTool) : false),\n [activeTool],\n );\n\n return {\n activeInstance,\n setActiveTool,\n activeTool,\n setActiveInstance,\n activeColor,\n setActiveColor,\n isWritingToolActive,\n };\n};\n"],"names":["useCueCanvasActions","activeInstance","setActiveTool","activeTool","setActiveInstance","activeColor","setActiveColor","useContext","PolyContext","isWritingToolActive","useMemo"],"mappings":";;AAIO,MAAMA,IAAsB,MAAM;AACjC,QAAA;AAAA,IACJ,gBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,gBAAAC;AAAA,EAAA,IACEC,EAAWC,CAAW,GAEpBC,IAAsBC;AAAA,IAC1B,
|
1
|
+
{"version":3,"file":"use-cue-canvas-actions.js","sources":["../../../../src/features/cue-canvas/hooks/use-cue-canvas-actions.ts"],"sourcesContent":["import { useContext, useMemo } from 'react';\n\nimport PolyContext from '../cue-canvas-context';\n\nexport const useCueCanvasActions = () => {\n const {\n activeInstance,\n setActiveTool,\n activeTool,\n setActiveInstance,\n activeColor,\n setActiveColor,\n setActiveSidebar,\n activeSidebar,\n } = useContext(PolyContext);\n\n const isWritingToolActive = useMemo(\n () => (activeTool ? ['pen', 'ruler', 'highlighter', 'marker'].includes(activeTool) : false),\n [activeTool],\n );\n\n return {\n activeInstance,\n setActiveTool,\n activeTool,\n setActiveInstance,\n activeColor,\n setActiveColor,\n isWritingToolActive,\n setActiveSidebar,\n activeSidebar,\n };\n};\n"],"names":["useCueCanvasActions","activeInstance","setActiveTool","activeTool","setActiveInstance","activeColor","setActiveColor","setActiveSidebar","activeSidebar","useContext","PolyContext","isWritingToolActive","useMemo"],"mappings":";;AAIO,MAAMA,IAAsB,MAAM;AACjC,QAAA;AAAA,IACJ,gBAAAC;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,kBAAAC;AAAA,IACA,eAAAC;AAAA,EAAA,IACEC,EAAWC,CAAW,GAEpBC,IAAsBC;AAAA,IAC1B,MAAOT,IAAa,CAAC,OAAO,SAAS,eAAe,QAAQ,EAAE,SAASA,CAAU,IAAI;AAAA,IACrF,CAACA,CAAU;AAAA,EAAA;AAGN,SAAA;AAAA,IACL,gBAAAF;AAAA,IACA,eAAAC;AAAA,IACA,YAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,aAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,qBAAAK;AAAA,IACA,kBAAAJ;AAAA,IACA,eAAAC;AAAA,EAAA;AAEJ;"}
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import i, { css as s } from "styled-components";
|
2
|
+
const o = i.div`
|
3
|
+
position: absolute;
|
4
|
+
z-index: 1;
|
5
|
+
overflow: hidden;
|
6
|
+
`, d = i(o)(
|
7
|
+
({ $borderWidth: t }) => `
|
8
|
+
top: 0;
|
9
|
+
left: 0;
|
10
|
+
width: 100%;
|
11
|
+
height: ${t}px;
|
12
|
+
`
|
13
|
+
), c = i(o)(
|
14
|
+
({ $borderWidth: t }) => `
|
15
|
+
bottom: 0;
|
16
|
+
left: 0;
|
17
|
+
width: 100%;
|
18
|
+
height: ${t}px;
|
19
|
+
`
|
20
|
+
), l = i(o)(
|
21
|
+
({ $borderWidth: t }) => `
|
22
|
+
top: 0;
|
23
|
+
right: 0;
|
24
|
+
width: ${t}px;
|
25
|
+
height: 100%;
|
26
|
+
`
|
27
|
+
), $ = i(o)(
|
28
|
+
({ $borderWidth: t }) => `
|
29
|
+
top: 0;
|
30
|
+
left: 0;
|
31
|
+
width: ${t}px;
|
32
|
+
height: 100%;
|
33
|
+
`
|
34
|
+
), g = i.div(
|
35
|
+
({ theme: t, $width: n, $height: e, $borderColor: h, $animationDuration: p, $keyframes: r }) => s`
|
36
|
+
position: relative;
|
37
|
+
width: ${n}px;
|
38
|
+
height: ${e}px;
|
39
|
+
background-color: ${t.colors[h]};
|
40
|
+
opacity: 0;
|
41
|
+
animation: ${r} ${p}s linear infinite;
|
42
|
+
`
|
43
|
+
);
|
44
|
+
export {
|
45
|
+
c as BottomLineContainer,
|
46
|
+
$ as LeftLineContainer,
|
47
|
+
g as Line,
|
48
|
+
l as RightLineContainer,
|
49
|
+
d as TopLineContainer
|
50
|
+
};
|
51
|
+
//# sourceMappingURL=border-path-animation-styled.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"border-path-animation-styled.js","sources":["../../../../src/features/ui/border-path-animation/border-path-animation-styled.tsx"],"sourcesContent":["import type { TColorNames } from '../types';\nimport type { keyframes } from 'styled-components';\n\nimport styled, { css } from 'styled-components';\n\nconst LineContainer = styled.div`\n position: absolute;\n z-index: 1;\n overflow: hidden;\n`;\n\nexport const TopLineContainer = styled(LineContainer)<{\n $borderWidth: number;\n}>(\n ({ $borderWidth }) => `\n top: 0;\n left: 0;\n width: 100%;\n height: ${$borderWidth}px;\n`,\n);\n\nexport const BottomLineContainer = styled(LineContainer)<{\n $borderWidth: number;\n}>(\n ({ $borderWidth }) => `\n bottom: 0;\n left: 0;\n width: 100%;\n height: ${$borderWidth}px;\n`,\n);\n\nexport const RightLineContainer = styled(LineContainer)<{\n $borderWidth: number;\n}>(\n ({ $borderWidth }) => `\n top: 0;\n right: 0;\n width: ${$borderWidth}px;\n height: 100%;\n`,\n);\n\nexport const LeftLineContainer = styled(LineContainer)<{\n $borderWidth: number;\n}>(\n ({ $borderWidth }) => `\n top: 0;\n left: 0;\n width: ${$borderWidth}px;\n height: 100%;\n`,\n);\n\nexport const Line = styled.div<{\n $borderColor: TColorNames;\n $animationDuration: number;\n $keyframes: ReturnType<typeof keyframes>;\n $width: number;\n $height: number;\n}>(\n ({ theme, $width, $height, $borderColor, $animationDuration, $keyframes }) => css`\n position: relative;\n width: ${$width}px;\n height: ${$height}px;\n background-color: ${theme.colors[$borderColor]};\n opacity: 0;\n animation: ${$keyframes} ${$animationDuration}s linear infinite;\n `,\n);\n"],"names":["LineContainer","styled","TopLineContainer","$borderWidth","BottomLineContainer","RightLineContainer","LeftLineContainer","Line","theme","$width","$height","$borderColor","$animationDuration","$keyframes","css"],"mappings":";AAKA,MAAMA,IAAgBC,EAAO;AAAA;AAAA;AAAA;AAAA,GAMhBC,IAAmBD,EAAOD,CAAa;AAAA,EAGlD,CAAC,EAAE,cAAAG,EAAA,MAAmB;AAAA;AAAA;AAAA;AAAA,YAIZA,CAAY;AAAA;AAExB,GAEaC,IAAsBH,EAAOD,CAAa;AAAA,EAGrD,CAAC,EAAE,cAAAG,EAAA,MAAmB;AAAA;AAAA;AAAA;AAAA,YAIZA,CAAY;AAAA;AAExB,GAEaE,IAAqBJ,EAAOD,CAAa;AAAA,EAGpD,CAAC,EAAE,cAAAG,EAAA,MAAmB;AAAA;AAAA;AAAA,WAGbA,CAAY;AAAA;AAAA;AAGvB,GAEaG,IAAoBL,EAAOD,CAAa;AAAA,EAGnD,CAAC,EAAE,cAAAG,EAAA,MAAmB;AAAA;AAAA;AAAA,WAGbA,CAAY;AAAA;AAAA;AAGvB,GAEaI,IAAON,EAAO;AAAA,EAOzB,CAAC,EAAE,OAAAO,GAAO,QAAAC,GAAQ,SAAAC,GAAS,cAAAC,GAAc,oBAAAC,GAAoB,YAAAC,EAAiB,MAAAC;AAAA;AAAA,aAEnEL,CAAM;AAAA,cACLC,CAAO;AAAA,wBACGF,EAAM,OAAOG,CAAY,CAAC;AAAA;AAAA,iBAEjCE,CAAU,IAAID,CAAkB;AAAA;AAEjD;"}
|
@@ -0,0 +1,108 @@
|
|
1
|
+
import { jsxs as p, Fragment as g, jsx as s } from "react/jsx-runtime";
|
2
|
+
import { memo as b, useState as d, useMemo as l, useRef as u, useLayoutEffect as C } from "react";
|
3
|
+
import { keyframes as L } from "styled-components";
|
4
|
+
import { TopLineContainer as k, Line as c, RightLineContainer as W, BottomLineContainer as R, LeftLineContainer as D } from "./border-path-animation-styled.js";
|
5
|
+
const F = (i, r) => {
|
6
|
+
const t = (i + r) * 2, o = i, e = r, y = i / t, n = (i + r) / t, a = (i + r + i) / t;
|
7
|
+
return {
|
8
|
+
top: [
|
9
|
+
[0, { x: 0, y: 0, o: 1 }],
|
10
|
+
[y, { x: o, y: 0, o: 1 }],
|
11
|
+
[y + 1e-3, { x: o, y: 0, o: 0 }],
|
12
|
+
[n - 1e-3, { x: -o, y: 0, o: 0 }],
|
13
|
+
[n, { x: -o, y: 0, o: 1 }],
|
14
|
+
[a, { x: 0, y: 0, o: 1 }],
|
15
|
+
[1, { x: 0, y: 0, o: 1 }]
|
16
|
+
],
|
17
|
+
right: [
|
18
|
+
[0, { x: 0, y: 0, o: 1 }],
|
19
|
+
[y, { x: 0, y: 0, o: 1 }],
|
20
|
+
[n, { x: 0, y: e, o: 1 }],
|
21
|
+
[n + 1e-3, { x: 0, y: e, o: 0 }],
|
22
|
+
[a - 1e-3, { x: 0, y: -e, o: 0 }],
|
23
|
+
[a, { x: 0, y: -e, o: 1 }],
|
24
|
+
[1, { x: 0, y: 0, o: 1 }]
|
25
|
+
],
|
26
|
+
bottom: [
|
27
|
+
[0, { x: o, y: 0, o: 1 }],
|
28
|
+
[y, { x: 0, y: 0, o: 1 }],
|
29
|
+
[n, { x: 0, y: 0, o: 1 }],
|
30
|
+
[a, { x: -o, y: 0, o: 1 }],
|
31
|
+
[a + 1e-3, { x: -o, y: 0, o: 0 }],
|
32
|
+
[a + 2e-3, { x: o, y: 0, o: 0 }],
|
33
|
+
[1, { x: o, y: 0, o: 1 }]
|
34
|
+
],
|
35
|
+
left: [
|
36
|
+
[0, { x: 0, y: e, o: 1 }],
|
37
|
+
[y, { x: 0, y: e, o: 1 }],
|
38
|
+
[n, { x: 0, y: 0, o: 1 }],
|
39
|
+
[a, { x: 0, y: 0, o: 1 }],
|
40
|
+
[1, { x: 0, y: -e, o: 1 }]
|
41
|
+
]
|
42
|
+
};
|
43
|
+
}, $ = (i) => L`
|
44
|
+
${i.map(
|
45
|
+
([r, { x: t, y: o, o: e }]) => `${r * 100}% {
|
46
|
+
transform: translate(${t}px, ${o}px);
|
47
|
+
opacity: ${e};
|
48
|
+
}`
|
49
|
+
).join(" ")}
|
50
|
+
`, K = b((i) => {
|
51
|
+
const { animationDuration: r = 6, borderWidth: t = 1, borderColor: o = "YELLOW_3" } = i, [e, y] = d(1), [n, a] = d(1), m = l(() => F(e, n), [e, n]), x = l(
|
52
|
+
() => ({
|
53
|
+
top: $(m.top),
|
54
|
+
right: $(m.right),
|
55
|
+
bottom: $(m.bottom),
|
56
|
+
left: $(m.left)
|
57
|
+
}),
|
58
|
+
[m]
|
59
|
+
), f = u(null), h = u(null);
|
60
|
+
return C(() => {
|
61
|
+
f.current && y(f.current.getBoundingClientRect().width), h.current && a(h.current.getBoundingClientRect().height);
|
62
|
+
}, []), /* @__PURE__ */ p(g, { children: [
|
63
|
+
/* @__PURE__ */ s(k, { className: "top-line", ref: f, $borderWidth: t, children: /* @__PURE__ */ s(
|
64
|
+
c,
|
65
|
+
{
|
66
|
+
$borderColor: o,
|
67
|
+
$width: e,
|
68
|
+
$height: t,
|
69
|
+
$animationDuration: r,
|
70
|
+
$keyframes: x.top
|
71
|
+
}
|
72
|
+
) }),
|
73
|
+
/* @__PURE__ */ s(W, { ref: h, $borderWidth: t, children: /* @__PURE__ */ s(
|
74
|
+
c,
|
75
|
+
{
|
76
|
+
$width: t,
|
77
|
+
$height: n,
|
78
|
+
$borderColor: o,
|
79
|
+
$animationDuration: r,
|
80
|
+
$keyframes: x.right
|
81
|
+
}
|
82
|
+
) }),
|
83
|
+
/* @__PURE__ */ s(R, { $borderWidth: t, children: /* @__PURE__ */ s(
|
84
|
+
c,
|
85
|
+
{
|
86
|
+
$borderColor: o,
|
87
|
+
$width: e,
|
88
|
+
$height: t,
|
89
|
+
$animationDuration: r,
|
90
|
+
$keyframes: x.bottom
|
91
|
+
}
|
92
|
+
) }),
|
93
|
+
/* @__PURE__ */ s(D, { $borderWidth: t, children: /* @__PURE__ */ s(
|
94
|
+
c,
|
95
|
+
{
|
96
|
+
$width: t,
|
97
|
+
$height: n,
|
98
|
+
$borderColor: o,
|
99
|
+
$animationDuration: r,
|
100
|
+
$keyframes: x.left
|
101
|
+
}
|
102
|
+
) })
|
103
|
+
] });
|
104
|
+
});
|
105
|
+
export {
|
106
|
+
K as default
|
107
|
+
};
|
108
|
+
//# sourceMappingURL=border-path-animation.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"border-path-animation.js","sources":["../../../../src/features/ui/border-path-animation/border-path-animation.tsx"],"sourcesContent":["import type {\n IBorderPathAnimationProps,\n IGetKeyFrames,\n IGetKeyFramesConfig,\n} from './border-path-animation-types';\nimport type { FC } from 'react';\n\nimport { memo, useLayoutEffect, useMemo, useRef, useState } from 'react';\nimport { keyframes } from 'styled-components';\n\nimport * as Styled from './border-path-animation-styled';\n\nconst getKeyFramesConfig: IGetKeyFramesConfig = (width, height) => {\n const p = (width + height) * 2; // perimeter\n const w = width;\n const h = height;\n const bp1 = width / p;\n const bp2 = (width + height) / p;\n const bp3 = (width + height + width) / p;\n\n return {\n top: [\n [0, { x: 0, y: 0, o: 1 }],\n [bp1, { x: w, y: 0, o: 1 }],\n\n [bp1 + 0.001, { x: w, y: 0, o: 0 }],\n [bp2 - 0.001, { x: -w, y: 0, o: 0 }],\n\n [bp2, { x: -w, y: 0, o: 1 }],\n [bp3, { x: 0, y: 0, o: 1 }],\n [1, { x: 0, y: 0, o: 1 }],\n ],\n right: [\n [0, { x: 0, y: 0, o: 1 }],\n [bp1, { x: 0, y: 0, o: 1 }],\n [bp2, { x: 0, y: h, o: 1 }],\n\n [bp2 + 0.001, { x: 0, y: h, o: 0 }],\n [bp3 - 0.001, { x: 0, y: -h, o: 0 }],\n\n [bp3, { x: 0, y: -h, o: 1 }],\n [1, { x: 0, y: 0, o: 1 }],\n ],\n bottom: [\n [0, { x: w, y: 0, o: 1 }],\n [bp1, { x: 0, y: 0, o: 1 }],\n [bp2, { x: 0, y: 0, o: 1 }],\n [bp3, { x: -w, y: 0, o: 1 }],\n\n [bp3 + 0.001, { x: -w, y: 0, o: 0 }],\n [bp3 + 0.002, { x: w, y: 0, o: 0 }],\n [1, { x: w, y: 0, o: 1 }],\n ],\n left: [\n [0, { x: 0, y: h, o: 1 }],\n [bp1, { x: 0, y: h, o: 1 }],\n [bp2, { x: 0, y: 0, o: 1 }],\n [bp3, { x: 0, y: 0, o: 1 }],\n [1, { x: 0, y: -h, o: 1 }],\n ],\n };\n};\n\nconst getKeyFrames: IGetKeyFrames = config => {\n return keyframes`\n ${config\n .map(\n ([percentage, { x, y, o }]) => `${percentage * 100}% {\n transform: translate(${x}px, ${y}px);\n opacity: ${o};\n }`,\n )\n .join(' ')}\n `;\n};\n\nconst BorderPathAnimation: FC<IBorderPathAnimationProps> = memo(props => {\n const { animationDuration = 6, borderWidth = 1, borderColor = 'YELLOW_3' } = props;\n const [width, setWidth] = useState(1);\n const [height, setHeight] = useState(1);\n const keyFramesConfig = useMemo(() => getKeyFramesConfig(width, height), [width, height]);\n const keyFrames = useMemo(\n () => ({\n top: getKeyFrames(keyFramesConfig.top),\n right: getKeyFrames(keyFramesConfig.right),\n bottom: getKeyFrames(keyFramesConfig.bottom),\n left: getKeyFrames(keyFramesConfig.left),\n }),\n [keyFramesConfig],\n );\n const topRef = useRef<HTMLDivElement>(null);\n const rightRef = useRef<HTMLDivElement>(null);\n\n useLayoutEffect(() => {\n if (topRef.current) {\n setWidth(topRef.current.getBoundingClientRect().width);\n }\n\n if (rightRef.current) {\n setHeight(rightRef.current.getBoundingClientRect().height);\n }\n }, []);\n\n return (\n <>\n <Styled.TopLineContainer className=\"top-line\" ref={topRef} $borderWidth={borderWidth}>\n <Styled.Line\n $borderColor={borderColor}\n $width={width}\n $height={borderWidth}\n $animationDuration={animationDuration}\n $keyframes={keyFrames.top}\n />\n </Styled.TopLineContainer>\n <Styled.RightLineContainer ref={rightRef} $borderWidth={borderWidth}>\n <Styled.Line\n $width={borderWidth}\n $height={height}\n $borderColor={borderColor}\n $animationDuration={animationDuration}\n $keyframes={keyFrames.right}\n />\n </Styled.RightLineContainer>\n <Styled.BottomLineContainer $borderWidth={borderWidth}>\n <Styled.Line\n $borderColor={borderColor}\n $width={width}\n $height={borderWidth}\n $animationDuration={animationDuration}\n $keyframes={keyFrames.bottom}\n />\n </Styled.BottomLineContainer>\n <Styled.LeftLineContainer $borderWidth={borderWidth}>\n <Styled.Line\n $width={borderWidth}\n $height={height}\n $borderColor={borderColor}\n $animationDuration={animationDuration}\n $keyframes={keyFrames.left}\n />\n </Styled.LeftLineContainer>\n </>\n );\n});\n\nexport default BorderPathAnimation;\n"],"names":["getKeyFramesConfig","width","height","p","w","h","bp1","bp2","bp3","getKeyFrames","config","keyframes","percentage","x","y","o","BorderPathAnimation","memo","props","animationDuration","borderWidth","borderColor","setWidth","useState","setHeight","keyFramesConfig","useMemo","keyFrames","topRef","useRef","rightRef","useLayoutEffect","jsxs","Fragment","jsx","Styled.TopLineContainer","Styled.Line","Styled.RightLineContainer","Styled.BottomLineContainer","Styled.LeftLineContainer"],"mappings":";;;;AAYA,MAAMA,IAA0C,CAACC,GAAOC,MAAW;AAC3D,QAAAC,KAAKF,IAAQC,KAAU,GACvBE,IAAIH,GACJI,IAAIH,GACJI,IAAML,IAAQE,GACdI,KAAON,IAAQC,KAAUC,GACzBK,KAAOP,IAAQC,IAASD,KAASE;AAEhC,SAAA;AAAA,IACL,KAAK;AAAA,MACH,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG;AAAA,MACxB,CAACG,GAAK,EAAE,GAAGF,GAAG,GAAG,GAAG,GAAG,GAAG;AAAA,MAE1B,CAACE,IAAM,MAAO,EAAE,GAAGF,GAAG,GAAG,GAAG,GAAG,GAAG;AAAA,MAClC,CAACG,IAAM,MAAO,EAAE,GAAG,CAACH,GAAG,GAAG,GAAG,GAAG,GAAG;AAAA,MAEnC,CAACG,GAAK,EAAE,GAAG,CAACH,GAAG,GAAG,GAAG,GAAG,GAAG;AAAA,MAC3B,CAACI,GAAK,EAAE,GAAG,G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|
-
},
|
49
|
-
secondary: {
|
50
|
-
backgroundColorName: {
|
51
|
-
inactive: "BLACK",
|
52
|
-
active: "WHITE",
|
53
|
-
hover: "WHITE",
|
54
|
-
disabled: "GREY_1"
|
55
|
-
},
|
56
|
-
colorName: {
|
57
|
-
inactive: "WHITE",
|
58
|
-
active: "BLACK",
|
59
|
-
hover: "BLACK",
|
60
|
-
disabled: "BLACK_50"
|
61
|
-
},
|
62
|
-
borderColorName: {
|
63
|
-
inactive: "WHITE",
|
64
|
-
active: "WHITE",
|
65
|
-
hover: "BLACK",
|
66
|
-
disabled: "GREY_1"
|
67
|
-
},
|
68
|
-
fontWeight: {
|
69
|
-
inactive: 400,
|
70
|
-
active: 500,
|
71
|
-
hover: 500,
|
72
|
-
disabled: 400
|
73
|
-
}
|
74
48
|
}
|
75
49
|
} });
|
76
50
|
export {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"tab.js","sources":["../../../../src/features/ui/theme/tab.ts"],"sourcesContent":["import type { ITabSizeConfig, ITabVariantConfig, TTabSizes, TTabVariants } from '../types';\n\ninterface IGetTabConfig {\n (gutter: number): {\n sizes: Record<TTabSizes, ITabSizeConfig>;\n variants: Record<TTabVariants, ITabVariantConfig>;\n };\n}\n\nconst getTabConfig: IGetTabConfig = (gutter: number) => {\n const sizes: Record<TTabSizes, ITabSizeConfig> = {\n xsmall: {\n height: gutter * 1.625,\n paddingHorizontal: gutter * 0.5,\n textVariant: 'body3',\n },\n small: {\n height: gutter * 2,\n paddingHorizontal: gutter * 0.75,\n textVariant: 'body2',\n },\n regular: {\n height: gutter * 2.5,\n paddingHorizontal: gutter,\n textVariant: 'body1',\n },\n medium: {\n height: gutter * 3,\n paddingHorizontal: gutter,\n textVariant: 'body1',\n },\n };\n\n const variants: Record<TTabVariants, ITabVariantConfig> = {\n primary: {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n hover: 'BLACK',\n disabled: 'GREY_1',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n hover: 'WHITE',\n disabled: 'BLACK_50',\n },\n borderColorName: {\n inactive: 'GREY_3',\n active: 'BLACK',\n hover: 'BLACK',\n disabled: 'GREY_1',\n },\n fontWeight: {\n inactive: 400,\n active: 500,\n hover: 500,\n disabled: 400,\n },\n },\n
|
1
|
+
{"version":3,"file":"tab.js","sources":["../../../../src/features/ui/theme/tab.ts"],"sourcesContent":["import type { ITabSizeConfig, ITabVariantConfig, TTabSizes, TTabVariants } from '../types';\n\ninterface IGetTabConfig {\n (gutter: number): {\n sizes: Record<TTabSizes, ITabSizeConfig>;\n variants: Record<TTabVariants, ITabVariantConfig>;\n };\n}\n\nconst getTabConfig: IGetTabConfig = (gutter: number) => {\n const sizes: Record<TTabSizes, ITabSizeConfig> = {\n xsmall: {\n height: gutter * 1.625,\n paddingHorizontal: gutter * 0.5,\n textVariant: 'body3',\n },\n small: {\n height: gutter * 2,\n paddingHorizontal: gutter * 0.75,\n textVariant: 'body2',\n },\n regular: {\n height: gutter * 2.5,\n paddingHorizontal: gutter,\n textVariant: 'body1',\n },\n medium: {\n height: gutter * 3,\n paddingHorizontal: gutter,\n textVariant: 'body1',\n },\n };\n\n const variants: Record<TTabVariants, ITabVariantConfig> = {\n primary: {\n backgroundColorName: {\n inactive: 'WHITE',\n active: 'BLACK',\n hover: 'BLACK',\n disabled: 'GREY_1',\n },\n colorName: {\n inactive: 'BLACK',\n active: 'WHITE',\n hover: 'WHITE',\n disabled: 'BLACK_50',\n },\n borderColorName: {\n inactive: 'GREY_3',\n active: 'BLACK',\n hover: 'BLACK',\n disabled: 'GREY_1',\n },\n fontWeight: {\n inactive: 400,\n active: 500,\n hover: 500,\n disabled: 400,\n },\n },\n };\n\n return { sizes, variants };\n};\n\nexport default getTabConfig;\n"],"names":["getTabConfig","gutter"],"mappings":"AASM,MAAAA,IAA8B,CAACC,OAqD5B,EAAE,OApDwC;AAAA,EAC/C,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAS;AAAA,IAC5B,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,IACL,QAAQA,IAAS;AAAA,IACjB,mBAAmBA,IAAS;AAAA,IAC5B,aAAa;AAAA,EACf;AAAA,EACA,SAAS;AAAA,IACP,QAAQA,IAAS;AAAA,IACjB,mBAAmBA;AAAA,IACnB,aAAa;AAAA,EACf;AAAA,EACA,QAAQ;AAAA,IACN,QAAQA,IAAS;AAAA,IACjB,mBAAmBA;AAAA,IACnB,aAAa;AAAA,EACf;AAAA,GAgCc,UA7B0C;AAAA,EACxD,SAAS;AAAA,IACP,qBAAqB;AAAA,MACnB,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA,WAAW;AAAA,MACT,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA,iBAAiB;AAAA,MACf,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,IACA,YAAY;AAAA,MACV,UAAU;AAAA,MACV,QAAQ;AAAA,MACR,OAAO;AAAA,MACP,UAAU;AAAA,IACZ;AAAA,EACF;AAAA;"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { jsxs as
|
1
|
+
import { jsxs as I, jsx as e, Fragment as Kt } from "react/jsx-runtime";
|
2
2
|
import { memo as Vt, useMemo as R, useState as A, useRef as U, useCallback as Xt, useEffect as E, useLayoutEffect as Pt } from "react";
|
3
3
|
import { IMAGES as jt } from "../../../../assets/images/images.js";
|
4
4
|
import Gt from "../../../cue-canvas/cue-canvas.js";
|
@@ -23,8 +23,8 @@ const Ai = Vt(
|
|
23
23
|
worksheetCompleted: f,
|
24
24
|
question: n,
|
25
25
|
response: i,
|
26
|
-
nextQuestionId:
|
27
|
-
isActive:
|
26
|
+
nextQuestionId: S,
|
27
|
+
isActive: v,
|
28
28
|
isHidden: M,
|
29
29
|
canRender: K,
|
30
30
|
loggerRef: O,
|
@@ -38,7 +38,7 @@ const Ai = Vt(
|
|
38
38
|
background: G = "paper",
|
39
39
|
onMediaStateChange: Bt,
|
40
40
|
onMarkForReview: xt,
|
41
|
-
userId:
|
41
|
+
userId: Lt,
|
42
42
|
onPublishStrokes: Y,
|
43
43
|
onReceiveStrokes: Z,
|
44
44
|
isScribblingEnabled: J,
|
@@ -47,8 +47,8 @@ const Ai = Vt(
|
|
47
47
|
onPublishMouseMove: k,
|
48
48
|
onSubscribeMouseMove: tt,
|
49
49
|
setActiveQuestionId: it,
|
50
|
-
canResolveDoubt:
|
51
|
-
onResolveDoubt:
|
50
|
+
canResolveDoubt: Tt,
|
51
|
+
onResolveDoubt: It,
|
52
52
|
studentId: At,
|
53
53
|
responses: Mt,
|
54
54
|
subjectiveProps: et
|
@@ -86,7 +86,7 @@ const Ai = Vt(
|
|
86
86
|
_t,
|
87
87
|
H,
|
88
88
|
c
|
89
|
-
]), F = U({}),
|
89
|
+
]), F = U({}), L = (i == null ? void 0 : i.hintsUsed) ?? 0, [$t] = A((i == null ? void 0 : i.validatedByTeacher) ?? !1), T = U(null), z = U(null), D = R(() => d == null ? void 0 : d.slice(0, L), [d, L]), pt = R(() => c === "TEACHER" || f ? !0 : !i || !i.response || i.responseEdited ? !1 : ot, [i, c, ot, f]), Rt = R(() => {
|
90
90
|
if (c === "TEACHER") return !0;
|
91
91
|
if (Q) {
|
92
92
|
const { attemptsHistory: t } = i ?? {};
|
@@ -96,14 +96,14 @@ const Ai = Vt(
|
|
96
96
|
}, [ct, nt, i, Q, c]), zt = R(
|
97
97
|
() => b && f && !at,
|
98
98
|
[at, b, f]
|
99
|
-
), [
|
99
|
+
), [St, Dt] = A({
|
100
100
|
width: 0,
|
101
101
|
height: 0
|
102
102
|
}), Ut = Xt((t) => {
|
103
103
|
Nt(t);
|
104
104
|
}, []);
|
105
105
|
return E(() => {
|
106
|
-
|
106
|
+
T.current && j.observe(T.current);
|
107
107
|
}, [j]), E(() => {
|
108
108
|
if (a && (n.type === "clozeassociation" || n.type === "association" || n.type === "clozeformula")) {
|
109
109
|
const t = document.querySelectorAll(
|
@@ -160,7 +160,7 @@ const Ai = Vt(
|
|
160
160
|
r,
|
161
161
|
lt
|
162
162
|
]), E(() => {
|
163
|
-
const t =
|
163
|
+
const t = T.current, s = (o) => {
|
164
164
|
const m = o.querySelector(".lrn_response_wrapper");
|
165
165
|
if (!m)
|
166
166
|
return 0;
|
@@ -176,37 +176,37 @@ const Ai = Vt(
|
|
176
176
|
return Math.ceil(
|
177
177
|
p + (W ? s(t) : 0)
|
178
178
|
);
|
179
|
-
const
|
179
|
+
const vt = Math.ceil(
|
180
180
|
p + (W ? s(t) : 0)
|
181
181
|
);
|
182
|
-
return Math.abs(
|
182
|
+
return Math.abs(vt - o) > 4 ? vt : o;
|
183
183
|
});
|
184
184
|
}), Pt(() => {
|
185
185
|
!B && !M && Wt(r);
|
186
186
|
}, [M, B, r, st]), E(() => {
|
187
|
-
(
|
188
|
-
}, [gt,
|
189
|
-
if (H &&
|
187
|
+
(L || gt || b && f) && w.renderMath("mathjax");
|
188
|
+
}, [gt, L, w, b, f]), E(() => {
|
189
|
+
if (H && S && !$t && (i != null && i.validatedByTeacher)) {
|
190
190
|
const t = setTimeout(() => {
|
191
|
-
B ? Wt(
|
191
|
+
B ? Wt(S) : it(S);
|
192
192
|
}, 1e3);
|
193
193
|
return () => {
|
194
194
|
clearTimeout(t);
|
195
195
|
};
|
196
196
|
}
|
197
197
|
}, [
|
198
|
-
|
198
|
+
S,
|
199
199
|
H,
|
200
200
|
$t,
|
201
201
|
B,
|
202
202
|
it,
|
203
203
|
i == null ? void 0 : i.validatedByTeacher
|
204
|
-
]), /* @__PURE__ */
|
204
|
+
]), /* @__PURE__ */ I(
|
205
205
|
si,
|
206
206
|
{
|
207
207
|
"data-response-id": r,
|
208
208
|
className: `widget-${r}`,
|
209
|
-
ref:
|
209
|
+
ref: T,
|
210
210
|
$topOffset: st,
|
211
211
|
$flexDirection: $ ? "row" : "column",
|
212
212
|
$alignItems: $ ? "flex-start" : "center",
|
@@ -221,17 +221,17 @@ const Ai = Vt(
|
|
221
221
|
}
|
222
222
|
}
|
223
223
|
),
|
224
|
-
/* @__PURE__ */
|
224
|
+
/* @__PURE__ */ I(
|
225
225
|
li,
|
226
226
|
{
|
227
227
|
ref: z,
|
228
228
|
$width: $ ? "50%" : `${V}px`,
|
229
229
|
$minHeight: y ? Math.max(y - 72, rt ?? 0) : Qt,
|
230
|
-
$isActive:
|
230
|
+
$isActive: v,
|
231
231
|
$paperColor: C,
|
232
|
-
$opacity:
|
232
|
+
$opacity: v ? 1 : 0.2,
|
233
233
|
children: [
|
234
|
-
|
234
|
+
v && !!k && !!tt && q && /* @__PURE__ */ e(
|
235
235
|
Yt,
|
236
236
|
{
|
237
237
|
containerRef: z,
|
@@ -240,12 +240,12 @@ const Ai = Vt(
|
|
240
240
|
responseId: r
|
241
241
|
}
|
242
242
|
),
|
243
|
-
/* @__PURE__ */
|
243
|
+
/* @__PURE__ */ I(
|
244
244
|
ui,
|
245
245
|
{
|
246
246
|
className: Ft,
|
247
|
-
$dropzoneMinWidth:
|
248
|
-
$dropzoneMinHeight:
|
247
|
+
$dropzoneMinWidth: St.width,
|
248
|
+
$dropzoneMinHeight: St.height,
|
249
249
|
children: [
|
250
250
|
!(x || l || g) && /* @__PURE__ */ e(
|
251
251
|
ti,
|
@@ -258,14 +258,14 @@ const Ai = Vt(
|
|
258
258
|
paperColor: C,
|
259
259
|
onMarkForReview: xt,
|
260
260
|
actionbarHeight: yt,
|
261
|
-
canResolveDoubt:
|
262
|
-
onResolveDoubt:
|
261
|
+
canResolveDoubt: Tt,
|
262
|
+
onResolveDoubt: It,
|
263
263
|
worksheetCompleted: f
|
264
264
|
}
|
265
265
|
),
|
266
266
|
x && /* @__PURE__ */ e(fi, { src: jt.LESSON_OVERVIEW_BANNER }),
|
267
267
|
l && C && /* @__PURE__ */ e(ei, { paperColor: C }),
|
268
|
-
g ? /* @__PURE__ */
|
268
|
+
g ? /* @__PURE__ */ I(Kt, { children: [
|
269
269
|
h === "practice-basic" && /* @__PURE__ */ e(ni, {}),
|
270
270
|
h === "practice-regular" && /* @__PURE__ */ e(ai, {}),
|
271
271
|
h === "exit-ticket" && /* @__PURE__ */ e(ci, {}),
|
@@ -278,7 +278,7 @@ const Ai = Vt(
|
|
278
278
|
appended: a,
|
279
279
|
question: n,
|
280
280
|
response: i == null ? void 0 : i.response,
|
281
|
-
canRender: K ||
|
281
|
+
canRender: K || v,
|
282
282
|
learnosity: w,
|
283
283
|
canForceAppend: c === "TEACHER",
|
284
284
|
isConceptIntro: l,
|
@@ -290,15 +290,15 @@ const Ai = Vt(
|
|
290
290
|
Gt,
|
291
291
|
{
|
292
292
|
canRender: K,
|
293
|
-
canScribble: J &&
|
293
|
+
canScribble: J && v,
|
294
294
|
appended: a,
|
295
|
-
|
295
|
+
responseId: r,
|
296
296
|
width: V,
|
297
297
|
height: Math.max(y, rt ?? 0),
|
298
298
|
onUpdateHeight: Ut,
|
299
299
|
onPublish: Y,
|
300
300
|
onSubscribe: Z,
|
301
|
-
userId:
|
301
|
+
userId: Lt,
|
302
302
|
initialData: N == null ? void 0 : N[r],
|
303
303
|
userType: c
|
304
304
|
}
|
@@ -345,7 +345,7 @@ const Ai = Vt(
|
|
345
345
|
{
|
346
346
|
responses: Mt,
|
347
347
|
response: i,
|
348
|
-
nextQuestionId:
|
348
|
+
nextQuestionId: S,
|
349
349
|
responseId: r,
|
350
350
|
studentId: At,
|
351
351
|
userType: c,
|