@magmamath/students-features 1.8.0 → 1.8.1-rc.1
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/index.js +10 -22
- package/dist/commonjs/index.js.map +1 -1
- package/dist/module/index.js +0 -1
- package/dist/module/index.js.map +1 -1
- package/dist/typescript/commonjs/index.d.ts +0 -1
- package/dist/typescript/commonjs/index.d.ts.map +1 -1
- package/dist/typescript/module/index.d.ts +0 -1
- package/dist/typescript/module/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/i18n/.generated/schema.json +11 -13
- package/src/index.ts +0 -1
- package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js +0 -29
- package/dist/commonjs/features/exampleSolution/ExampleSolutionModal.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/assets/grid.webp +0 -0
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -97
- package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js +0 -70
- package/dist/commonjs/features/exampleSolution/components/QuestionSection.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js +0 -104
- package/dist/commonjs/features/exampleSolution/components/SolutionSection.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/constants.js +0 -13
- package/dist/commonjs/features/exampleSolution/constants.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js +0 -61
- package/dist/commonjs/features/exampleSolution/hooks/useExampleSolution.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/index.js +0 -39
- package/dist/commonjs/features/exampleSolution/index.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js +0 -24
- package/dist/commonjs/features/exampleSolution/model/ExampleSolution.model.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js +0 -28
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionApi.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js +0 -18
- package/dist/commonjs/features/exampleSolution/model/ExampleSolutionCache.js.map +0 -1
- package/dist/commonjs/features/exampleSolution/types.js +0 -6
- package/dist/commonjs/features/exampleSolution/types.js.map +0 -1
- package/dist/module/features/exampleSolution/ExampleSolutionModal.js +0 -23
- package/dist/module/features/exampleSolution/ExampleSolutionModal.js.map +0 -1
- package/dist/module/features/exampleSolution/assets/grid.webp +0 -0
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js +0 -91
- package/dist/module/features/exampleSolution/components/ExampleSolutionModalContent.js.map +0 -1
- package/dist/module/features/exampleSolution/components/QuestionSection.js +0 -62
- package/dist/module/features/exampleSolution/components/QuestionSection.js.map +0 -1
- package/dist/module/features/exampleSolution/components/SolutionSection.js +0 -96
- package/dist/module/features/exampleSolution/components/SolutionSection.js.map +0 -1
- package/dist/module/features/exampleSolution/constants.js +0 -9
- package/dist/module/features/exampleSolution/constants.js.map +0 -1
- package/dist/module/features/exampleSolution/hooks/useExampleSolution.js +0 -56
- package/dist/module/features/exampleSolution/hooks/useExampleSolution.js.map +0 -1
- package/dist/module/features/exampleSolution/index.js +0 -6
- package/dist/module/features/exampleSolution/index.js.map +0 -1
- package/dist/module/features/exampleSolution/model/ExampleSolution.model.js +0 -19
- package/dist/module/features/exampleSolution/model/ExampleSolution.model.js.map +0 -1
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js +0 -23
- package/dist/module/features/exampleSolution/model/ExampleSolutionApi.js.map +0 -1
- package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js +0 -13
- package/dist/module/features/exampleSolution/model/ExampleSolutionCache.js.map +0 -1
- package/dist/module/features/exampleSolution/types.js +0 -4
- package/dist/module/features/exampleSolution/types.js.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts +0 -11
- package/dist/typescript/commonjs/features/exampleSolution/ExampleSolutionModal.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +0 -8
- package/dist/typescript/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts +0 -10
- package/dist/typescript/commonjs/features/exampleSolution/components/QuestionSection.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts +0 -9
- package/dist/typescript/commonjs/features/exampleSolution/components/SolutionSection.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts +0 -6
- package/dist/typescript/commonjs/features/exampleSolution/constants.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts +0 -9
- package/dist/typescript/commonjs/features/exampleSolution/hooks/useExampleSolution.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/index.d.ts +0 -4
- package/dist/typescript/commonjs/features/exampleSolution/index.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts +0 -10
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolution.model.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts +0 -13
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts +0 -11
- package/dist/typescript/commonjs/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +0 -1
- package/dist/typescript/commonjs/features/exampleSolution/types.d.ts +0 -27
- package/dist/typescript/commonjs/features/exampleSolution/types.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts +0 -11
- package/dist/typescript/module/features/exampleSolution/ExampleSolutionModal.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts +0 -8
- package/dist/typescript/module/features/exampleSolution/components/ExampleSolutionModalContent.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts +0 -10
- package/dist/typescript/module/features/exampleSolution/components/QuestionSection.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts +0 -9
- package/dist/typescript/module/features/exampleSolution/components/SolutionSection.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/constants.d.ts +0 -6
- package/dist/typescript/module/features/exampleSolution/constants.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts +0 -9
- package/dist/typescript/module/features/exampleSolution/hooks/useExampleSolution.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/index.d.ts +0 -4
- package/dist/typescript/module/features/exampleSolution/index.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts +0 -10
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolution.model.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts +0 -13
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionApi.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts +0 -11
- package/dist/typescript/module/features/exampleSolution/model/ExampleSolutionCache.d.ts.map +0 -1
- package/dist/typescript/module/features/exampleSolution/types.d.ts +0 -27
- package/dist/typescript/module/features/exampleSolution/types.d.ts.map +0 -1
- package/src/features/exampleSolution/ExampleSolutionModal.tsx +0 -23
- package/src/features/exampleSolution/assets/grid.webp +0 -0
- package/src/features/exampleSolution/components/ExampleSolutionModalContent.tsx +0 -80
- package/src/features/exampleSolution/components/QuestionSection.tsx +0 -61
- package/src/features/exampleSolution/components/SolutionSection.tsx +0 -117
- package/src/features/exampleSolution/constants.ts +0 -5
- package/src/features/exampleSolution/hooks/useExampleSolution.ts +0 -66
- package/src/features/exampleSolution/index.ts +0 -3
- package/src/features/exampleSolution/model/ExampleSolution.model.ts +0 -15
- package/src/features/exampleSolution/model/ExampleSolutionApi.ts +0 -29
- package/src/features/exampleSolution/model/ExampleSolutionCache.ts +0 -20
- package/src/features/exampleSolution/types.ts +0 -27
package/dist/commonjs/index.js
CHANGED
|
@@ -97,7 +97,7 @@ Object.keys(_index7).forEach(function (key) {
|
|
|
97
97
|
}
|
|
98
98
|
});
|
|
99
99
|
});
|
|
100
|
-
var _index8 = require("./features/
|
|
100
|
+
var _index8 = require("./features/keyboard/index.js");
|
|
101
101
|
Object.keys(_index8).forEach(function (key) {
|
|
102
102
|
if (key === "default" || key === "__esModule") return;
|
|
103
103
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -109,7 +109,7 @@ Object.keys(_index8).forEach(function (key) {
|
|
|
109
109
|
}
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
|
-
var _index9 = require("./features/
|
|
112
|
+
var _index9 = require("./features/pmProgress/index.js");
|
|
113
113
|
Object.keys(_index9).forEach(function (key) {
|
|
114
114
|
if (key === "default" || key === "__esModule") return;
|
|
115
115
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -121,7 +121,7 @@ Object.keys(_index9).forEach(function (key) {
|
|
|
121
121
|
}
|
|
122
122
|
});
|
|
123
123
|
});
|
|
124
|
-
var _index10 = require("./features/
|
|
124
|
+
var _index10 = require("./features/openEnded/index.js");
|
|
125
125
|
Object.keys(_index10).forEach(function (key) {
|
|
126
126
|
if (key === "default" || key === "__esModule") return;
|
|
127
127
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -133,7 +133,7 @@ Object.keys(_index10).forEach(function (key) {
|
|
|
133
133
|
}
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
|
-
var _index11 = require("./
|
|
136
|
+
var _index11 = require("./shared/icons/index.js");
|
|
137
137
|
Object.keys(_index11).forEach(function (key) {
|
|
138
138
|
if (key === "default" || key === "__esModule") return;
|
|
139
139
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -145,7 +145,7 @@ Object.keys(_index11).forEach(function (key) {
|
|
|
145
145
|
}
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
|
-
var _index12 = require("./
|
|
148
|
+
var _index12 = require("./features/voice/index.js");
|
|
149
149
|
Object.keys(_index12).forEach(function (key) {
|
|
150
150
|
if (key === "default" || key === "__esModule") return;
|
|
151
151
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -157,7 +157,7 @@ Object.keys(_index12).forEach(function (key) {
|
|
|
157
157
|
}
|
|
158
158
|
});
|
|
159
159
|
});
|
|
160
|
-
var _index13 = require("./features/
|
|
160
|
+
var _index13 = require("./features/featureUsage/index.js");
|
|
161
161
|
Object.keys(_index13).forEach(function (key) {
|
|
162
162
|
if (key === "default" || key === "__esModule") return;
|
|
163
163
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -169,7 +169,7 @@ Object.keys(_index13).forEach(function (key) {
|
|
|
169
169
|
}
|
|
170
170
|
});
|
|
171
171
|
});
|
|
172
|
-
var _index14 = require("./features/
|
|
172
|
+
var _index14 = require("./features/uiMode/index.js");
|
|
173
173
|
Object.keys(_index14).forEach(function (key) {
|
|
174
174
|
if (key === "default" || key === "__esModule") return;
|
|
175
175
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -181,7 +181,7 @@ Object.keys(_index14).forEach(function (key) {
|
|
|
181
181
|
}
|
|
182
182
|
});
|
|
183
183
|
});
|
|
184
|
-
var _index15 = require("./features/
|
|
184
|
+
var _index15 = require("./features/fluency/index.js");
|
|
185
185
|
Object.keys(_index15).forEach(function (key) {
|
|
186
186
|
if (key === "default" || key === "__esModule") return;
|
|
187
187
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -193,7 +193,7 @@ Object.keys(_index15).forEach(function (key) {
|
|
|
193
193
|
}
|
|
194
194
|
});
|
|
195
195
|
});
|
|
196
|
-
var _index16 = require("./features/fluency/index.js");
|
|
196
|
+
var _index16 = require("./features/fluency-teacher/index.js");
|
|
197
197
|
Object.keys(_index16).forEach(function (key) {
|
|
198
198
|
if (key === "default" || key === "__esModule") return;
|
|
199
199
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -205,7 +205,7 @@ Object.keys(_index16).forEach(function (key) {
|
|
|
205
205
|
}
|
|
206
206
|
});
|
|
207
207
|
});
|
|
208
|
-
var _index17 = require("./features/
|
|
208
|
+
var _index17 = require("./features/translation/index.js");
|
|
209
209
|
Object.keys(_index17).forEach(function (key) {
|
|
210
210
|
if (key === "default" || key === "__esModule") return;
|
|
211
211
|
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
@@ -217,16 +217,4 @@ Object.keys(_index17).forEach(function (key) {
|
|
|
217
217
|
}
|
|
218
218
|
});
|
|
219
219
|
});
|
|
220
|
-
var _index18 = require("./features/translation/index.js");
|
|
221
|
-
Object.keys(_index18).forEach(function (key) {
|
|
222
|
-
if (key === "default" || key === "__esModule") return;
|
|
223
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
224
|
-
if (key in exports && exports[key] === _index18[key]) return;
|
|
225
|
-
Object.defineProperty(exports, key, {
|
|
226
|
-
enumerable: true,
|
|
227
|
-
get: function () {
|
|
228
|
-
return _index18[key];
|
|
229
|
-
}
|
|
230
|
-
});
|
|
231
|
-
});
|
|
232
220
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_helpers","require","_index","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_index2","_index3","_index4","_index5","_index6","_index7","_index8","_index9","_index10","_index11","_index12","_index13","_index14","_index15","_index16","_index17"
|
|
1
|
+
{"version":3,"names":["_helpers","require","_index","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_index2","_index3","_index4","_index5","_index6","_index7","_index8","_index9","_index10","_index11","_index12","_index13","_index14","_index15","_index16","_index17"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,MAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,MAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAZ,MAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAd,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAW,OAAA,EAAAV,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAS,OAAA,CAAAT,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAC,OAAA,CAAAT,GAAA;IAAA;EAAA;AAAA;AACA,IAAAU,OAAA,GAAAf,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAY,OAAA,EAAAX,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI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AAA;AACA,IAAAwB,QAAA,GAAA7B,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAA0B,QAAA,EAAAzB,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAwB,QAAA,CAAAxB,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAgB,QAAA,CAAAxB,GAAA;IAAA;EAAA;AAAA","ignoreList":[]}
|
package/dist/module/index.js
CHANGED
|
@@ -8,7 +8,6 @@ export * from "./features/endOfAssignment/index.js";
|
|
|
8
8
|
export * from "./features/formulaSheet/index.js";
|
|
9
9
|
export * from "./features/problemSelector/index.js";
|
|
10
10
|
export * from "./features/gifCelebrations/index.js";
|
|
11
|
-
export * from "./features/exampleSolution/index.js";
|
|
12
11
|
export * from "./features/keyboard/index.js";
|
|
13
12
|
export * from "./features/pmProgress/index.js";
|
|
14
13
|
export * from "./features/openEnded/index.js";
|
package/dist/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,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,
|
|
1
|
+
{"version":3,"names":["generateRandomId"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,SAASA,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,8BAAqB;AACnC,cAAc,gCAAuB;AACrC,cAAc,+BAAsB;AACpC,cAAc,yBAAgB;AAC9B,cAAc,2BAAkB;AAChC,cAAc,kCAAyB;AACvC,cAAc,4BAAmB;AACjC,cAAc,6BAAoB;AAClC,cAAc,qCAA4B;AAC1C,cAAc,iCAAwB","ignoreList":[]}
|
|
@@ -6,7 +6,6 @@ export * from './features/endOfAssignment';
|
|
|
6
6
|
export * from './features/formulaSheet';
|
|
7
7
|
export * from './features/problemSelector';
|
|
8
8
|
export * from './features/gifCelebrations';
|
|
9
|
-
export * from './features/exampleSolution';
|
|
10
9
|
export * from './features/keyboard';
|
|
11
10
|
export * from './features/pmProgress';
|
|
12
11
|
export * from './features/openEnded';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA"}
|
|
@@ -6,7 +6,6 @@ export * from './features/endOfAssignment';
|
|
|
6
6
|
export * from './features/formulaSheet';
|
|
7
7
|
export * from './features/problemSelector';
|
|
8
8
|
export * from './features/gifCelebrations';
|
|
9
|
-
export * from './features/exampleSolution';
|
|
10
9
|
export * from './features/keyboard';
|
|
11
10
|
export * from './features/pmProgress';
|
|
12
11
|
export * from './features/openEnded';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AACxD,cAAc,oBAAoB,CAAA;AAClC,cAAc,qBAAqB,CAAA;AACnC,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,yBAAyB,CAAA;AACvC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,4BAA4B,CAAA;AAC1C,cAAc,qBAAqB,CAAA;AACnC,cAAc,uBAAuB,CAAA;AACrC,cAAc,sBAAsB,CAAA;AACpC,cAAc,gBAAgB,CAAA;AAC9B,cAAc,kBAAkB,CAAA;AAChC,cAAc,yBAAyB,CAAA;AACvC,cAAc,mBAAmB,CAAA;AACjC,cAAc,oBAAoB,CAAA;AAClC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,wBAAwB,CAAA"}
|
package/package.json
CHANGED
|
@@ -73,10 +73,9 @@
|
|
|
73
73
|
"errorTitle": "Something went wrong",
|
|
74
74
|
"fast": "Fast!",
|
|
75
75
|
"incorrect": "INCORRECT — ANSWER: {{answer}}",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"masteryMastered": "Mastered",
|
|
76
|
+
"masteryGrowing": "Familiar",
|
|
77
|
+
"masteryLearning": "New",
|
|
78
|
+
"masteryMastered": "Automatic",
|
|
80
79
|
"masteryStrong": "Strong",
|
|
81
80
|
"multiplication": "Multiplication",
|
|
82
81
|
"notStarted": "New",
|
|
@@ -93,10 +92,13 @@
|
|
|
93
92
|
"typeYourAnswer": "Type your answer"
|
|
94
93
|
}
|
|
95
94
|
},
|
|
95
|
+
"teacherFeedback": {
|
|
96
|
+
"noComments": "No comments yet"
|
|
97
|
+
},
|
|
96
98
|
"teacher": {
|
|
97
99
|
"fluency": {
|
|
98
100
|
"allPupils": "All students",
|
|
99
|
-
"average": "
|
|
101
|
+
"average": "Progress",
|
|
100
102
|
"avgTimeTitle": "Avg Time / Student",
|
|
101
103
|
"factFluency": "Fact Fluency",
|
|
102
104
|
"factsGridLabel": "{{cols}}×{{rows}} facts",
|
|
@@ -106,7 +108,7 @@
|
|
|
106
108
|
"noFactsPracticed": "No facts practiced yet",
|
|
107
109
|
"noStudents": "This class has no students",
|
|
108
110
|
"noStudentsFound": "No students match your search",
|
|
109
|
-
"overallMastery": "
|
|
111
|
+
"overallMastery": "Automaticity progress",
|
|
110
112
|
"progressDeveloping": "Developing",
|
|
111
113
|
"progressFluent": "Fluent",
|
|
112
114
|
"progressLearning": "Learning",
|
|
@@ -114,14 +116,9 @@
|
|
|
114
116
|
"progressProficient": "Proficient",
|
|
115
117
|
"rowClickHint": "Click a student row to see their full fluency breakdown.",
|
|
116
118
|
"search": "Search",
|
|
117
|
-
"studentFluency": "Student Fluency"
|
|
118
|
-
"total": "Total",
|
|
119
|
-
"totalMastery": "Total mastery"
|
|
119
|
+
"studentFluency": "Student Fluency"
|
|
120
120
|
}
|
|
121
121
|
},
|
|
122
|
-
"teacherFeedback": {
|
|
123
|
-
"noComments": "No comments yet"
|
|
124
|
-
},
|
|
125
122
|
"time": {
|
|
126
123
|
"dayAgo": "day ago",
|
|
127
124
|
"daysAgo": "{{count}} days ago",
|
|
@@ -143,13 +140,14 @@
|
|
|
143
140
|
"noMicrophoneAccess": "No microphone access.",
|
|
144
141
|
"noMicrophoneAccessBySystem": "Microphone access denied by system settings.",
|
|
145
142
|
"noMicrophoneFound": "No microphone found.",
|
|
143
|
+
"preparingTranscript": "Preparing transcript",
|
|
146
144
|
"recordingDeleted": "Recording successfully deleted.",
|
|
147
145
|
"redo": "Redo",
|
|
148
146
|
"redoRecording": "Redo recording?",
|
|
149
147
|
"thisWillRemoveRecording": "This will remove your previous recording.",
|
|
150
|
-
"transcriptNotAvailable": "Transcript not available",
|
|
151
148
|
"transcriptionError": "Transcription request error",
|
|
152
149
|
"transcriptions": "Transcriptions",
|
|
150
|
+
"transcriptNotAvailable": "Transcript not available",
|
|
153
151
|
"uploadFailed": "Upload failed. Please try again.",
|
|
154
152
|
"youWontBeAbleToRecover": "You won't be able to recover this file once it's gone."
|
|
155
153
|
}
|
package/src/index.ts
CHANGED
|
@@ -6,7 +6,6 @@ export * from './features/endOfAssignment'
|
|
|
6
6
|
export * from './features/formulaSheet'
|
|
7
7
|
export * from './features/problemSelector'
|
|
8
8
|
export * from './features/gifCelebrations'
|
|
9
|
-
export * from './features/exampleSolution'
|
|
10
9
|
export * from './features/keyboard'
|
|
11
10
|
export * from './features/pmProgress'
|
|
12
11
|
export * from './features/openEnded'
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ExampleSolutionModal = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
9
|
-
var _ExampleSolutionModalContent = require("./components/ExampleSolutionModalContent.js");
|
|
10
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
12
|
-
const ExampleSolutionModal = ({
|
|
13
|
-
modal: {
|
|
14
|
-
closeModal,
|
|
15
|
-
params
|
|
16
|
-
}
|
|
17
|
-
}) => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.BaseModal, {
|
|
18
|
-
style: {
|
|
19
|
-
container: {
|
|
20
|
-
paddingHorizontal: _reactNativeUi.SPACING[800]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
onClose: closeModal,
|
|
24
|
-
content: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExampleSolutionModalContent.ExampleSolutionModalContent, {
|
|
25
|
-
params: params
|
|
26
|
-
})
|
|
27
|
-
});
|
|
28
|
-
exports.ExampleSolutionModal = ExampleSolutionModal;
|
|
29
|
-
//# sourceMappingURL=ExampleSolutionModal.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNativeUi","_ExampleSolutionModalContent","_jsxRuntime","e","__esModule","default","ExampleSolutionModal","modal","closeModal","params","jsx","BaseModal","style","container","paddingHorizontal","SPACING","onClose","content","ExampleSolutionModalContent","exports"],"sourceRoot":"../../../../src","sources":["features/exampleSolution/ExampleSolutionModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,4BAAA,GAAAF,OAAA;AAAsF,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAU/E,MAAMG,oBAAoB,GAAGA,CAAC;EACnCC,KAAK,EAAE;IAAEC,UAAU;IAAEC;EAAO;AACM,CAAC,kBACnC,IAAAP,WAAA,CAAAQ,GAAA,EAACV,cAAA,CAAAW,SAAS;EACRC,KAAK,EAAE;IACLC,SAAS,EAAE;MAAEC,iBAAiB,EAAEC,sBAAO,CAAC,GAAG;IAAE;EAC/C,CAAE;EACFC,OAAO,EAAER,UAAW;EACpBS,OAAO,eAAE,IAAAf,WAAA,CAAAQ,GAAA,EAACT,4BAAA,CAAAiB,2BAA2B;IAACT,MAAM,EAAEA;EAAO,CAAE;AAAE,CAC1D,CACF;AAAAU,OAAA,CAAAb,oBAAA,GAAAA,oBAAA","ignoreList":[]}
|
|
Binary file
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ExampleSolutionModalContent = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _QuestionSection = require("./QuestionSection.js");
|
|
11
|
-
var _SolutionSection = require("./SolutionSection.js");
|
|
12
|
-
var _useExampleSolution = require("../hooks/useExampleSolution.js");
|
|
13
|
-
var _studentsQa = require("@magmamath/students-qa");
|
|
14
|
-
var _i18n = require("../../../i18n/i18n.js");
|
|
15
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
const CONTAINER_HEIGHT = 593;
|
|
18
|
-
const ExampleSolutionModalContent = ({
|
|
19
|
-
params: {
|
|
20
|
-
model,
|
|
21
|
-
payload,
|
|
22
|
-
cacheKey
|
|
23
|
-
}
|
|
24
|
-
}) => {
|
|
25
|
-
const {
|
|
26
|
-
result,
|
|
27
|
-
status
|
|
28
|
-
} = (0, _useExampleSolution.useExampleSolution)({
|
|
29
|
-
model,
|
|
30
|
-
payload,
|
|
31
|
-
cacheKey
|
|
32
|
-
});
|
|
33
|
-
const t = (0, _i18n.useText)();
|
|
34
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
35
|
-
testID: _studentsQa.TEST_IDS.EXAMPLE_SOLUTION_MODAL,
|
|
36
|
-
style: [styles.container, _reactNativeUi.IS_WEB ? {
|
|
37
|
-
maxHeight: CONTAINER_HEIGHT
|
|
38
|
-
} : {
|
|
39
|
-
height: CONTAINER_HEIGHT
|
|
40
|
-
}],
|
|
41
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
|
|
42
|
-
align: "center",
|
|
43
|
-
variant: _reactNativeUi.HeadingVariants.H2,
|
|
44
|
-
style: {
|
|
45
|
-
color: _reactNativeUi.COLORS.NEUTRAL_9
|
|
46
|
-
},
|
|
47
|
-
children: t('exampleSolution.exampleSolution')
|
|
48
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
49
|
-
style: styles.content,
|
|
50
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_QuestionSection.QuestionSection, {
|
|
51
|
-
status: status,
|
|
52
|
-
question: result?.question,
|
|
53
|
-
renderKatexComponent: model.renderKatexComponent
|
|
54
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_SolutionSection.SolutionSection, {
|
|
55
|
-
status: status,
|
|
56
|
-
answer: result?.answer
|
|
57
|
-
})]
|
|
58
|
-
})]
|
|
59
|
-
});
|
|
60
|
-
};
|
|
61
|
-
exports.ExampleSolutionModalContent = ExampleSolutionModalContent;
|
|
62
|
-
const styles = _reactNative.StyleSheet.create({
|
|
63
|
-
container: {
|
|
64
|
-
width: 880
|
|
65
|
-
},
|
|
66
|
-
content: {
|
|
67
|
-
flex: 1,
|
|
68
|
-
flexDirection: 'row',
|
|
69
|
-
marginTop: _reactNativeUi.SPACING[400],
|
|
70
|
-
gap: _reactNativeUi.SPACING[400]
|
|
71
|
-
},
|
|
72
|
-
solutionContainer: {
|
|
73
|
-
width: 351,
|
|
74
|
-
overflow: 'hidden',
|
|
75
|
-
borderRadius: 8,
|
|
76
|
-
borderWidth: 1,
|
|
77
|
-
borderColor: _reactNativeUi.COLORS.NEUTRAL_5
|
|
78
|
-
},
|
|
79
|
-
lavaIconContainer: {
|
|
80
|
-
position: 'absolute',
|
|
81
|
-
bottom: -24,
|
|
82
|
-
right: -26
|
|
83
|
-
},
|
|
84
|
-
loaderContainer: {
|
|
85
|
-
paddingTop: 34,
|
|
86
|
-
position: 'absolute',
|
|
87
|
-
width: '100%',
|
|
88
|
-
height: '100%',
|
|
89
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1
|
|
90
|
-
},
|
|
91
|
-
messageBlock: {
|
|
92
|
-
position: 'absolute',
|
|
93
|
-
right: 58,
|
|
94
|
-
bottom: -12
|
|
95
|
-
}
|
|
96
|
-
});
|
|
97
|
-
//# sourceMappingURL=ExampleSolutionModalContent.js.map
|
package/dist/commonjs/features/exampleSolution/components/ExampleSolutionModalContent.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_reactNativeUi","_QuestionSection","_SolutionSection","_useExampleSolution","_studentsQa","_i18n","_jsxRuntime","e","__esModule","default","CONTAINER_HEIGHT","ExampleSolutionModalContent","params","model","payload","cacheKey","result","status","useExampleSolution","t","useText","jsxs","View","testID","TEST_IDS","EXAMPLE_SOLUTION_MODAL","style","styles","container","IS_WEB","maxHeight","height","children","jsx","Typography","align","variant","HeadingVariants","H2","color","COLORS","NEUTRAL_9","content","QuestionSection","question","renderKatexComponent","SolutionSection","answer","exports","StyleSheet","create","width","flex","flexDirection","marginTop","SPACING","gap","solutionContainer","overflow","borderRadius","borderWidth","borderColor","NEUTRAL_5","lavaIconContainer","position","bottom","right","loaderContainer","paddingTop","backgroundColor","NEUTRAL_1","messageBlock"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/ExampleSolutionModalContent.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAEA,IAAAI,gBAAA,GAAAJ,OAAA;AACA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,mBAAA,GAAAN,OAAA;AACA,IAAAO,WAAA,GAAAP,OAAA;AACA,IAAAQ,KAAA,GAAAR,OAAA;AAA4C,IAAAS,WAAA,GAAAT,OAAA;AAAA,SAAAE,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAM5C,MAAMG,gBAAgB,GAAG,GAAG;AAErB,MAAMC,2BAA2B,GAAGA,CAAC;EAC1CC,MAAM,EAAE;IAAEC,KAAK;IAAEC,OAAO;IAAEC;EAAS;AACH,CAAC,KAAK;EACtC,MAAM;IAAEC,MAAM;IAAEC;EAAO,CAAC,GAAG,IAAAC,sCAAkB,EAAC;IAAEL,KAAK;IAAEC,OAAO;IAAEC;EAAS,CAAC,CAAC;EAC3E,MAAMI,CAAC,GAAG,IAAAC,aAAO,EAAC,CAAC;EAEnB,oBACE,IAAAd,WAAA,CAAAe,IAAA,EAACzB,YAAA,CAAA0B,IAAI;IACHC,MAAM,EAAEC,oBAAQ,CAACC,sBAAuB;IACxCC,KAAK,EAAE,CACLC,MAAM,CAACC,SAAS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AQ,EAAE,QAAQ;IAClBC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAE,CAAC;IACdC,WAAW,EAAErB,qBAAM,CAACsB;EACtB,CAAC;EACDC,iBAAiB,EAAE;IACjBC,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,CAAC,EAAE;IACXC,KAAK,EAAE,CAAC;EACV,CAAC;EACDC,eAAe,EAAE;IACfC,UAAU,EAAE,EAAE;IACdJ,QAAQ,EAAE,UAAU;IACpBb,KAAK,EAAE,MAAM;IACbpB,MAAM,EAAE,MAAM;IACdsC,eAAe,EAAE7B,qBAAM,CAAC8B;EAC1B,CAAC;EACDC,YAAY,EAAE;IACZP,QAAQ,EAAE,UAAU;IACpBE,KAAK,EAAE,EAAE;IACTD,MAAM,EAAE,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.QuestionSection = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
11
|
-
var _constants = require("../constants.js");
|
|
12
|
-
var _studentsQa = require("@magmamath/students-qa");
|
|
13
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
15
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
16
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
-
const QuestionSection = ({
|
|
18
|
-
question,
|
|
19
|
-
status,
|
|
20
|
-
renderKatexComponent
|
|
21
|
-
}) => {
|
|
22
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
|
|
23
|
-
style: styles.container,
|
|
24
|
-
testID: _studentsQa.TEST_IDS.EXAMPLE_SOLUTION_QUESTION_SECTION,
|
|
25
|
-
children: [question && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
26
|
-
style: styles.katexContainer,
|
|
27
|
-
children: renderKatexComponent(question)
|
|
28
|
-
}), status === _constants.ExampleSolutionStatuses.LOADING && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
|
|
29
|
-
exiting: _reactNativeReanimated.FadeOut,
|
|
30
|
-
style: styles.loaderContainer,
|
|
31
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Loader, {
|
|
32
|
-
size: "large",
|
|
33
|
-
color: _reactNativeUi.LoaderColor.BLUE
|
|
34
|
-
})
|
|
35
|
-
})]
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
exports.QuestionSection = QuestionSection;
|
|
39
|
-
const styles = _reactNative.StyleSheet.create({
|
|
40
|
-
container: {
|
|
41
|
-
flex: 1
|
|
42
|
-
},
|
|
43
|
-
katexContainer: {
|
|
44
|
-
flex: 1
|
|
45
|
-
},
|
|
46
|
-
loaderContainer: {
|
|
47
|
-
paddingTop: 34,
|
|
48
|
-
position: 'absolute',
|
|
49
|
-
zIndex: 100,
|
|
50
|
-
width: '100%',
|
|
51
|
-
height: '100%',
|
|
52
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
53
|
-
justifyContent: 'flex-start',
|
|
54
|
-
alignItems: 'center'
|
|
55
|
-
},
|
|
56
|
-
errorContainer: {
|
|
57
|
-
position: 'absolute',
|
|
58
|
-
width: '100%',
|
|
59
|
-
height: '100%',
|
|
60
|
-
backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
|
|
61
|
-
justifyContent: 'center',
|
|
62
|
-
alignItems: 'center',
|
|
63
|
-
padding: _reactNativeUi.SPACING[400]
|
|
64
|
-
},
|
|
65
|
-
errorText: {
|
|
66
|
-
color: _reactNativeUi.COLORS.PRIMARY_RED,
|
|
67
|
-
textAlign: 'center'
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
//# sourceMappingURL=QuestionSection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_reactNativeUi","_reactNativeReanimated","_interopRequireWildcard","_constants","_studentsQa","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","QuestionSection","question","status","renderKatexComponent","jsxs","View","style","styles","container","testID","TEST_IDS","EXAMPLE_SOLUTION_QUESTION_SECTION","children","jsx","katexContainer","ExampleSolutionStatuses","LOADING","exiting","FadeOut","loaderContainer","Loader","size","color","LoaderColor","BLUE","exports","StyleSheet","create","flex","paddingTop","position","zIndex","width","height","backgroundColor","COLORS","NEUTRAL_1","justifyContent","alignItems","errorContainer","padding","SPACING","errorText","PRIMARY_RED","textAlign"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/QuestionSection.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,sBAAA,GA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BAAM,CAACC,SAAS;IACjCC,cAAc,EAAE,YAAY;IAC5BC,UAAU,EAAE;EACd,CAAC;EACDC,cAAc,EAAE;IACdT,QAAQ,EAAE,UAAU;IACpBE,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdC,eAAe,EAAEC,qBAAM,CAACC,SAAS;IACjCC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBE,OAAO,EAAEC,sBAAO,CAAC,GAAG;EACtB,CAAC;EACDC,SAAS,EAAE;IACTpB,KAAK,EAAEa,qBAAM,CAACQ,WAAW;IACzBC,SAAS,EAAE;EACb;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SolutionSection = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _reactNativeUi = require("@magmamath/react-native-ui");
|
|
10
|
-
var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
|
|
11
|
-
var _constants = require("../constants.js");
|
|
12
|
-
var _grid = _interopRequireDefault(require("../assets/grid.webp"));
|
|
13
|
-
var _studentsQa = require("@magmamath/students-qa");
|
|
14
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
16
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
17
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
18
|
-
const CONTAINER_SIZES = {
|
|
19
|
-
width: 489,
|
|
20
|
-
height: 543
|
|
21
|
-
};
|
|
22
|
-
const BORDER_WIDTH = 1;
|
|
23
|
-
const CONTAINER_HEIGHT_OFFSET = 160;
|
|
24
|
-
const gridImagePath = !_reactNativeUi.IS_WEB ? _reactNative.Image.resolveAssetSource(_grid.default).uri : _grid.default;
|
|
25
|
-
const SolutionSection = ({
|
|
26
|
-
answer,
|
|
27
|
-
status
|
|
28
|
-
}) => {
|
|
29
|
-
const {
|
|
30
|
-
height
|
|
31
|
-
} = (0, _reactNative.useWindowDimensions)();
|
|
32
|
-
const shouldShowAnswer = answer && (status === _constants.ExampleSolutionStatuses.DONE_DATA || status === _constants.ExampleSolutionStatuses.CACHE);
|
|
33
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
|
|
34
|
-
style: [styles.container, _reactNativeUi.IS_WEB && {
|
|
35
|
-
maxHeight: height - CONTAINER_HEIGHT_OFFSET
|
|
36
|
-
}],
|
|
37
|
-
testID: _studentsQa.TEST_IDS.EXAMPLE_SOLUTION_SOLUTION_SECTION,
|
|
38
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ScrollView, {
|
|
39
|
-
style: styles.solutionScroll,
|
|
40
|
-
contentContainerStyle: styles.solutionScrollContent,
|
|
41
|
-
bounces: true,
|
|
42
|
-
children: _reactNativeUi.IS_WEB ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ImageBackground, {
|
|
43
|
-
resizeMode: "repeat",
|
|
44
|
-
style: [styles.gridImageWeb],
|
|
45
|
-
source: {
|
|
46
|
-
uri: gridImagePath
|
|
47
|
-
},
|
|
48
|
-
children: shouldShowAnswer && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.Text, {
|
|
49
|
-
entering: status === 'cache' ? undefined : _reactNativeReanimated.FadeIn.delay(1000).duration(500),
|
|
50
|
-
style: styles.solutionText,
|
|
51
|
-
children: answer
|
|
52
|
-
})
|
|
53
|
-
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
54
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.ImageBackground, {
|
|
55
|
-
resizeMode: "repeat",
|
|
56
|
-
style: styles.gridImageRn,
|
|
57
|
-
source: {
|
|
58
|
-
uri: gridImagePath
|
|
59
|
-
}
|
|
60
|
-
}), shouldShowAnswer && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.Text, {
|
|
61
|
-
entering: status === 'cache' ? undefined : _reactNativeReanimated.FadeIn.delay(1000).duration(500),
|
|
62
|
-
style: styles.solutionText,
|
|
63
|
-
children: answer
|
|
64
|
-
})]
|
|
65
|
-
})
|
|
66
|
-
})
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
exports.SolutionSection = SolutionSection;
|
|
70
|
-
const styles = _reactNative.StyleSheet.create({
|
|
71
|
-
container: {
|
|
72
|
-
width: CONTAINER_SIZES.width,
|
|
73
|
-
height: CONTAINER_SIZES.height,
|
|
74
|
-
overflow: 'hidden',
|
|
75
|
-
borderRadius: 8,
|
|
76
|
-
borderWidth: BORDER_WIDTH,
|
|
77
|
-
borderColor: _reactNativeUi.COLORS.NEUTRAL_5
|
|
78
|
-
},
|
|
79
|
-
gridImageRn: {
|
|
80
|
-
top: -327,
|
|
81
|
-
width: '100%',
|
|
82
|
-
height: '150%',
|
|
83
|
-
position: 'absolute'
|
|
84
|
-
},
|
|
85
|
-
gridImageWeb: {
|
|
86
|
-
width: '100%',
|
|
87
|
-
height: '100%'
|
|
88
|
-
},
|
|
89
|
-
solutionScroll: {
|
|
90
|
-
flex: 1
|
|
91
|
-
},
|
|
92
|
-
solutionScrollContent: {
|
|
93
|
-
minHeight: CONTAINER_SIZES.height - BORDER_WIDTH * 2,
|
|
94
|
-
width: '100%'
|
|
95
|
-
},
|
|
96
|
-
solutionText: {
|
|
97
|
-
fontFamily: 'PlaypenSans-Light',
|
|
98
|
-
fontSize: 28,
|
|
99
|
-
marginHorizontal: _reactNativeUi.SPACING[800],
|
|
100
|
-
marginVertical: _reactNativeUi.SPACING[400],
|
|
101
|
-
lineHeight: 36
|
|
102
|
-
}
|
|
103
|
-
});
|
|
104
|
-
//# sourceMappingURL=SolutionSection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_reactNativeUi","_reactNativeReanimated","_interopRequireWildcard","_constants","_grid","_studentsQa","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","CONTAINER_SIZES","width","height","BORDER_WIDTH","CONTAINER_HEIGHT_OFFSET","gridImagePath","IS_WEB","Image","resolveAssetSource","gridImage","uri","SolutionSection","answer","status","useWindowDimensions","shouldShowAnswer","ExampleSolutionStatuses","DONE_DATA","CACHE","jsx","View","style","styles","container","maxHeight","testID","TEST_IDS","EXAMPLE_SOLUTION_SOLUTION_SECTION","children","ScrollView","solutionScroll","contentContainerStyle","solutionScrollContent","bounces","ImageBackground","resizeMode","gridImageWeb","source","Text","entering","undefined","FadeIn","delay","duration","solutionText","jsxs","Fragment","gridImageRn","exports","StyleSheet","create","overflow","borderRadius","borderWidth","borderColor","COLORS","NEUTRAL_5","top","position","flex","minHeight","fontFamily","fontSize","marginHorizontal","SPACING","marginVertical","lineHeight"],"sourceRoot":"../../../../../src","sources":["features/exampleSolution/components/SolutionSection.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAQA,IAAAC,MAAA,GAAAC,sBAA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,eAAe,CAACE,MAAM;IAC9BiD,QAAQ,EAAE,QAAQ;IAClBC,YAAY,EAAE,CAAC;IACfC,WAAW,EAAElD,YAAY;IACzBmD,WAAW,EAAEC,qBAAM,CAACC;EACtB,CAAC;EACDT,WAAW,EAAE;IACXU,GAAG,EAAE,CAAC,GAAG;IACTxD,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE,MAAM;IACdwD,QAAQ,EAAE;EACZ,CAAC;EACDtB,YAAY,EAAE;IACZnC,KAAK,EAAE,MAAM;IACbC,MAAM,EAAE;EACV,CAAC;EACD4B,cAAc,EAAE;IACd6B,IAAI,EAAE;EACR,CAAC;EACD3B,qBAAqB,EAAE;IACrB4B,SAAS,EAAE5D,eAAe,CAACE,MAAM,GAAGC,YAAY,GAAG,CAAC;IACpDF,KAAK,EAAE;EACT,CAAC;EACD2C,YAAY,EAAE;IACZiB,UAAU,EAAE,mBAAmB;IAC/BC,QAAQ,EAAE,EAAE;IACZC,gBAAgB,EAAEC,sBAAO,CAAC,GAAG,CAAC;IAC9BC,cAAc,EAAED,sBAAO,CAAC,GAAG,CAAC;IAC5BE,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ExampleSolutionStatuses = void 0;
|
|
7
|
-
let ExampleSolutionStatuses = exports.ExampleSolutionStatuses = /*#__PURE__*/function (ExampleSolutionStatuses) {
|
|
8
|
-
ExampleSolutionStatuses["LOADING"] = "loading";
|
|
9
|
-
ExampleSolutionStatuses["DONE_DATA"] = "doneData";
|
|
10
|
-
ExampleSolutionStatuses["CACHE"] = "cache";
|
|
11
|
-
return ExampleSolutionStatuses;
|
|
12
|
-
}({});
|
|
13
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ExampleSolutionStatuses","exports"],"sourceRoot":"../../../../src","sources":["features/exampleSolution/constants.ts"],"mappings":";;;;;;IAAkBA,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,0BAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAvBA,uBAAuB;EAAA,OAAvBA,uBAAuB;AAAA","ignoreList":[]}
|