Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update mathjax-renderer to v2. #1235

Merged
merged 4 commits into from
May 8, 2024
Merged

Update mathjax-renderer to v2. #1235

merged 4 commits into from
May 8, 2024

Conversation

jeresig
Copy link
Member

@jeresig jeresig commented Apr 29, 2024

Summary:

This adds in a required locale param to createMathField, which is the biggest change, and technically a breaking change, so I'm going to do a major version bump on math-input.

Issue: FEI-5571

Test plan:

Tests all pass.

@jeresig jeresig self-assigned this Apr 29, 2024
@khan-actions-bot khan-actions-bot requested a review from a team April 29, 2024 15:14
@khan-actions-bot
Copy link
Contributor

khan-actions-bot commented Apr 29, 2024

Gerald

Required Reviewers
  • @Khan/perseus for changes to package.json, yarn.lock, .changeset/slow-pans-work.md, testing/test-mathjax.tsx, packages/math-input/package.json, packages/perseus/src/components/math-input.tsx, packages/math-input/src/components/input/math-wrapper.ts, packages/math-input/src/components/input/mathquill-instance.ts, packages/math-input/src/components/keypad/keypad-mathquill.stories.tsx, packages/perseus-editor/src/widgets/interaction-editor/mathquill-input.tsx, packages/math-input/src/components/input/__tests__/mathquill-helpers.test.ts, packages/math-input/src/components/key-handlers/__tests__/handle-jump-out.test.ts, packages/math-input/src/components/keypad/__tests__/keypad-v2-mathquill.test.tsx

Don't want to be involved in this pull request? Comment #removeme and we won't notify you of further changes.

Copy link
Contributor

github-actions bot commented Apr 29, 2024

Size Change: +17 B (0%)

Total Size: 833 kB

Filename Size Change
packages/math-input/dist/es/index.js 80.5 kB +8 B (0%)
packages/perseus-editor/dist/es/index.js 267 kB +8 B (0%)
packages/perseus/dist/es/index.js 398 kB +1 B (0%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38.1 kB
packages/kmath/dist/es/index.js 4.27 kB
packages/math-input/dist/es/strings.js 1.73 kB
packages/perseus-core/dist/es/index.js 908 B
packages/perseus-error/dist/es/index.js 878 B
packages/perseus-linter/dist/es/index.js 21.8 kB
packages/perseus/dist/es/strings.js 3.22 kB
packages/pure-markdown/dist/es/index.js 3.68 kB
packages/simple-markdown/dist/es/index.js 12.4 kB

compressed-size-action

Copy link

codecov bot commented Apr 29, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 70.30%. Comparing base (db04157) to head (1d30db3).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1235      +/-   ##
==========================================
+ Coverage   68.75%   70.30%   +1.55%     
==========================================
  Files         468      472       +4     
  Lines      100702   100769      +67     
  Branches     7141    10802    +3661     
==========================================
+ Hits        69233    70841    +1608     
+ Misses      31354    29928    -1426     
+ Partials      115        0     -115     

Impacted file tree graph

Files Coverage Δ
...es/math-input/src/components/input/math-wrapper.ts 59.79% <100.00%> (ø)
packages/perseus/src/components/math-input.tsx 80.11% <100.00%> (-0.73%) ⬇️
...h-input/src/components/input/mathquill-instance.ts 98.58% <50.00%> (+0.01%) ⬆️
...src/widgets/interaction-editor/mathquill-input.tsx 36.90% <0.00%> (-0.45%) ⬇️

... and 125 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update db04157...1d30db3. Read the comment docs.

Copy link
Contributor

github-actions bot commented Apr 29, 2024

npm Snapshot: Published

Good news!! We've packaged up the latest commit from this PR (1d30db3) and published it to npm. You
can install it using the tag PR1235.

Example:

yarn add @khanacademy/perseus@PR1235

If you are working in Khan Academy's webapp, you can run:

./dev/tools/bump_perseus_version.sh -t PR1235

Copy link
Member

@benchristel benchristel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

@jeresig jeresig merged commit 87169b2 into main May 8, 2024
12 of 13 checks passed
@jeresig jeresig deleted the FEI-5571 branch May 8, 2024 20:15
jeresig added a commit that referenced this pull request May 8, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @khanacademy/math-input@19.0.0

### Major Changes

- [#1235](#1235)
[`87169b22b`](87169b2)
Thanks [@jeresig](https://github.com/jeresig)! - Update mathjax-renderer
usage, locale is now required for createMathField.

## @khanacademy/perseus@22.4.1

### Patch Changes

- [#1240](#1240)
[`4a59b85ab`](4a59b85)
Thanks [@benchristel](https://github.com/benchristel)! - Change the tab
order for movable line segments in interactive graphs. Previously, the
order was `(whole segment, first point, second point)`. Now it's `(first
point, whole segment, second point)`, which aligns better with the
visual layout of the graph.


- [#1240](#1240)
[`4a59b85ab`](4a59b85)
Thanks [@benchristel](https://github.com/benchristel)! - Adjust spacing
in locked point and locked line settings


- [#1235](#1235)
[`87169b22b`](87169b2)
Thanks [@jeresig](https://github.com/jeresig)! - Update mathjax-renderer
usage, locale is now required for createMathField.

- Updated dependencies
\[[`87169b22b`](87169b2)]:
    -   @khanacademy/math-input@19.0.0

## @khanacademy/perseus-editor@6.2.2

### Patch Changes

- [#1247](#1247)
[`99f32f531`](99f32f5)
Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Only show a11y
banner for ruler and protractor when either or both is enabled


- [#1240](#1240)
[`4a59b85ab`](4a59b85)
Thanks [@benchristel](https://github.com/benchristel)! - Adjust spacing
in locked point and locked line settings


- [#1235](#1235)
[`87169b22b`](87169b2)
Thanks [@jeresig](https://github.com/jeresig)! - Update mathjax-renderer
usage, locale is now required for createMathField.

- Updated dependencies
\[[`4a59b85ab`](4a59b85),
[`4a59b85ab`](4a59b85),
[`87169b22b`](87169b2)]:
    -   @khanacademy/perseus@22.4.1
    -   @khanacademy/math-input@19.0.0

## @khanacademy/perseus-dev-ui@1.5.6

### Patch Changes

- Updated dependencies
\[[`87169b22b`](87169b2)]:
    -   @khanacademy/math-input@19.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants