@khanacademy/perseus 1.1.2 → 1.3.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 (34) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/dist/es/index.css +4 -5
  3. package/dist/es/index.js +1282 -1429
  4. package/dist/es/index.js.map +1 -1
  5. package/dist/index.css +4 -5
  6. package/dist/index.js +1283 -1429
  7. package/dist/index.js.map +1 -1
  8. package/package.json +7 -7
  9. package/src/__tests__/__snapshots__/renderer_test.jsx.snap +21 -3
  10. package/src/components/highlighting/ui/highlight-tooltip.jsx +29 -23
  11. package/src/components/highlighting/ui/selection-tracker.jsx +17 -28
  12. package/src/styles/articles.less +0 -2
  13. package/src/styles/perseus-renderer.less +1 -1
  14. package/src/styles/widgets/passage.less +7 -3
  15. package/src/widgets/__stories__/passage-ref.stories.jsx +6 -2
  16. package/src/widgets/__stories__/passage.stories.jsx +9 -1
  17. package/src/widgets/__stories__/radio.stories.jsx +11 -0
  18. package/src/widgets/__testdata__/passage-ref_testdata.js +62 -0
  19. package/src/widgets/__testdata__/passage_testdata.js +25 -0
  20. package/src/widgets/__testdata__/radio_testdata.js +52 -0
  21. package/src/widgets/__tests__/__snapshots__/dropdown_test.jsx.snap +16 -2
  22. package/src/widgets/__tests__/__snapshots__/passage-ref_test.jsx.snap +18 -18
  23. package/src/widgets/__tests__/__snapshots__/passage_test.jsx.snap +36 -36
  24. package/src/widgets/__tests__/passage_test.jsx +6 -8
  25. package/src/widgets/__tests__/radio_test.jsx +3 -1
  26. package/src/widgets/passage.jsx +12 -41
  27. package/src/widgets/radio/widget.jsx +128 -129
  28. package/src/components/new-tooltip/README.md +0 -3
  29. package/src/components/new-tooltip/__stories__/new-tooltip.stories.jsx +0 -665
  30. package/src/components/new-tooltip/__tests__/style-constants_test.js +0 -8
  31. package/src/components/new-tooltip/new-tooltip.jsx +0 -155
  32. package/src/components/new-tooltip/style-constants.js +0 -13
  33. package/src/components/new-tooltip/types.js +0 -183
  34. package/src/widgets/passage/get-line-height-for-node.js +0 -9
package/CHANGELOG.md CHANGED
@@ -1,5 +1,28 @@
1
1
  # @khanacademy/perseus
2
2
 
3
+ ## 1.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e783be76: Fix passage fonts because content depends on it being an exact size
8
+
9
+ ### Patch Changes
10
+
11
+ - ec92d308: Fix bug with Passage where line numbers stopped abruptly
12
+ - dd55b5e4: Update gutter line numbers in passage
13
+
14
+ ## 1.2.0
15
+
16
+ ### Minor Changes
17
+
18
+ - cede09bd: Fix passage widget bug bug where highlight is immediately lost when tooltip appears
19
+
20
+ ### Patch Changes
21
+
22
+ - 5ba90816: CSS fix to remove gradient background on math
23
+ - 96ddd9b7: Update package.json with yarn start command
24
+ - a90a52c6: Update body fonts
25
+
3
26
  ## 1.1.2
4
27
 
5
28
  ### Patch Changes
package/dist/es/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;
@@ -3071,11 +3070,11 @@ body.mobile .perseus-matrix .math-output {
3071
3070
  margin: 0 0 10px;
3072
3071
  }
3073
3072
  .perseus-widget-passage-container .passage-text div.paragraph {
3074
- font-family: "Noto Serif", serif;
3075
3073
  font-weight: 400;
3076
- font-size: 20px;
3077
- line-height: 24px;
3074
+ font-size: 16px;
3075
+ line-height: 20px;
3078
3076
  text-indent: 20px;
3077
+ margin: 0;
3079
3078
  }
3080
3079
  .perseus-widget-passage-container .passage-text div.paragraph span {
3081
3080
  text-indent: 0;