Skip to content

Fix type issues in WidgetEditor - #4090

Merged
benchristel merged 2 commits into
mainfrom
benc/fix-widget-editor-types
Aug 20, 2026
Merged

Fix type issues in WidgetEditor#4090
benchristel merged 2 commits into
mainfrom
benc/fix-widget-editor-types

Conversation

@benchristel

Copy link
Copy Markdown
Member

Summary:

The general lack of typechecking in the editors meant that these issues went
unnoticed. The new types are more accurate.

Issue: none

Test plan:

Typechecking should pass.

@github-actions

Copy link
Copy Markdown
Contributor

npm Snapshot

Want to try this PR's changes before it merges? Comment /snapshot below and we'll publish an npm snapshot you can install right away.

@github-actions

Copy link
Copy Markdown
Contributor

Size Change: +1 B (0%)

Total Size: 519 kB

📦 View Changed
Filename Size Change
packages/perseus-editor/dist/es/index.js 106 kB +1 B (0%)
ℹ️ View Unchanged
Filename Size
packages/kas/dist/es/index.js 20.6 kB
packages/keypad-context/dist/es/index.js 1 kB
packages/kmath/dist/es/index.js 6.31 kB
packages/math-input/dist/es/index.js 98.6 kB
packages/math-input/dist/es/strings.js 1.63 kB
packages/perseus-core/dist/es/index.item-splitting.js 13.1 kB
packages/perseus-core/dist/es/index.js 28.3 kB
packages/perseus-linter/dist/es/index.js 10.1 kB
packages/perseus-score/dist/es/index.js 9.86 kB
packages/perseus-utils/dist/es/index.js 403 B
packages/perseus/dist/es/index.js 203 kB
packages/perseus/dist/es/strings.js 12.9 kB
packages/pure-markdown/dist/es/index.js 1.39 kB
packages/simple-markdown/dist/es/index.js 6.12 kB

compressed-size-action

Base automatically changed from benc/preserve-whole-widget to main August 20, 2026 16:21
@benchristel
benchristel force-pushed the benc/fix-widget-editor-types branch from f1f07bc to 66e013a Compare August 20, 2026 16:22
@benchristel
benchristel merged commit ddab64b into main Aug 20, 2026
10 checks passed
@benchristel
benchristel deleted the benc/fix-widget-editor-types branch August 20, 2026 17:18
benchristel pushed a commit that referenced this pull request Aug 20, 2026
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/perseus@84.3.0

### Minor Changes

-   [#4100](#4100) [`f533e12`](f533e12) Thanks [@benchristel](https://github.com/benchristel)! - The Definition widget now contrasts more clearly with surrounding text, especially in dark mode.

### Patch Changes

-   [#3983](#3983) [`8e55ded`](8e55ded) Thanks [@handeyeco](https://github.com/handeyeco)! - Some text changes for the NumericInput examples

## @khanacademy/perseus-editor@37.1.1

### Patch Changes

-   [#4087](#4087) [`9912a5c`](9912a5c) Thanks [@benchristel](https://github.com/benchristel)! - Internal: the WidgetEditor now receives the entire `PerseusWidget` object via a `widgetInfo` prop, instead of having the properties of `PerseusWidget` spread into its props.

-   [#4090](#4090) [`ddab64b`](ddab64b) Thanks [@benchristel](https://github.com/benchristel)! - Internal: Improved type safety in the WidgetEditor component

-   Updated dependencies \[[`f533e12`](f533e12), [`8e55ded`](8e55ded)]:
    -   @khanacademy/perseus@84.3.0

Author: khan-actions-bot

Reviewers: benchristel

Required Reviewers:

Approved By: benchristel

Checks: ✅ 11 checks were successful

Pull Request URL: #4102
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants