@mathwiz/ui-components 0.1.29 → 0.1.30

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.
Files changed (98) hide show
  1. package/README.md +1 -1
  2. package/dist/components/HundredChart/HundredChart.css +8 -0
  3. package/dist/components/HundredChart/HundredChart.d.ts.map +1 -1
  4. package/dist/components/HundredChart/HundredChart.types.d.ts +29 -0
  5. package/dist/components/HundredChart/HundredChart.types.d.ts.map +1 -1
  6. package/dist/components/HundredChart/HundredChart.utils.d.ts +13 -1
  7. package/dist/components/HundredChart/HundredChart.utils.d.ts.map +1 -1
  8. package/dist/components/HundredChart/index.d.ts +2 -2
  9. package/dist/components/HundredChart/index.d.ts.map +1 -1
  10. package/dist/components/MathCardV2/DecimalNumberRecognitionSessionStore.d.ts +2 -2
  11. package/dist/components/MathCardV2/DecimalNumberRecognitionSessionStore.d.ts.map +1 -1
  12. package/dist/components/MathCardV2/ExplanationStep.d.ts +9 -0
  13. package/dist/components/MathCardV2/ExplanationStep.d.ts.map +1 -1
  14. package/dist/components/MathCardV2/MathCardV2.css +11 -4
  15. package/dist/components/MathCardV2/MathCardV2.d.ts.map +1 -1
  16. package/dist/components/MathCardV2/MathCardV2.types.d.ts +51 -1
  17. package/dist/components/MathCardV2/MathCardV2.types.d.ts.map +1 -1
  18. package/dist/components/MathCardV2/MathPracticeSessionStore.d.ts +3 -3
  19. package/dist/components/MathCardV2/MathPracticeSessionStore.d.ts.map +1 -1
  20. package/dist/components/MathCardV2/MathPracticeSessionTypes.d.ts +38 -18
  21. package/dist/components/MathCardV2/MathPracticeSessionTypes.d.ts.map +1 -1
  22. package/dist/components/MathCardV2/MathPracticeStoreContext.d.ts +3 -9
  23. package/dist/components/MathCardV2/MathPracticeStoreContext.d.ts.map +1 -1
  24. package/dist/components/MathCardV2/MathPracticeStoreHooks.d.ts +3 -2
  25. package/dist/components/MathCardV2/MathPracticeStoreHooks.d.ts.map +1 -1
  26. package/dist/components/MathCardV2/components/content/OptionGroupContent.d.ts +10 -0
  27. package/dist/components/MathCardV2/components/content/OptionGroupContent.d.ts.map +1 -0
  28. package/dist/components/MathCardV2/components/renderers/ContentRenderer.d.ts.map +1 -1
  29. package/dist/components/MathCardV2/hooks/useDataAdapter.d.ts.map +1 -1
  30. package/dist/components/MathCardV2/hooks/useMeetingProblemAdapter.d.ts.map +1 -1
  31. package/dist/components/MathCardV2/modules/ReviewModule/ReviewModule.d.ts.map +1 -1
  32. package/dist/components/MathCardV2/scenes/ExplanationScene/ExplanationScene.d.ts.map +1 -1
  33. package/dist/components/MathCardV2/scenes/QuestionScene/QuestionScene.css +18 -18
  34. package/dist/components/MathCardV2/scenes/QuestionScene/QuestionScene.d.ts.map +1 -1
  35. package/dist/components/OptionGroup/OptionCard.d.ts +11 -0
  36. package/dist/components/OptionGroup/OptionCard.d.ts.map +1 -0
  37. package/dist/components/OptionGroup/OptionCard.styles.d.ts +87 -0
  38. package/dist/components/OptionGroup/OptionCard.styles.d.ts.map +1 -0
  39. package/dist/components/OptionGroup/OptionGroup.d.ts +11 -0
  40. package/dist/components/OptionGroup/OptionGroup.d.ts.map +1 -0
  41. package/dist/components/OptionGroup/OptionGroup.types.d.ts +71 -0
  42. package/dist/components/OptionGroup/OptionGroup.types.d.ts.map +1 -0
  43. package/dist/components/OptionGroup/index.d.ts +5 -0
  44. package/dist/components/OptionGroup/index.d.ts.map +1 -0
  45. package/dist/components/StatBlock/StatBlock.css +330 -330
  46. package/dist/data/GeometryProblemAdapterV4/geometry-types.d.ts +119 -4
  47. package/dist/data/GeometryProblemAdapterV4/geometry-types.d.ts.map +1 -1
  48. package/dist/data/GeometryProblemAdapterV4/jsondata/parallelogram-revised.json +721 -721
  49. package/dist/data/GeometryProblemAdapterV4/jsondata/right-triangle-v4.json +594 -594
  50. package/dist/data/GeometryProblemAdapterV4/jsondata/trapezoid-v4-final.json +469 -469
  51. package/dist/data/GeometryProblemAdapterV4/jsondata/triangle-v4-final.json +1 -1
  52. package/dist/data/GeometryProblemAdapterV4/types.d.ts +2 -0
  53. package/dist/data/GeometryProblemAdapterV4/types.d.ts.map +1 -1
  54. package/dist/data/TriangleAdapterV3/config/embeddedConfigs.d.ts +96 -18
  55. package/dist/data/TriangleAdapterV3/config/embeddedConfigs.d.ts.map +1 -1
  56. package/dist/data/TriangleAdapterV3/config/index.d.ts +64 -12
  57. package/dist/data/TriangleAdapterV3/config/index.d.ts.map +1 -1
  58. package/dist/data/TriangleAdapterV3/core/syncAdapter.d.ts +5 -0
  59. package/dist/data/TriangleAdapterV3/core/syncAdapter.d.ts.map +1 -1
  60. package/dist/data/TriangleAdapterV3/transformers/hundredChartTransformer.d.ts +58 -0
  61. package/dist/data/TriangleAdapterV3/transformers/hundredChartTransformer.d.ts.map +1 -0
  62. package/dist/data/TriangleAdapterV3/transformers/index.d.ts +2 -0
  63. package/dist/data/TriangleAdapterV3/transformers/index.d.ts.map +1 -1
  64. package/dist/data/TriangleAdapterV3/transformers/optionGroupTransformer.d.ts +29 -0
  65. package/dist/data/TriangleAdapterV3/transformers/optionGroupTransformer.d.ts.map +1 -0
  66. package/dist/data/TriangleAdapterV3/types.d.ts +3 -0
  67. package/dist/data/TriangleAdapterV3/types.d.ts.map +1 -1
  68. package/dist/data/config/style-presets.json +27 -3
  69. package/dist/data/dataSchema/OpenAPI/openapi.json +5777 -5777
  70. package/dist/data/problems/factorProblemV4-backup.json +427 -0
  71. package/dist/data/problems/factorProblemV4.json +462 -0
  72. package/dist/data/problems/factorProblemV4_backup_20260311.json +436 -0
  73. package/dist/index.cjs +103 -100
  74. package/dist/index.cjs.map +1 -1
  75. package/dist/index.d.ts +8 -2
  76. package/dist/index.d.ts.map +1 -1
  77. package/dist/index.mjs +12091 -6033
  78. package/dist/index.mjs.map +1 -1
  79. package/dist/mathwiz-ui.css +1 -1
  80. package/dist/pages/AreaGeometrySessionPage/AreaGeometrySessionPageIXL.css +385 -0
  81. package/dist/pages/AreaGeometrySessionPage/AreaGeometrySessionPageIXL.d.ts +29 -0
  82. package/dist/pages/AreaGeometrySessionPage/AreaGeometrySessionPageIXL.d.ts.map +1 -0
  83. package/dist/pages/AreaGeometrySessionPage/components/LearningDashboardPlaceholder.css +219 -0
  84. package/dist/pages/AreaGeometrySessionPage/components/LearningDashboardPlaceholder.d.ts +15 -0
  85. package/dist/pages/AreaGeometrySessionPage/components/LearningDashboardPlaceholder.d.ts.map +1 -0
  86. package/dist/pages/AreaGeometrySessionPage/components/ReviewSectionPlaceholder.css +64 -0
  87. package/dist/pages/AreaGeometrySessionPage/components/ReviewSectionPlaceholder.d.ts +11 -0
  88. package/dist/pages/AreaGeometrySessionPage/components/ReviewSectionPlaceholder.d.ts.map +1 -0
  89. package/dist/pages/AreaGeometrySessionPage/components/ScaffoldingPlaceholder.css +59 -0
  90. package/dist/pages/AreaGeometrySessionPage/components/ScaffoldingPlaceholder.d.ts +14 -0
  91. package/dist/pages/AreaGeometrySessionPage/components/ScaffoldingPlaceholder.d.ts.map +1 -0
  92. package/dist/pages/AreaGeometrySessionPage/index.d.ts +3 -1
  93. package/dist/pages/AreaGeometrySessionPage/index.d.ts.map +1 -1
  94. package/dist/pages/AreaGeometrySessionPage/types.d.ts +25 -0
  95. package/dist/pages/AreaGeometrySessionPage/types.d.ts.map +1 -1
  96. package/dist/style.css +1 -1
  97. package/dist/styles/mathcard-tokens.css +47 -5
  98. package/package.json +1 -1
@@ -0,0 +1,427 @@
1
+ {
2
+ "schema_version": "4.0.0",
3
+ "config_version": "1.0.0",
4
+ "math_prob_id": "mp-factors-12-001",
5
+ "title": "找出12的因数",
6
+ "description": "通过百格图模型找出12的所有因数,理解因数概念",
7
+ "objective": "掌握找因数的方法,理解因数与倍数的关系",
8
+ "difficulty": 1,
9
+ "grade_id": "g4",
10
+ "unit_name": "因数与倍数",
11
+ "unit_id": 1050603,
12
+ "lesson_name": "找因数",
13
+ "lesson_id": 105060301,
14
+ "module_id": 1003,
15
+ "skill_description": "能够找出12的所有因数",
16
+ "skill_item_id": "s-105-06-0003",
17
+ "skill_id": 1003,
18
+ "score": 2,
19
+ "knowledge_points": [
20
+ "因数的概念",
21
+ "找因数的方法",
22
+ "因数与倍数的关系"
23
+ ],
24
+ "metadata": {
25
+ "topic": "因数与倍数",
26
+ "skill": "找因数",
27
+ "tags": [
28
+ "因数",
29
+ "百格图",
30
+ "12的因数"
31
+ ],
32
+ "version": "1.0.0",
33
+ "author": "math-geometry-problem-generator",
34
+ "strategy": "hundredGrid_factor_demonstration"
35
+ },
36
+ "basic_info": {
37
+ "question": "找出12的所有因数。",
38
+ "answerUnit": "",
39
+ "variables": {
40
+ "n": 12,
41
+ "factors": [
42
+ 1,
43
+ 2,
44
+ 3,
45
+ 4,
46
+ 6,
47
+ 12
48
+ ],
49
+ "factorPairs": [
50
+ [
51
+ 1,
52
+ 12
53
+ ],
54
+ [
55
+ 2,
56
+ 6
57
+ ],
58
+ [
59
+ 3,
60
+ 4
61
+ ]
62
+ ]
63
+ }
64
+ },
65
+ "geometry_shapes": {
66
+ "hundredchart_question": {
67
+ "id": "hundredchart_question",
68
+ "type": "hundredGrid",
69
+ "styleRef": "hundredGrid_primary",
70
+ "config": {
71
+ "grid": {
72
+ "rows": 2,
73
+ "cols": 6,
74
+ "cellSize": 36,
75
+ "showNumbers": true
76
+ },
77
+ "highlight": {
78
+ "numbers": [
79
+ 1,
80
+ 2,
81
+ 3,
82
+ 4,
83
+ 5,
84
+ 6,
85
+ 7,
86
+ 8,
87
+ 9,
88
+ 10,
89
+ 11,
90
+ 12
91
+ ],
92
+ "color": "#4a90e2",
93
+ "highlightType": "fill"
94
+ },
95
+ "interactive": {
96
+ "mode": "multi-select",
97
+ "minSelections": 1,
98
+ "maxSelections": 12,
99
+ "allowDeselect": true
100
+ }
101
+ }
102
+ },
103
+ "hundredchart_1x12": {
104
+ "id": "hundredchart_1x12",
105
+ "type": "hundredGrid",
106
+ "styleRef": "hundredGrid_solve",
107
+ "config": {
108
+ "grid": {
109
+ "rows": 1,
110
+ "cols": 12,
111
+ "cellSize": 28,
112
+ "showNumbers": true
113
+ },
114
+ "highlight": {
115
+ "numbers": [
116
+ 1,
117
+ 2,
118
+ 3,
119
+ 4,
120
+ 5,
121
+ 6,
122
+ 7,
123
+ 8,
124
+ 9,
125
+ 10,
126
+ 11,
127
+ 12
128
+ ],
129
+ "color": "#f0ad4e",
130
+ "highlightType": "fill"
131
+ },
132
+ "interactive": {
133
+ "mode": "readonly"
134
+ }
135
+ }
136
+ },
137
+ "hundredchart_2x6": {
138
+ "id": "hundredchart_2x6",
139
+ "type": "hundredGrid",
140
+ "styleRef": "hundredGrid_solve",
141
+ "config": {
142
+ "grid": {
143
+ "rows": 2,
144
+ "cols": 6,
145
+ "cellSize": 32,
146
+ "showNumbers": true
147
+ },
148
+ "highlight": {
149
+ "numbers": [
150
+ 1,
151
+ 2,
152
+ 3,
153
+ 4,
154
+ 5,
155
+ 6,
156
+ 7,
157
+ 8,
158
+ 9,
159
+ 10,
160
+ 11,
161
+ 12
162
+ ],
163
+ "color": "#f0ad4e",
164
+ "highlightType": "fill"
165
+ },
166
+ "interactive": {
167
+ "mode": "readonly"
168
+ }
169
+ }
170
+ },
171
+ "hundredchart_3x4": {
172
+ "id": "hundredchart_3x4",
173
+ "type": "hundredGrid",
174
+ "styleRef": "hundredGrid_solve",
175
+ "config": {
176
+ "grid": {
177
+ "rows": 3,
178
+ "cols": 4,
179
+ "cellSize": 32,
180
+ "showNumbers": true
181
+ },
182
+ "highlight": {
183
+ "numbers": [
184
+ 1,
185
+ 2,
186
+ 3,
187
+ 4,
188
+ 5,
189
+ 6,
190
+ 7,
191
+ 8,
192
+ 9,
193
+ 10,
194
+ 11,
195
+ 12
196
+ ],
197
+ "color": "#f0ad4e",
198
+ "highlightType": "fill"
199
+ },
200
+ "interactive": {
201
+ "mode": "readonly"
202
+ }
203
+ }
204
+ }
205
+ },
206
+ "scenes": {
207
+ "question": {
208
+ "layout": {
209
+ "type": "card",
210
+ "padding": "$spacing.large"
211
+ },
212
+ "items": [
213
+ {
214
+ "type": "text",
215
+ "content": "找出 12 的所有因数。",
216
+ "style": {
217
+ "fontSize": "1.5rem",
218
+ "color": "#1e293b",
219
+ "fontWeight": "bold"
220
+ }
221
+ },
222
+ {
223
+ "type": "text",
224
+ "content": "请点击下方网格选择对应的数字:",
225
+ "style": {
226
+ "fontSize": "1rem",
227
+ "color": "#475569"
228
+ }
229
+ },
230
+ {
231
+ "type": "hundredGrid",
232
+ "geometryRef": "hundredchart_question",
233
+ "config": {
234
+ "interactive": {
235
+ "mode": "multi-select"
236
+ }
237
+ }
238
+ }
239
+ ]
240
+ },
241
+ "solve": {
242
+ "layout": {
243
+ "type": "card",
244
+ "padding": "$spacing.large"
245
+ },
246
+ "items": [
247
+ {
248
+ "type": "text",
249
+ "content": "解题思路",
250
+ "style": {
251
+ "fontSize": "1.5rem",
252
+ "color": "#1e293b",
253
+ "fontWeight": "bold"
254
+ }
255
+ },
256
+ {
257
+ "type": "text",
258
+ "content": "12 的因数可以通过找出能整除 12 的整数得到。用矩形拼接可以直观理解:",
259
+ "style": {
260
+ "fontSize": "1rem",
261
+ "color": "#475569"
262
+ }
263
+ },
264
+ {
265
+ "type": "text",
266
+ "content": "1 × 12 = 12",
267
+ "style": {
268
+ "fontSize": "1.1rem",
269
+ "color": "#4a90e2",
270
+ "fontWeight": "bold"
271
+ }
272
+ },
273
+ {
274
+ "type": "hundredGrid",
275
+ "geometryRef": "hundredchart_1x12"
276
+ },
277
+ {
278
+ "type": "text",
279
+ "content": "2 × 6 = 12",
280
+ "style": {
281
+ "fontSize": "1.1rem",
282
+ "color": "#4a90e2",
283
+ "fontWeight": "bold"
284
+ }
285
+ },
286
+ {
287
+ "type": "hundredGrid",
288
+ "geometryRef": "hundredchart_2x6"
289
+ },
290
+ {
291
+ "type": "text",
292
+ "content": "3 × 4 = 12",
293
+ "style": {
294
+ "fontSize": "1.1rem",
295
+ "color": "#4a90e2",
296
+ "fontWeight": "bold"
297
+ }
298
+ },
299
+ {
300
+ "type": "hundredGrid",
301
+ "geometryRef": "hundredchart_3x4"
302
+ },
303
+ {
304
+ "type": "text",
305
+ "content": "点击查看详细解题步骤 →",
306
+ "style": {
307
+ "fontSize": "1rem",
308
+ "color": "#64748b",
309
+ "textAlign": "center"
310
+ }
311
+ }
312
+ ]
313
+ },
314
+ "success": {
315
+ "layout": {
316
+ "type": "card",
317
+ "padding": "$spacing.large"
318
+ },
319
+ "items": [
320
+ {
321
+ "type": "text",
322
+ "content": "回答正确!",
323
+ "style": {
324
+ "fontSize": "1.5rem",
325
+ "color": "#1e293b",
326
+ "fontWeight": "bold"
327
+ }
328
+ },
329
+ {
330
+ "type": "text",
331
+ "content": "太棒了!12 的所有因数就是 1, 2, 3, 4, 6, 12。",
332
+ "style": {
333
+ "fontSize": "1rem",
334
+ "color": "#475569"
335
+ }
336
+ }
337
+ ]
338
+ }
339
+ },
340
+ "explanation": {
341
+ "steps": [
342
+ {
343
+ "id": "step-1",
344
+ "type": "instructionalStep",
345
+ "title": "从1开始找因数",
346
+ "description": "从1开始寻找12的因数。\n\n1 × 12 = 12,所以1和12都是12的因数。\n\n观察下方的百格图:1排12个,正好表示1×12=12。",
347
+ "chartConfig": {
348
+ "type": "hundredGrid",
349
+ "rows": 1,
350
+ "cols": 12,
351
+ "cellSize": 28,
352
+ "mode": "readonly",
353
+ "value": 12,
354
+ "fillColor": "#4a90e2",
355
+ "baseColor": "#f8fafc"
356
+ }
357
+ },
358
+ {
359
+ "id": "step-2",
360
+ "type": "instructionalStep",
361
+ "title": "继续找下一对因数",
362
+ "description": "继续寻找12的因数。\n\n2 × 6 = 12,所以2和6也都是12的因数。\n\n观察下方的百格图:2排,每排6个,正好表示2×6=12。",
363
+ "chartConfig": {
364
+ "type": "hundredGrid",
365
+ "rows": 2,
366
+ "cols": 6,
367
+ "cellSize": 32,
368
+ "mode": "readonly",
369
+ "value": 12,
370
+ "fillColor": "#f0ad4e",
371
+ "baseColor": "#f8fafc"
372
+ }
373
+ },
374
+ {
375
+ "id": "step-3",
376
+ "type": "instructionalStep",
377
+ "title": "找到最后一对因数",
378
+ "description": "继续寻找12的因数。\n\n3 × 4 = 12,所以3和4也是12的因数。\n\n观察下方的百格图:3排,每排4个,正好表示3×4=12。\n\n当两个因数接近时(3和4),说明已经找到了所有因数对。",
379
+ "chartConfig": {
380
+ "type": "hundredGrid",
381
+ "rows": 3,
382
+ "cols": 4,
383
+ "cellSize": 32,
384
+ "mode": "readonly",
385
+ "value": 12,
386
+ "fillColor": "#5cb85c",
387
+ "baseColor": "#f8fafc"
388
+ }
389
+ }
390
+ ]
391
+ },
392
+ "layout": {
393
+ "type": "card",
394
+ "padding": "$spacing.large",
395
+ "theme": "light",
396
+ "renderer": {
397
+ "showFormulaSteps": true,
398
+ "interactiveAnimations": true,
399
+ "validateAnswers": true
400
+ }
401
+ },
402
+ "answer_info": {
403
+ "value": [1, 2, 3, 4, 6, 12],
404
+ "unit": "",
405
+ "type": "array",
406
+ "tolerance": 0,
407
+ "validation": {
408
+ "type": "exact",
409
+ "allowPartial": false,
410
+ "ignoreOrder": true
411
+ },
412
+ "explanation_text": "12的所有因数是1, 2, 3, 4, 6, 12。因数是指能整除该数的整数。可以通过百格图模型直观理解:12可以表示为1×12、2×6、3×4的矩形排列。",
413
+ "solution_steps": [
414
+ "从最小的整数1开始尝试",
415
+ "1 × 12 = 12,所以1和12都是12的因数",
416
+ "继续尝试2:2 × 6 = 12,所以2和6也是因数",
417
+ "尝试3:3 × 4 = 12,所以3和4也是因数",
418
+ "尝试4:已经找到(3×4),说明因数对开始接近",
419
+ "尝试5:不能整除12,所以5不是因数",
420
+ "尝试6:已经找到(2×6),停止查找"
421
+ ],
422
+ "correctFeedback": "太棒了!你正确找出了12的所有因数。",
423
+ "incorrectFeedback": "检查一下是否漏掉了某些因数,或者包含了不能整除12的数字。"
424
+ },
425
+ "created_at": "2026-03-10T00:00:00Z",
426
+ "updated_at": "2026-03-10T00:00:00Z"
427
+ }