@khanacademy/perseus 1.1.1 → 1.2.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.
Files changed (48) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/es/index.css +2 -2
  3. package/dist/es/index.js +14997 -15079
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/index.css +2 -2
  6. package/dist/index.js +15033 -15113
  7. package/dist/index.js.map +1 -1
  8. package/dist/strings.js +1 -0
  9. package/package.json +7 -7
  10. package/src/__stories__/hints-renderer.stories.jsx +52 -0
  11. package/src/__tests__/__snapshots__/renderer_test.jsx.snap +21 -3
  12. package/src/components/highlighting/ui/highlight-tooltip.jsx +29 -23
  13. package/src/components/highlighting/ui/selection-tracker.jsx +17 -28
  14. package/src/hints-renderer.jsx +13 -4
  15. package/src/mixins/__tests__/widget-prop-blacklist_test.js +23 -0
  16. package/src/mixins/widget-prop-blacklist.js +15 -1
  17. package/src/multi-items/__tests__/__snapshots__/multi-renderer_test.js.snap +30 -10
  18. package/src/styles/articles.less +0 -2
  19. package/src/styles/perseus-renderer.less +1 -1
  20. package/src/styles/widgets/passage.less +1 -0
  21. package/src/types.js +1 -1
  22. package/src/widgets/__tests__/__snapshots__/dropdown_test.jsx.snap +16 -2
  23. package/src/widgets/__tests__/__snapshots__/graded-group-set-jipt_test.jsx.snap +3 -3
  24. package/src/widgets/__tests__/__snapshots__/graded-group-set_test.jsx.snap +7 -1
  25. package/src/widgets/__tests__/__snapshots__/graded-group_test.jsx.snap +2 -2
  26. package/src/widgets/__tests__/__snapshots__/group_test.jsx.snap +30 -10
  27. package/src/widgets/__tests__/__snapshots__/passage-ref_test.jsx.snap +3 -3
  28. package/src/widgets/__tests__/__snapshots__/passage_test.jsx.snap +6 -6
  29. package/src/widgets/__tests__/__snapshots__/radio_test.jsx.snap +300 -218
  30. package/src/widgets/__tests__/radio/base-radio_test.jsx +90 -6
  31. package/src/widgets/__tests__/radio/choice-icon_test.jsx +74 -0
  32. package/src/widgets/__tests__/radio/choice_test.jsx +39 -30
  33. package/src/widgets/__tests__/radio_test.jsx +228 -22
  34. package/src/widgets/graded-group-set.jsx +8 -1
  35. package/src/widgets/graded-group.jsx +2 -1
  36. package/src/widgets/passage-ref.jsx +21 -5
  37. package/src/widgets/passage.jsx +3 -1
  38. package/src/widgets/radio/__stories__/base-radio.stories.jsx +7 -3
  39. package/src/widgets/radio/base-radio.jsx +3 -1
  40. package/src/widgets/radio/choice-icon/cross-out-line.jsx +3 -2
  41. package/src/widgets/radio/choice-icon/library-choice-icon.jsx +17 -6
  42. package/src/widgets/radio/choice.jsx +2 -1
  43. package/src/components/new-tooltip/README.md +0 -3
  44. package/src/components/new-tooltip/__stories__/new-tooltip.stories.jsx +0 -665
  45. package/src/components/new-tooltip/__tests__/style-constants_test.js +0 -8
  46. package/src/components/new-tooltip/new-tooltip.jsx +0 -155
  47. package/src/components/new-tooltip/style-constants.js +0 -13
  48. package/src/components/new-tooltip/types.js +0 -183
package/dist/index.css CHANGED
@@ -1467,7 +1467,6 @@ body.mobile ul.inequalities-one-line-radios > li {
1467
1467
  position: relative;
1468
1468
  }
1469
1469
  .bibliotron-article.framework-perseus.perseus-article:not(.perseus-mobile) .perseus-block-math:before {
1470
- background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, #ffffff 100%);
1471
1470
  bottom: 0;
1472
1471
  content: "";
1473
1472
  position: absolute;
@@ -2285,7 +2284,7 @@ img.zoom-img {
2285
2284
  z-index: 3;
2286
2285
  }
2287
2286
  .framework-perseus div.paragraph {
2288
- font-family: "Noto Serif", serif;
2287
+ font-family: "Lato", sans-serif;
2289
2288
  font-weight: 400;
2290
2289
  font-size: 18px;
2291
2290
  line-height: 22px;
@@ -3075,6 +3074,7 @@ body.mobile .perseus-matrix .math-output {
3075
3074
  font-weight: 400;
3076
3075
  font-size: 20px;
3077
3076
  line-height: 24px;
3077
+ text-indent: 20px;
3078
3078
  }
3079
3079
  .perseus-widget-passage-container .passage-text div.paragraph span {
3080
3080
  text-indent: 0;