@magmamath/students-features 0.6.12-rc.0 → 0.6.13
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/commonjs/features/exampleSolution/ExampleSolutionModal.js +31 -0
- package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/assets/grid.png +0 -0
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +97 -0
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/components/LavaIcon.js +44 -0
- package/dist/commonjs/features/exampleSolution/components/LavaIcon.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/components/MessageBlock.js +61 -0
- package/dist/commonjs/features/exampleSolution/components/MessageBlock.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +68 -0
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +75 -0
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/constants.js +13 -0
- package/dist/commonjs/features/exampleSolution/constants.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js +61 -0
- package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/index.js +39 -0
- package/dist/commonjs/features/exampleSolution/index.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js +22 -0
- package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +32 -0
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js +18 -0
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js.map +1 -0
- package/dist/commonjs/features/exampleSolution/types.js +6 -0
- package/dist/commonjs/features/exampleSolution/types.js.map +1 -0
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js +1 -1
- package/dist/commonjs/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/commonjs/index.js +24 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/shared/icons/ExcitedLavaIcon.js +681 -0
- package/dist/commonjs/shared/icons/ExcitedLavaIcon.js.map +1 -0
- package/dist/commonjs/shared/icons/LavaIconInGlasses.js +616 -0
- package/dist/commonjs/shared/icons/LavaIconInGlasses.js.map +1 -0
- package/dist/commonjs/shared/icons/index.js +204 -0
- package/dist/commonjs/shared/icons/index.js.map +1 -0
- package/dist/commonjs/shared/translation/localization/ca.json +6 -0
- package/dist/commonjs/shared/translation/localization/en.json +6 -0
- package/dist/commonjs/shared/translation/localization/gb.json +6 -0
- package/dist/commonjs/shared/translation/localization/sct.json +6 -0
- package/dist/commonjs/shared/translation/localization/sw.json +6 -0
- package/dist/module/features/exampleSolution/ExampleSolutionModal.js +25 -0
- package/dist/module/features/exampleSolution/ExampleSolutionModal.js.map +1 -0
- package/dist/module/features/exampleSolution/assets/grid.png +0 -0
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +91 -0
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +1 -0
- package/dist/module/features/exampleSolution/components/LavaIcon.js +36 -0
- package/dist/module/features/exampleSolution/components/LavaIcon.js.map +1 -0
- package/dist/module/features/exampleSolution/components/MessageBlock.js +53 -0
- package/dist/module/features/exampleSolution/components/MessageBlock.js.map +1 -0
- package/dist/module/features/exampleSolution/components/QuestionSection.js +60 -0
- package/dist/module/features/exampleSolution/components/QuestionSection.js.map +1 -0
- package/dist/module/features/exampleSolution/components/SolutionSection.js +67 -0
- package/dist/module/features/exampleSolution/components/SolutionSection.js.map +1 -0
- package/dist/module/features/exampleSolution/constants.js +9 -0
- package/dist/module/features/exampleSolution/constants.js.map +1 -0
- package/dist/module/features/exampleSolution/hooks/useExampleSolution.js +56 -0
- package/dist/module/features/exampleSolution/hooks/useExampleSolution.js.map +1 -0
- package/dist/module/features/exampleSolution/index.js +6 -0
- package/dist/module/features/exampleSolution/index.js.map +1 -0
- package/dist/module/features/exampleSolution/model/ExampleSolution.model.js +17 -0
- package/dist/module/features/exampleSolution/model/ExampleSolution.model.js.map +1 -0
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +27 -0
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +1 -0
- package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js +13 -0
- package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js.map +1 -0
- package/dist/module/features/exampleSolution/types.js +4 -0
- package/dist/module/features/exampleSolution/types.js.map +1 -0
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js +1 -1
- package/dist/module/features/problemSelector/components/ProblemSelectorButton.js.map +1 -1
- package/dist/module/index.js +2 -0
- package/dist/module/index.js.map +1 -1
- package/dist/module/shared/icons/ExcitedLavaIcon.js +673 -0
- package/dist/module/shared/icons/ExcitedLavaIcon.js.map +1 -0
- package/dist/module/shared/icons/LavaIconInGlasses.js +608 -0
- package/dist/module/shared/icons/LavaIconInGlasses.js.map +1 -0
- package/dist/module/shared/icons/index.js +21 -0
- package/dist/module/shared/icons/index.js.map +1 -0
- package/dist/module/shared/translation/localization/ca.json +6 -0
- package/dist/module/shared/translation/localization/en.json +6 -0
- package/dist/module/shared/translation/localization/gb.json +6 -0
- package/dist/module/shared/translation/localization/sct.json +6 -0
- package/dist/module/shared/translation/localization/sw.json +6 -0
- package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts +11 -0
- package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +4 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts +10 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/LavaIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts +10 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/MessageBlock.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts +9 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts +9 -0
- package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts +6 -0
- package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts +9 -0
- package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/index.d.ts +4 -0
- package/dist/typescript/commonjs/features/exampleSolution/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts +9 -0
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts +13 -0
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts +11 -0
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +1 -0
- package/dist/typescript/commonjs/features/exampleSolution/types.d.ts +26 -0
- package/dist/typescript/commonjs/features/exampleSolution/types.d.ts.map +1 -0
- package/dist/typescript/commonjs/index.d.ts +2 -0
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/ExcitedLavaIcon.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts +4 -0
- package/dist/typescript/commonjs/shared/icons/LavaIconInGlasses.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/icons/index.d.ts +19 -0
- package/dist/typescript/commonjs/shared/icons/index.d.ts.map +1 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts +30 -0
- package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/commonjs/shared/translation/model.d.ts +12 -0
- package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
- package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts +11 -0
- package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +4 -0
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts +10 -0
- package/dist/typescript/module/features/exampleSolution/components/LavaIcon.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts +10 -0
- package/dist/typescript/module/features/exampleSolution/components/MessageBlock.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts +9 -0
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts +9 -0
- package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/constants.d.ts +6 -0
- package/dist/typescript/module/features/exampleSolution/constants.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts +9 -0
- package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/index.d.ts +4 -0
- package/dist/typescript/module/features/exampleSolution/index.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts +9 -0
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts +13 -0
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts +11 -0
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +1 -0
- package/dist/typescript/module/features/exampleSolution/types.d.ts +26 -0
- package/dist/typescript/module/features/exampleSolution/types.d.ts.map +1 -0
- package/dist/typescript/module/index.d.ts +2 -0
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts +4 -0
- package/dist/typescript/module/shared/icons/ExcitedLavaIcon.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts +4 -0
- package/dist/typescript/module/shared/icons/LavaIconInGlasses.d.ts.map +1 -0
- package/dist/typescript/module/shared/icons/index.d.ts +19 -0
- package/dist/typescript/module/shared/icons/index.d.ts.map +1 -0
- package/dist/typescript/module/shared/translation/constants.d.ts +30 -0
- package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
- package/dist/typescript/module/shared/translation/model.d.ts +12 -0
- package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
- package/package.json +7 -3
- package/src/features/exampleSolution/ExampleSolutionModal.tsx +29 -0
- package/src/features/exampleSolution/assets/grid.png +0 -0
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +71 -0
- package/src/features/exampleSolution/components/LavaIcon.tsx +35 -0
- package/src/features/exampleSolution/components/MessageBlock.tsx +67 -0
- package/src/features/exampleSolution/components/QuestionSection.tsx +56 -0
- package/src/features/exampleSolution/components/SolutionSection.tsx +69 -0
- package/src/features/exampleSolution/constants.ts +5 -0
- package/src/features/exampleSolution/hooks/useExampleSolution.ts +66 -0
- package/src/features/exampleSolution/index.ts +3 -0
- package/src/features/exampleSolution/model/ExampleSolution.model.ts +12 -0
- package/src/features/exampleSolution/model/ExampleSolutionApi.ts +33 -0
- package/src/features/exampleSolution/model/ExampleSolutionCache.ts +20 -0
- package/src/features/exampleSolution/types.ts +26 -0
- package/src/features/problemSelector/components/ProblemSelectorButton.tsx +1 -1
- package/src/index.ts +2 -0
- package/src/shared/icons/ExcitedLavaIcon.tsx +541 -0
- package/src/shared/icons/LavaIconInGlasses.tsx +489 -0
- package/src/shared/icons/index.ts +18 -0
- package/src/shared/translation/localization/ca.json +6 -0
- package/src/shared/translation/localization/en.json +6 -0
- package/src/shared/translation/localization/gb.json +6 -0
- package/src/shared/translation/localization/sct.json +6 -0
- package/src/shared/translation/localization/sw.json +6 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { StyleSheet, View, Image, Text } from 'react-native';
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { COLORS, IS_WEB, SPACING } from '@magmamath/react-native-ui';
|
|
6
|
+
import Animated, { FadeIn } from 'react-native-reanimated';
|
|
7
|
+
import { ExampleSolutionStatuses } from "../constants.js";
|
|
8
|
+
import gridImage from '../assets/grid.png';
|
|
9
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
10
|
+
const gridImagePath = !IS_WEB ? Image.resolveAssetSource(gridImage).uri : gridImage;
|
|
11
|
+
export const SolutionSection = ({
|
|
12
|
+
answer,
|
|
13
|
+
status
|
|
14
|
+
}) => {
|
|
15
|
+
const shouldShowAnswer = answer && (status === ExampleSolutionStatuses.DONE_DATA || status === ExampleSolutionStatuses.CACHE);
|
|
16
|
+
return /*#__PURE__*/_jsxs(View, {
|
|
17
|
+
style: styles.container,
|
|
18
|
+
children: [/*#__PURE__*/_jsx(Image, {
|
|
19
|
+
source: {
|
|
20
|
+
uri: gridImagePath
|
|
21
|
+
},
|
|
22
|
+
style: [styles.gridImage, IS_WEB && styles.gridImageWeb]
|
|
23
|
+
}), shouldShowAnswer && /*#__PURE__*/_jsx(Animated.ScrollView, {
|
|
24
|
+
style: styles.solutionScroll,
|
|
25
|
+
contentContainerStyle: styles.solutionScrollContent,
|
|
26
|
+
entering: status === 'cache' ? undefined : FadeIn.delay(1000).duration(500),
|
|
27
|
+
children: /*#__PURE__*/_jsx(Text, {
|
|
28
|
+
style: styles.solutionText,
|
|
29
|
+
children: answer
|
|
30
|
+
})
|
|
31
|
+
})]
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const styles = StyleSheet.create({
|
|
35
|
+
container: {
|
|
36
|
+
width: 500,
|
|
37
|
+
overflow: 'hidden',
|
|
38
|
+
borderRadius: 8,
|
|
39
|
+
borderWidth: 1,
|
|
40
|
+
borderColor: COLORS.NEUTRAL_5
|
|
41
|
+
},
|
|
42
|
+
gridImage: {
|
|
43
|
+
width: '100%',
|
|
44
|
+
height: '100%',
|
|
45
|
+
resizeMode: 'cover',
|
|
46
|
+
aspectRatio: 28 / 8
|
|
47
|
+
},
|
|
48
|
+
gridImageWeb: {
|
|
49
|
+
transform: [{
|
|
50
|
+
scale: 3.5
|
|
51
|
+
}]
|
|
52
|
+
},
|
|
53
|
+
solutionScroll: {
|
|
54
|
+
position: 'absolute',
|
|
55
|
+
width: '100%',
|
|
56
|
+
height: '100%'
|
|
57
|
+
},
|
|
58
|
+
solutionScrollContent: {
|
|
59
|
+
paddingHorizontal: SPACING[800],
|
|
60
|
+
paddingVertical: SPACING[400]
|
|
61
|
+
},
|
|
62
|
+
solutionText: {
|
|
63
|
+
fontFamily: 'PlaypenSans-Light',
|
|
64
|
+
fontSize: 22
|
|
65
|
+
}
|
|
66
|
+
});
|
|
67
|
+
//# sourceMappingURL=SolutionSection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["StyleSheet","View","Image","Text","React","COLORS","IS_WEB","SPACING","Animated","FadeIn","ExampleSolutionStatuses","gridImage","jsx","_jsx","jsxs","_jsxs","gridImagePath","resolveAssetSource","uri","SolutionSection","answer","status","shouldShowAnswer","DONE_DATA","CACHE","style","styles","container","children","source","gridImageWeb","ScrollView","solutionScroll","contentContainerStyle","solutionScrollContent","entering","undefined","delay","duration","solutionText","create","width","overflow","borderRadius","borderWidth","borderColor","NEUTRAL_5","height","resizeMode","aspectRatio","transform","scale","position","paddingHorizontal","paddingVertical","fontFamily","fontSize"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/SolutionSection.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,EAAEC,KAAK,EAAEC,IAAI,QAAQ,cAAc;AAC5D,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,EAAEC,MAAM,EAAEC,OAAO,QAAQ,4BAA4B;AACpE,OAAOC,QAAQ,IAAIC,MAAM,QAAQ,yBAAyB;AAC1D,SAASC,uBAAuB,QAAQ,iBAAc;AACtD,OAAOC,SAAS,MAAM,oBAAoB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAO1C,MAAMC,aAAa,GAAG,CAACV,MAAM,GAAGJ,KAAK,CAACe,kBAAkB,CAACN,SAAS,CAAC,CAACO,GAAG,GAAGP,SAAS;AAEnF,OAAO,MAAMQ,eAAe,GAAGA,CAAC;EAAEC,MAAM;EAAEC;AAA6B,CAAC,KAAK;EAC3E,MAAMC,gBAAgB,GACpBF,MAAM,KACLC,MAAM,KAAKX,uBAAuB,CAACa,SAAS,IAAIF,MAAM,KAAKX,uBAAuB,CAACc,KAAK,CAAC;EAE5F,oBACET,KAAA,CAACd,IAAI;IAACwB,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5Bf,IAAA,C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OAAO,CAAC,GAAG;EAC9B,CAAC;EACDgC,YAAY,EAAE;IACZgB,UAAU,EAAE,mBAAmB;IAC/BC,QAAQ,EAAE;EACZ;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
export let ExampleSolutionStatuses = /*#__PURE__*/function (ExampleSolutionStatuses) {
|
|
4
|
+
ExampleSolutionStatuses["LOADING"] = "loading";
|
|
5
|
+
ExampleSolutionStatuses["DONE_DATA"] = "doneData";
|
|
6
|
+
ExampleSolutionStatuses["CACHE"] = "cache";
|
|
7
|
+
return ExampleSolutionStatuses;
|
|
8
|
+
}({});
|
|
9
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ExampleSolutionStatuses"],"sourceRoot":"../../../../src","sources":["features/exampleSolution/constants.ts"],"mappings":";;AAAA,WAAkBA,uBAAuB,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA","ignoreList":[]}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { useEffect, useState } from 'react';
|
|
4
|
+
import { useUnit } from 'effector-react';
|
|
5
|
+
import { ExampleSolutionStatuses } from "../constants.js";
|
|
6
|
+
const ANIMATION_DELAY = 600;
|
|
7
|
+
export const useExampleSolution = ({
|
|
8
|
+
model,
|
|
9
|
+
payload,
|
|
10
|
+
cacheKey
|
|
11
|
+
}) => {
|
|
12
|
+
const exampleSolutionsCache = useUnit(model.cache.$state);
|
|
13
|
+
const [result, setResult] = useState(null);
|
|
14
|
+
const [status, setStatus] = useState(ExampleSolutionStatuses.LOADING);
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
let timer = null;
|
|
17
|
+
const fetchExampleSolution = async () => {
|
|
18
|
+
try {
|
|
19
|
+
if (exampleSolutionsCache[cacheKey]) {
|
|
20
|
+
setResult(exampleSolutionsCache[cacheKey]);
|
|
21
|
+
setStatus(ExampleSolutionStatuses.CACHE);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const startTime = Date.now();
|
|
25
|
+
const response = await model.api.generateExampleSolutionFx(payload);
|
|
26
|
+
setResult(response);
|
|
27
|
+
model.cache.addExampleSolution({
|
|
28
|
+
cacheKey,
|
|
29
|
+
response
|
|
30
|
+
});
|
|
31
|
+
const elapsedTime = Date.now() - startTime;
|
|
32
|
+
if (elapsedTime >= ANIMATION_DELAY) {
|
|
33
|
+
setStatus(ExampleSolutionStatuses.DONE_DATA);
|
|
34
|
+
} else {
|
|
35
|
+
timer = setTimeout(() => {
|
|
36
|
+
setStatus(ExampleSolutionStatuses.DONE_DATA);
|
|
37
|
+
}, ANIMATION_DELAY - elapsedTime);
|
|
38
|
+
}
|
|
39
|
+
} catch (error) {
|
|
40
|
+
console.error('Failed to fetch example solution:', error);
|
|
41
|
+
setStatus(ExampleSolutionStatuses.DONE_DATA);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
fetchExampleSolution();
|
|
45
|
+
return () => {
|
|
46
|
+
if (timer) {
|
|
47
|
+
clearTimeout(timer);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}, []);
|
|
51
|
+
return {
|
|
52
|
+
result,
|
|
53
|
+
status
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=useExampleSolution.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["useEffect","useState","useUnit","ExampleSolutionStatuses","ANIMATION_DELAY","useExampleSolution","model","payload","cacheKey","exampleSolutionsCache","cache","$state","result","setResult","status","setStatus","LOADING","timer","fetchExampleSolution","CACHE","startTime","Date","now","response","api","generateExampleSolutionFx","addExampleSolution","elapsedTime","DONE_DATA","setTimeout","error","console","clearTimeout"],"sourceRoot":"../../../../../src","sources":["features/ex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C;QAC9C,CAAC,MAAM;UACLX,KAAK,GAAGY,UAAU,CAAC,MAAM;YACvBd,SAAS,CAACZ,uBAAuB,CAACyB,SAAS,CAAC;UAC9C,CAAC,EAAExB,eAAe,GAAGuB,WAAW,CAAC;QACnC;MACF,CAAC,CAAC,OAAOG,KAAK,EAAE;QACdC,OAAO,CAACD,KAAK,CAAC,mCAAmC,EAAEA,KAAK,CAAC;QACzDf,SAAS,CAACZ,uBAAuB,CAACyB,SAAS,CAAC;MAC9C;IACF,CAAC;IAEDV,oBAAoB,CAAC,CAAC;IAEtB,OAAO,MAAM;MACX,IAAID,KAAK,EAAE;QACTe,YAAY,CAACf,KAAK,CAAC;MACrB;IACF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EAEN,OAAO;IACLL,MAAM;IACNE;EACF,CAAC;AACH,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["features/exampleSolution/index.ts"],"mappings":";;AAAA,cAAc,2BAAwB;AACtC,cAAc,kCAA+B;AAC7C,cAAc,YAAS","ignoreList":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { ExampleSolutionsApi } from "./ExampleSolutionApi.js";
|
|
4
|
+
import { ExampleSolutionCache } from "./ExampleSolutionCache.js";
|
|
5
|
+
export class ExampleSolutionModel {
|
|
6
|
+
cache = new ExampleSolutionCache();
|
|
7
|
+
constructor({
|
|
8
|
+
api,
|
|
9
|
+
errorHandler
|
|
10
|
+
}) {
|
|
11
|
+
this.api = new ExampleSolutionsApi({
|
|
12
|
+
api,
|
|
13
|
+
errorHandler
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=ExampleSolution.model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["ExampleSolutionsApi","ExampleSolutionCache","ExampleSolutionModel","cache","constructor","api","errorHandler"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/model/ExampleSolution.model.ts"],"mappings":";;AACA,SAASA,mBAAmB,QAAQ,yBAAsB;AAC1D,SAASC,oBAAoB,QAAQ,2BAAwB;AAE7D,OAAO,MAAMC,oBAAoB,CAAC;EAEhBC,KAAK,GAAG,IAAIF,oBAAoB,CAAC,CAAC;EAElDG,WAAWA,CAAC;IAAEC,GAAG;IAAEC;EAAwC,CAAC,EAAE;IAC5D,IAAI,CAACD,GAAG,GAAG,IAAIL,mBAAmB,CAAC;MAAEK,GAAG;MAAEC;IAAa,CAAC,CAAC;EAC3D;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createControllerEffect } from "./../../../lib/effector/createControllerEffect.js";
|
|
4
|
+
import { $localization } from "../../../shared/translation/index.js";
|
|
5
|
+
import { createEffect, sample, attach } from 'effector';
|
|
6
|
+
export class ExampleSolutionsApi {
|
|
7
|
+
errorHandlingFx = attach({
|
|
8
|
+
source: $localization,
|
|
9
|
+
effect: createEffect(localization => {
|
|
10
|
+
if (!this.errorHandlerFx) return;
|
|
11
|
+
const errorMessage = localization.exampleSolution.errorMessage;
|
|
12
|
+
this.errorHandlerFx(errorMessage);
|
|
13
|
+
})
|
|
14
|
+
});
|
|
15
|
+
constructor({
|
|
16
|
+
api,
|
|
17
|
+
errorHandler
|
|
18
|
+
}) {
|
|
19
|
+
this.generateExampleSolutionFx = createControllerEffect(api.generateExampleSolution);
|
|
20
|
+
this.errorHandlerFx = errorHandler;
|
|
21
|
+
sample({
|
|
22
|
+
clock: this.generateExampleSolutionFx.fail,
|
|
23
|
+
target: this.errorHandlingFx
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=ExampleSolutionApi.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createControllerEffect","$localization","createEffect","sample","attach","ExampleSolutionsApi","errorHandlingFx","source","effect","localization","errorHandlerFx","errorMessage","exampleSolution","constructor","api","errorHandler","generateExampleSolutionFx","generateExampleSolution","clock","fail","target"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/model/ExampleSolutionApi.ts"],"mappings":";;AAAA,SAASA,sBAAsB,QAAQ,mDAAgD;AAEvF,SAASC,aAAa,QAAQ,sCAA6B;AAC3D,SAASC,YAAY,EAAEC,MAAM,EAAEC,MAAM,QAAoB,UAAU;AAOnE,OAAO,MAAMC,mBAAmB,CAAC;EAIfC,eAAe,GAAGF,MAAM,CAAC;IACvCG,MAAM,EAAEN,aAAa;IACrBO,MAAM,EAAEN,YAAY,CAAEO,YAA8C,IAAK;MACvE,IAAI,CAAC,IAAI,CAACC,cAAc,EAAE;MAC1B,MAAMC,YAAY,GAAGF,YAAY,CAACG,eAAe,CAACD,YAAY;MAC9D,IAAI,CAACD,cAAc,CAACC,YAAY,CAAC;IACnC,CAAC;EACH,CAAC,CAAC;EAEFE,WAAWA,CAAC;IAAEC,GAAG;IAAEC;EAAsC,CAAC,EAAE;IAC1D,IAAI,CAACC,yBAAyB,GAAGhB,sBAAsB,CAACc,GAAG,CAACG,uBAAuB,CAAC;IACpF,IAAI,CAACP,cAAc,GAAGK,YAAY;IAElCZ,MAAM,CAAC;MACLe,KAAK,EAAE,IAAI,CAACF,yBAAyB,CAACG,IAAI;MAC1CC,MAAM,EAAE,IAAI,CAACd;IACf,CAAC,CAAC;EACJ;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
import { createEvent, createStore } from 'effector';
|
|
4
|
+
export class ExampleSolutionCache {
|
|
5
|
+
addExampleSolution = createEvent();
|
|
6
|
+
$state = createStore({}).on(this.addExampleSolution, (state, exampleSolution) => {
|
|
7
|
+
return {
|
|
8
|
+
...state,
|
|
9
|
+
[exampleSolution.cacheKey]: exampleSolution.response
|
|
10
|
+
};
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
//# sourceMappingURL=ExampleSolutionCache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["createEvent","createStore","ExampleSolutionCache","addExampleSolution","$state","on","state","exampleSolution","cacheKey","response"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/model/ExampleSolutionCache.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,UAAU;AAQnD,OAAO,MAAMC,oBAAoB,CAAC;EAChBC,kBAAkB,GAAGH,WAAW,CAAqB,CAAC;EACtDI,MAAM,GAAGH,WAAW,CAA0C,CAAC,CAAC,CAAC,CAACI,EAAE,CAClF,IAAI,CAACF,kBAAkB,EACvB,CAACG,KAAK,EAAEC,eAAe,KAAK;IAC1B,OAAO;MACL,GAAGD,KAAK;MACR,CAACC,eAAe,CAACC,QAAQ,GAAGD,eAAe,CAACE;IAC9C,CAAC;EACH,CACF,CAAC;AACH","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["features/exampleSolution/types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -27,7 +27,7 @@ export const ProblemSelectorButton = ({
|
|
|
27
27
|
disabled: locked,
|
|
28
28
|
icon: locked ? /*#__PURE__*/_jsx(LockIcon, {
|
|
29
29
|
color: customColorScheme[ButtonStates.DISABLED]?.color,
|
|
30
|
-
size:
|
|
30
|
+
size: "large"
|
|
31
31
|
}) : /*#__PURE__*/_jsx(Typography, {
|
|
32
32
|
variant: "h3",
|
|
33
33
|
style: [styles.buttonText, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","View","StyleSheet","UnreadMessagesBadge","Button","ButtonSize","ButtonStates","ButtonVariant","FONT_FAMILY","LockIcon","Typography","BADGE_COORDINATES","BUTTON_BORDER_WIDTH","BUTTON_SIZE","COLOR_SCHEME_MAP","jsx","_jsx","jsxs","_jsxs","ProblemSelectorButton","text","state","onClick","badgeValue","locked","customColorScheme","style","styles","wrapper","children","variant","PRIMARY","size","MEDIUM","onPress","button","disabled","icon","color","DISABLED","buttonText","DEFAULT","badgeContent","undefined","withBorder","badge","top","right","create","position","width","height","borderWidth","textAlign","fontWeight","fontFamily","buenosAires"],"sourceRoot":"../../../../../src","sources":["features/problemSelector/components/ProblemSelectorButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAE/C,SAASC,mBAAmB,QAAQ,8BAA8B;AAClE,SACEC,MAAM,EACNC,UAAU,EACVC,YAAY,EACZC,aAAa,EACbC,WAAW,EACXC,QAAQ,EACRC,UAAU,QACL,4BAA4B;AAEnC,SAASC,iBAAiB,EAAEC,mBAAmB,EAAEC,WAAW,EAAEC,gBAAgB,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAIpG,OAAO,MAAMC,qBAAqB,GAAGA,CAAC;EACpCC,IAAI;EACJC,KAAK;EACLC,OAAO;EACPC,UAAU;EACVC;AAC0B,CAAC,KAAK;EAChC,MAAMC,iBAAiB,GAAGX,gBAAgB,CAACO,KAAK,CAAC;EAEjD,oBACEH,KAAA,CAACjB,IAAI;IAACyB,KAAK,EAAEC,MAAM,CAACC,OAAQ;IAAAC,QAAA,gBAC1Bb,IAAA,CAACZ,MAAM;MACL0B,OAAO,EAAEvB,aAAa,CAACwB,OAAQ;MAC/BC,IAAI,EAAE3B,UAAU,CAAC4B,MAAO;MACxBR,iBAAiB,EAAEA,iBAAkB;MACrCS,OAAO,EAAEZ,OAAQ;MACjBI,KAAK,EAAE;QACLS,MAAM,EAAER,MAAM,CAACQ;MACjB,CAAE;MACFC,QAAQ,EAAEZ,MAAO;MACjBa,IAAI,EACFb,MAAM,gBACJR,IAAA,CAACP,QAAQ;QAAC6B,KAAK,EAAEb,iBAAiB,CAACnB,YAAY,CAACiC,QAAQ,CAAC,EAAED,KAAM;QAACN,IAAI,
|
|
1
|
+
{"version":3,"names":["React","View","StyleSheet","UnreadMessagesBadge","Button","ButtonSize","ButtonStates","ButtonVariant","FONT_FAMILY","LockIcon","Typography","BADGE_COORDINATES","BUTTON_BORDER_WIDTH","BUTTON_SIZE","COLOR_SCHEME_MAP","jsx","_jsx","jsxs","_jsxs","ProblemSelectorButton","text","state","onClick","badgeValue","locked","customColorScheme","style","styles","wrapper","children","variant","PRIMARY","size","MEDIUM","onPress","button","disabled","icon","color","DISABLED","buttonText","DEFAULT","badgeContent","undefined","withBorder","badge","top","right","create","position","width","height","borderWidth","textAlign","fontWeight","fontFamily","buenosAires"],"sourceRoot":"../../../../../src","sources":["features/problemSelector/components/ProblemSelectorButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAE/C,SAASC,mBAAmB,QAAQ,8BAA8B;AAClE,SACEC,MAAM,EACNC,UAAU,EACVC,YAAY,EACZC,aAAa,EACbC,WAAW,EACXC,QAAQ,EACRC,UAAU,QACL,4BAA4B;AAEnC,SAASC,iBAAiB,EAAEC,mBAAmB,EAAEC,WAAW,EAAEC,gBAAgB,QAAQ,iBAAc;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAIpG,OAAO,MAAMC,qBAAqB,GAAGA,CAAC;EACpCC,IAAI;EACJC,KAAK;EACLC,OAAO;EACPC,UAAU;EACVC;AAC0B,CAAC,KAAK;EAChC,MAAMC,iBAAiB,GAAGX,gBAAgB,CAACO,KAAK,CAAC;EAEjD,oBACEH,KAAA,CAACjB,IAAI;IAACyB,KAAK,EAAEC,MAAM,CAACC,OAAQ;IAAAC,QAAA,gBAC1Bb,IAAA,CAACZ,MAAM;MACL0B,OAAO,EAAEvB,aAAa,CAACwB,OAAQ;MAC/BC,IAAI,EAAE3B,UAAU,CAAC4B,MAAO;MACx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Va,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAE/C,WAAW,CAACgD;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
|
package/dist/module/index.js
CHANGED
|
@@ -9,4 +9,6 @@ export * from "./features/endOfAssignment/index.js";
|
|
|
9
9
|
export * from "./features/formulaSheet/index.js";
|
|
10
10
|
export * from "./features/problemSelector/index.js";
|
|
11
11
|
export * from "./features/gifCelebrations/index.js";
|
|
12
|
+
export * from "./features/exampleSolution/index.js";
|
|
13
|
+
export * from "./shared/icons/index.js";
|
|
12
14
|
//# sourceMappingURL=index.js.map
|
package/dist/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["useFeaturesLocalization","setFeaturesLocalization","Locale","generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,uBAAuB,EAAEC,uBAAuB,EAAEC,MAAM,QAAQ,+BAAsB;AAC/F,SAASC,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["useFeaturesLocalization","setFeaturesLocalization","Locale","generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,uBAAuB,EAAEC,uBAAuB,EAAEC,MAAM,QAAQ,+BAAsB;AAC/F,SAASC,gBAAgB,QAAQ,0BAAuB;AACxD,cAAc,6BAAoB;AAClC,cAAc,8BAAqB;AACnC,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,kCAAyB;AACvC,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,qCAA4B;AAC1C,cAAc,yBAAgB","ignoreList":[]}
|