@khanacademy/perseus 18.0.0 → 18.0.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/CHANGELOG.md +9 -0
- package/dist/es/index.js +7 -2
- package/dist/es/index.js.map +1 -1
- package/dist/index.js +7 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
- package/src/widgets/label-image/answer-pill.tsx +6 -1
- package/tsconfig-build.tsbuildinfo +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @khanacademy/perseus
|
|
2
2
|
|
|
3
|
+
## 18.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#940](https://github.com/Khan/perseus/pull/940) [`e970dfcc`](https://github.com/Khan/perseus/commit/e970dfcc51e7b535e94669e6ffe0cbdd6d9b7b89) Thanks [@nishasy](https://github.com/nishasy)! - Fixed the answer pill's height in Label Image widget to account for multi-line answers
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`e970dfcc`](https://github.com/Khan/perseus/commit/e970dfcc51e7b535e94669e6ffe0cbdd6d9b7b89)]:
|
|
10
|
+
- @khanacademy/math-input@16.5.1
|
|
11
|
+
|
|
3
12
|
## 18.0.0
|
|
4
13
|
|
|
5
14
|
### Major Changes
|
package/dist/es/index.js
CHANGED
|
@@ -31008,7 +31008,7 @@ const AnswerPill = props => {
|
|
|
31008
31008
|
id: idFactory.get("perseus-label-image-widget-answer-pill"),
|
|
31009
31009
|
onClick: correct ? undefined : onClick,
|
|
31010
31010
|
ref: ref,
|
|
31011
|
-
style: [style, popperStyle, styles$h.
|
|
31011
|
+
style: [style, popperStyle, styles$h.pill, correct && styles$h.correct, incorrect && styles$h.incorrect, (focused || hovered) && BringToFront]
|
|
31012
31012
|
}, /*#__PURE__*/React.createElement(Renderer, {
|
|
31013
31013
|
content: answerString,
|
|
31014
31014
|
inline: true
|
|
@@ -31021,6 +31021,11 @@ const styles$h = StyleSheet.create({
|
|
|
31021
31021
|
},
|
|
31022
31022
|
incorrect: {
|
|
31023
31023
|
backgroundColor: Color.offBlack64
|
|
31024
|
+
},
|
|
31025
|
+
pill: {
|
|
31026
|
+
// Reset the Pill's default height in order to account
|
|
31027
|
+
// for multi-line pills.
|
|
31028
|
+
height: "auto"
|
|
31024
31029
|
}
|
|
31025
31030
|
});
|
|
31026
31031
|
|
|
@@ -43981,7 +43986,7 @@ const init = function init(options) {
|
|
|
43981
43986
|
|
|
43982
43987
|
// This file is processed by a Rollup plugin (replace) to inject the production
|
|
43983
43988
|
const libName = "@khanacademy/perseus";
|
|
43984
|
-
const libVersion = "18.0.
|
|
43989
|
+
const libVersion = "18.0.1";
|
|
43985
43990
|
addLibraryVersionToPerseusDebug(libName, libVersion);
|
|
43986
43991
|
|
|
43987
43992
|
const apiVersion = {
|