@cuemath/leap 3.0.12-ays3 → 3.0.12-ays5
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 +165 -154
- package/dist/features/chapters-v2/comps/node-card/teacher-actions/teacher-actions.js.map +1 -1
- package/dist/features/communication/pub-sub/constants.js +1 -0
- package/dist/features/communication/pub-sub/constants.js.map +1 -1
- package/dist/features/homework/homework-card.js +35 -34
- package/dist/features/homework/homework-card.js.map +1 -1
- package/dist/features/milestone/milestone-list-container/milestone-list-container.js +65 -64
- package/dist/features/milestone/milestone-list-container/milestone-list-container.js.map +1 -1
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.js +25 -25
- package/dist/features/milestone/milestone-tests/test-list-v2/test-list-container.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/index.d.ts +11 -2
- package/package.json +1 -1
@@ -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,GAAG,GAAG,GAAG,GAAG,GAAG;AAAA,MAC1B,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG;AAAA,IAC1B;AAAA,IACA,OAAO;AAAA,MACL,CAAC,GAAG,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG;AAAA,MACxB,CAACF,GAAK,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG;AAAA,MAC1B,CAACC,GAAK,EAAE,GAAG,GAAG,GAAGF,GAAG,GAAG,GAAG;AAAA,MAE1B,CAACE,IAAM,MAAO,EAAE,GAAG,GAAG,GAAGF,GAAG,GAAG,GAAG;AAAA,MAClC,CAACG,IAAM,MAAO,EAAE,GAAG,GAAG,GAAG,CAACH,GAAG,GAAG,GAAG;AAAA,MAEnC,CAACG,GAAK,EAAE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AA,QACC,QAAQhB;AAAA,QACR,SAASlB;AAAA,QACT,cAAcmB;AAAA,QACd,oBAAoBF;AAAA,QACpB,YAAYQ,EAAU;AAAA,MAAA;AAAA,IAAA,GAE1B;AAAA,IACC,gBAAAO,EAAAI,GAAA,EAA2B,cAAclB,GACxC,UAAA,gBAAAc;AAAA,MAACE;AAAAA,MAAA;AAAA,QACC,cAAcf;AAAA,QACd,QAAQpB;AAAA,QACR,SAASmB;AAAA,QACT,oBAAoBD;AAAA,QACpB,YAAYQ,EAAU;AAAA,MAAA;AAAA,IAAA,GAE1B;AAAA,IACC,gBAAAO,EAAAK,GAAA,EAAyB,cAAcnB,GACtC,UAAA,gBAAAc;AAAA,MAACE;AAAAA,MAAA;AAAA,QACC,QAAQhB;AAAA,QACR,SAASlB;AAAA,QACT,cAAcmB;AAAA,QACd,oBAAoBF;AAAA,QACpB,YAAYQ,EAAU;AAAA,MAAA;AAAA,IAAA,GAE1B;AAAA,EACF,EAAA,CAAA;AAEJ,CAAC;"}
|
package/dist/index.d.ts
CHANGED
@@ -373,6 +373,7 @@ export declare const EVENTS: {
|
|
373
373
|
UNLOCK_SHEETS: "UNLOCK_SHEETS";
|
374
374
|
EXTRA_PRACTICE_ASSIGNED: "EXTRA_PRACTICE_ASSIGNED";
|
375
375
|
CHANGE_LOCATION: "CHANGE_LOCATION";
|
376
|
+
SHEET_MARKED_AS_REVIEWED: "SHEET_MARKED_AS_REVIEWED";
|
376
377
|
SHEET_STARTED: "SHEET_STARTED";
|
377
378
|
SHEET_UNASSIGNED: "SHEET_UNASSIGNED";
|
378
379
|
SHEET_REATTEMPTED: "SHEET_REATTEMPTED";
|
@@ -2203,7 +2204,7 @@ export declare const Info2Icon: React_2.FC<React_2.SVGProps<SVGSVGElement>>;
|
|
2203
2204
|
export declare const InfoIcon: React.FC<React.SVGProps<SVGSVGElement>>;
|
2204
2205
|
|
2205
2206
|
declare interface INodeCardCallbacks {
|
2206
|
-
onNodeAttempt?: (nodeData: INodeDataProps, homeworkId?: string) => void;
|
2207
|
+
onNodeAttempt?: (nodeData: INodeDataProps, milestoneId?: string, homeworkId?: string) => void;
|
2207
2208
|
onNodeView?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
2208
2209
|
onNodeReview?: (nodeData: INodeDataProps, milestoneId?: string, homeworkId?: string) => void;
|
2209
2210
|
onNodeReattempt?: (nodeData: INodeDataProps, milestoneId?: string) => void;
|
@@ -2625,6 +2626,7 @@ export declare interface IReviewWorksheetModel {
|
|
2625
2626
|
mastery_summary: Record<string, unknown>;
|
2626
2627
|
title?: string;
|
2627
2628
|
worksheet_id?: string;
|
2629
|
+
user_milestone_id?: string;
|
2628
2630
|
}
|
2629
2631
|
|
2630
2632
|
declare interface ISATSheetItemCallbacks {
|
@@ -4597,7 +4599,13 @@ export declare type TInclassMessage = {
|
|
4597
4599
|
mediaState: Record<string, unknown>;
|
4598
4600
|
};
|
4599
4601
|
} | {
|
4600
|
-
eventName: '
|
4602
|
+
eventName: 'WORKSHEET_MARK_AS_REVIEWED';
|
4603
|
+
eventPayload: {
|
4604
|
+
studentId: string;
|
4605
|
+
milestoneId?: string;
|
4606
|
+
};
|
4607
|
+
} | {
|
4608
|
+
eventName: typeof EVENTS.SHEET_MARKED_AS_REVIEWED;
|
4601
4609
|
eventPayload: {
|
4602
4610
|
worksheetId: string;
|
4603
4611
|
};
|
@@ -4667,6 +4675,7 @@ export declare type TInclassMessage = {
|
|
4667
4675
|
eventName: typeof EVENTS.SHEET_STARTED;
|
4668
4676
|
eventPayload: {
|
4669
4677
|
sheetIds: string[];
|
4678
|
+
milestoneId?: string;
|
4670
4679
|
};
|
4671
4680
|
} | {
|
4672
4681
|
eventName: typeof EVENTS.MILESTONE_NAME_UPDATED;
|