@khanacademy/perseus 6.4.3 → 6.5.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/CHANGELOG.md +20 -0
- package/dist/components/graph.d.ts +2 -2
- package/dist/components/graph.js.flow +2 -2
- package/dist/components/svg-image.d.ts +1 -1
- package/dist/components/svg-image.js.flow +1 -1
- package/dist/es/index.css +583 -367
- package/dist/es/index.js +5 -5
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +583 -367
- package/dist/index.js +5 -5
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/__stories__/item-renderer.stories.tsx +5 -0
- package/src/__testdata__/item-renderer.testdata.ts +139 -0
- package/src/components/graph.tsx +3 -2
- package/src/components/svg-image.tsx +1 -1
- package/src/multi-items/__tests__/__snapshots__/multi-renderer.test.tsx.snap +8 -8
- package/src/styles/articles.less +24 -18
- package/src/styles/khan-exercise.css +577 -365
- package/src/widgets/__tests__/__snapshots__/group.test.tsx.snap +8 -8
- package/src/widgets/__tests__/__snapshots__/radio.test.ts.snap +49 -49
- package/src/widgets/__tests__/expression.test.ts +0 -3
- package/src/widgets/expression.tsx +0 -1
- package/src/widgets/radio/base-radio.tsx +2 -1
- package/src/widgets/radio/choice.tsx +1 -0
- package/tsconfig-build.tsbuildinfo +1 -1
package/dist/index.js
CHANGED
|
@@ -2488,8 +2488,6 @@ const sendExpressionEvaluatedEvent = result => {
|
|
|
2488
2488
|
getDependencies().analytics({
|
|
2489
2489
|
type: "perseus:expression-evaluated",
|
|
2490
2490
|
payload: {
|
|
2491
|
-
virtualKeypadVersion: "PERSEUS_MATH_INPUT",
|
|
2492
|
-
// STOPSHIP: Or do we push that onto host application?
|
|
2493
2491
|
result
|
|
2494
2492
|
}
|
|
2495
2493
|
});
|
|
@@ -22766,7 +22764,8 @@ const Choice = function (props) {
|
|
|
22766
22764
|
style: {
|
|
22767
22765
|
display: "flex",
|
|
22768
22766
|
flexDirection: "row",
|
|
22769
|
-
opacity: showDimmed ? 0.5 : 1.0
|
|
22767
|
+
opacity: showDimmed ? 0.5 : 1.0,
|
|
22768
|
+
overflow: "auto"
|
|
22770
22769
|
}
|
|
22771
22770
|
}, /*#__PURE__*/React__namespace.createElement("div", {
|
|
22772
22771
|
className: "perseus-sr-only"
|
|
@@ -23242,6 +23241,7 @@ const styles$r = aphrodite.StyleSheet.create({
|
|
|
23242
23241
|
color: gray17,
|
|
23243
23242
|
fontSize: 14,
|
|
23244
23243
|
lineHeight: 1.25,
|
|
23244
|
+
fontFamily: "inherit",
|
|
23245
23245
|
fontStyle: "normal",
|
|
23246
23246
|
fontWeight: "bold",
|
|
23247
23247
|
marginBottom: 16
|
|
@@ -23312,13 +23312,13 @@ const styles$r = aphrodite.StyleSheet.create({
|
|
|
23312
23312
|
responsiveContainer: {
|
|
23313
23313
|
overflow: "auto",
|
|
23314
23314
|
marginLeft: negativePhoneMargin,
|
|
23315
|
-
marginRight: negativePhoneMargin,
|
|
23316
23315
|
paddingLeft: phoneMargin
|
|
23317
23316
|
// paddingRight is handled by responsiveFieldset
|
|
23318
23317
|
},
|
|
23319
23318
|
|
|
23320
23319
|
responsiveFieldset: {
|
|
23321
|
-
paddingRight: phoneMargin
|
|
23320
|
+
paddingRight: phoneMargin,
|
|
23321
|
+
minWidth: "auto"
|
|
23322
23322
|
}
|
|
23323
23323
|
});
|
|
23324
23324
|
|