-
Notifications
You must be signed in to change notification settings - Fork 354
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
Add some comments to external APIs #2272
Conversation
Size Change: +121 B (+0.02%) Total Size: 736 kB
ℹ️ View Unchanged
|
npm Snapshot: PublishedGood news!! We've packaged up the latest commit from this PR (53fbed2) and published it to npm. You Example: pnpm add @khanacademy/perseus@PR2272 If you are working in Khan Academy's webapp, you can run: ./dev/tools/bump_perseus_version.sh -t PR2272 |
@@ -5,6 +5,11 @@ import {getUpgradedWidgetOptions} from "../widgets/upgrade"; | |||
|
|||
import type {PerseusRenderer} from "../data-schema"; | |||
|
|||
/** | |||
* get a copy of a Perseus item with pre-scoring data removed (ie answers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we agreed to call this rubric data.
* get a copy of a Perseus item with pre-scoring data removed (ie answers) | |
* Return a copy of a Perseus item with rubric data removed (ie answers) |
/** | ||
* get a copy of a Perseus item with pre-scoring data removed (ie answers) | ||
* | ||
* @param originalItem - the full answer data, includes the correct answer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @param originalItem - the full answer data, includes the correct answer | |
* @param originalItem - the original, full Perseus item (which includes the rubric - aka answer data) |
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/keypad-context@1.1.6 ### Patch Changes - Updated dependencies \[[`1b5f51415`](1b5f514), [`4c0b317c3`](4c0b317), [`335940746`](3359407)]: - @khanacademy/perseus-core@5.4.1 ## @khanacademy/kmath@0.4.6 ### Patch Changes - Updated dependencies \[[`1b5f51415`](1b5f514), [`4c0b317c3`](4c0b317), [`335940746`](3359407)]: - @khanacademy/perseus-core@5.4.1 ## @khanacademy/math-input@23.0.5 ### Patch Changes - Updated dependencies \[[`1b5f51415`](1b5f514), [`4c0b317c3`](4c0b317), [`335940746`](3359407)]: - @khanacademy/perseus-core@5.4.1 - @khanacademy/keypad-context@1.1.6 ## @khanacademy/perseus@57.2.1 ### Patch Changes - [#2289](#2289) [`87420d7d3`](87420d7) Thanks [@handeyeco](https://github.com/handeyeco)! - Update ServerItemRendererWithDebugUI to optionally use answerless data for rendering - [#2313](#2313) [`3b0b1c700`](3b0b1c7) Thanks [@nishasy](https://github.com/nishasy)! - [LX] Stop locked functions from memory leaking - Updated dependencies \[[`1b5f51415`](1b5f514), [`c170c1d3c`](c170c1d), [`4c0b317c3`](4c0b317), [`335940746`](3359407)]: - @khanacademy/perseus-core@5.4.1 - @khanacademy/perseus-score@2.3.6 - @khanacademy/keypad-context@1.1.6 - @khanacademy/kmath@0.4.6 - @khanacademy/math-input@23.0.5 - @khanacademy/perseus-linter@1.3.6 ## @khanacademy/perseus-core@5.4.1 ### Patch Changes - [#2308](#2308) [`1b5f51415`](1b5f514) Thanks [@benchristel](https://github.com/benchristel)! - Fix a bug in numeric input scoring where `simplify` value of `false` led to incorrect scoring logic being applied - [#2319](#2319) [`4c0b317c3`](4c0b317) Thanks [@benchristel](https://github.com/benchristel)! - Internal: unskip regression tests for Perseus JSON parser and update snapshots - [#2272](#2272) [`335940746`](3359407) Thanks [@handeyeco](https://github.com/handeyeco)! - Add comments to external-facing functions ## @khanacademy/perseus-editor@18.2.1 ### Patch Changes - Updated dependencies \[[`1b5f51415`](1b5f514), [`c170c1d3c`](c170c1d), [`87420d7d3`](87420d7), [`4c0b317c3`](4c0b317), [`335940746`](3359407), [`3b0b1c700`](3b0b1c7)]: - @khanacademy/perseus-core@5.4.1 - @khanacademy/perseus-score@2.3.6 - @khanacademy/perseus@57.2.1 - @khanacademy/keypad-context@1.1.6 - @khanacademy/kmath@0.4.6 - @khanacademy/math-input@23.0.5 - @khanacademy/perseus-linter@1.3.6 ## @khanacademy/perseus-linter@1.3.6 ### Patch Changes - Updated dependencies \[[`1b5f51415`](1b5f514), [`4c0b317c3`](4c0b317), [`335940746`](3359407)]: - @khanacademy/perseus-core@5.4.1 ## @khanacademy/perseus-score@2.3.6 ### Patch Changes - [#2278](#2278) [`c170c1d3c`](c170c1d) Thanks [@handeyeco](https://github.com/handeyeco)! - Remove jQuery as a dependency of perseus-score - [#2272](#2272) [`335940746`](3359407) Thanks [@handeyeco](https://github.com/handeyeco)! - Add comments to external-facing functions - Updated dependencies \[[`1b5f51415`](1b5f514), [`4c0b317c3`](4c0b317), [`335940746`](3359407)]: - @khanacademy/perseus-core@5.4.1 - @khanacademy/kmath@0.4.6 ## @khanacademy/perseus-dev-ui@5.3.6 ### Patch Changes - Updated dependencies \[[`1b5f51415`](1b5f514), [`4c0b317c3`](4c0b317), [`335940746`](3359407)]: - @khanacademy/perseus-core@5.4.1 - @khanacademy/kmath@0.4.6 - @khanacademy/math-input@23.0.5 - @khanacademy/perseus-linter@1.3.6 Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary:
Jeremy asked me to add some comments