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

[rm-input-number] 1 - Replace input-number with numeric-input #430

Draft
wants to merge 6 commits into
base: feature/remove-input-number
Choose a base branch
from

Conversation

jeremywiebe
Copy link
Collaborator

@jeremywiebe jeremywiebe commented Mar 24, 2023

Summary:

This PR starts the process of deleting the input-number widget from Perseus. Existing data referencing input-number are now rendered with numeric-input widgets. We use the propUpgrades widget option to migrate the input-number options to equivalent numeric-input options.

Note that this PR contains Flow and Jest failures. I am going to fix/resolve these issues over the next few PRs so that each one is smaller and easier to review. The entire stack will only be landed once everything has been fixed and tested.

Previous PRs in stack:

  • <none>

Issue: LC-616

Test plan:

yarn test packages/perseus/src/widgets/__tests__/numeric-input_test.jsx

@jeremywiebe jeremywiebe self-assigned this Mar 24, 2023
@changeset-bot
Copy link

changeset-bot bot commented Mar 24, 2023

🦋 Changeset detected

Latest commit: 1456267

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@khanacademy/perseus Minor
@khanacademy/perseus-editor Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2023

npm Snapshot: Published

🎉 Good news!! We've packaged up the latest commit from this PR (820fbdb) and published it to npm. You
can install it using the tag PR430.

Example:

yarn add @khanacademy/perseus@PR430

@github-actions
Copy link
Contributor

github-actions bot commented Mar 24, 2023

Size Change: -323 B (0%)

Total Size: 652 kB

Filename Size Change
packages/perseus-editor/dist/es/index.js 114 kB -118 B (0%)
packages/perseus/dist/es/index.js 398 kB -205 B (0%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 38 kB
packages/kmath/dist/es/index.js 4.13 kB
packages/math-input/dist/es/index.js 60.3 kB
packages/perseus-error/dist/es/index.js 705 B
packages/perseus-linter/dist/es/index.js 21.2 kB
packages/pure-markdown/dist/es/index.js 3.65 kB
packages/simple-markdown/dist/es/index.js 12.6 kB

compressed-size-action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant