@khanacademy/perseus 20.5.0 → 20.7.0
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/components/icon.d.ts +1 -0
- package/dist/es/index.css +19 -6
- package/dist/es/index.js +750 -269
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +19 -6
- package/dist/index.d.ts +2 -0
- package/dist/index.js +853 -358
- package/dist/index.js.map +1 -1
- package/dist/interactive2/movable.d.ts +1 -1
- package/dist/interactive2/objective_.d.ts +2 -2
- package/dist/styles/global-styles.d.ts +1 -0
- package/dist/styles/shared.d.ts +1 -0
- package/dist/types.d.ts +102 -0
- package/dist/util/a11y.d.ts +1 -0
- package/dist/util/extract-perseus-data.d.ts +8 -1
- package/dist/util/snowman-utils.d.ts +90 -0
- package/dist/util/widget-enum-utils.d.ts +11 -0
- package/dist/util.d.ts +1 -1
- package/dist/widgets/interactive-graph.d.ts +9 -2
- package/dist/widgets/interactive-graphs/graphs/index.d.ts +1 -0
- package/dist/widgets/interactive-graphs/graphs/polygon.d.ts +5 -0
- package/dist/widgets/interactive-graphs/mafs-graph.d.ts +1 -1
- package/dist/widgets/interactive-graphs/reducer/interactive-graph-action.d.ts +27 -0
- package/dist/widgets/interactive-graphs/reducer/interactive-graph-reducer.d.ts +3 -0
- package/dist/widgets/interactive-graphs/{interactive-graph-state.d.ts → reducer/interactive-graph-state.d.ts} +2 -2
- package/dist/widgets/interactive-graphs/types.d.ts +12 -6
- package/dist/widgets/interactive-graphs/utils.d.ts +5 -0
- package/dist/widgets/label-image/answer-pill.d.ts +1 -0
- package/dist/widgets/label-image/marker.d.ts +1 -0
- package/dist/widgets/radio/choice-icon/shared-styles.d.ts +1 -0
- package/dist/widgets/radio.d.ts +1 -1
- package/package.json +4 -6
- package/dist/widgets/interactive-graphs/interactive-graph-action.d.ts +0 -17
- package/dist/widgets/interactive-graphs/interactive-graph-reducer.d.ts +0 -3
- /package/dist/widgets/radio/{widget.d.ts → radio.d.ts} +0 -0
package/dist/index.css
CHANGED
|
@@ -150,7 +150,10 @@ div.definition {
|
|
|
150
150
|
margin: 10px 0;
|
|
151
151
|
}
|
|
152
152
|
#debug var {
|
|
153
|
-
font:
|
|
153
|
+
font:
|
|
154
|
+
14px Menlo,
|
|
155
|
+
Courier,
|
|
156
|
+
monospace;
|
|
154
157
|
word-wrap: break-word;
|
|
155
158
|
}
|
|
156
159
|
|
|
@@ -329,7 +332,11 @@ body.debug .graphie {
|
|
|
329
332
|
}
|
|
330
333
|
|
|
331
334
|
#answer_area .calculator .history {
|
|
332
|
-
font:
|
|
335
|
+
font:
|
|
336
|
+
14px/1.5 Menlo,
|
|
337
|
+
Monaco,
|
|
338
|
+
Courier,
|
|
339
|
+
monospace;
|
|
333
340
|
margin: 0 0 10px;
|
|
334
341
|
width: 183px;
|
|
335
342
|
|
|
@@ -383,7 +390,11 @@ body.debug .graphie {
|
|
|
383
390
|
|
|
384
391
|
#answer_area .calculator .history .status a {
|
|
385
392
|
position: absolute;
|
|
386
|
-
font:
|
|
393
|
+
font:
|
|
394
|
+
10px/1.5 Menlo,
|
|
395
|
+
Monaco,
|
|
396
|
+
Courier,
|
|
397
|
+
monospace;
|
|
387
398
|
color: #999;
|
|
388
399
|
text-decoration: none;
|
|
389
400
|
line-height: 9px;
|
|
@@ -4276,15 +4287,17 @@ html body .mq-editable-field .mq-selection .mq-nthroot-container * {
|
|
|
4276
4287
|
|
|
4277
4288
|
--movable-line-stroke-color: var(--mafs-blue);
|
|
4278
4289
|
--movable-line-stroke-weight: 2px;
|
|
4290
|
+
--movable-line-stroke-weight-active: 4px;
|
|
4279
4291
|
}
|
|
4280
4292
|
|
|
4281
4293
|
.MafsView .movable-line:is(:focus-visible, :hover),
|
|
4282
|
-
.movable-
|
|
4294
|
+
.movable-dragging {
|
|
4283
4295
|
outline: none;
|
|
4284
|
-
--movable-line-stroke-weight:
|
|
4296
|
+
--movable-line-stroke-weight: var(--movable-line-stroke-weight-active);
|
|
4285
4297
|
}
|
|
4286
4298
|
|
|
4287
|
-
.MafsView .movable-line:focus
|
|
4299
|
+
.MafsView .movable-line:focus,
|
|
4300
|
+
.movable-polygon:focus {
|
|
4288
4301
|
outline: none;
|
|
4289
4302
|
}
|
|
4290
4303
|
|
package/dist/index.d.ts
CHANGED
|
@@ -68,6 +68,8 @@ export * as SizingUtils from "./util/sizing-utils";
|
|
|
68
68
|
export { getAnswersFromWidgets, injectWidgets, } from "./util/extract-perseus-data";
|
|
69
69
|
export { parsePerseusItem } from "./util/parse-perseus-json";
|
|
70
70
|
export { generateTestPerseusItem, genericPerseusItemData, } from "./util/test-utils";
|
|
71
|
+
export { convertWidgetNameToEnum, getWidgetTypeFromWidgetId, } from "./util/widget-enum-utils";
|
|
72
|
+
export { WidgetType, addWidget, getAllWidgetIds, getAllWidgetTypes, getQuestionWidgetIds, QUESTION_WIDGETS, } from "./util/snowman-utils";
|
|
71
73
|
/**
|
|
72
74
|
* Mixins
|
|
73
75
|
*/
|