Skip to content

Commit

Permalink
Export CursorContext (#259)
Browse files Browse the repository at this point in the history
## Summary:

@khanacademy/math-input clients sometimes use the CursorContext as part of using the math-input project. Instead of re-defining the values in the object, this PR adds it as an export from the main module.

Issue: MOB-4525

## Test plan:

Author: jeremywiebe

Reviewers: kevinbarabash

Required Reviewers:

Approved By: kevinbarabash

Checks: ✅ Lint, Flow, and Test (ubuntu-latest, 16.x), ✅ Extract i18n strings (ubuntu-latest, 16.x), ✅ Check builds for changes in size (ubuntu-latest, 16.x), ✅ Check for .changeset file (ubuntu-latest, 16.x), ✅ Cypress Coverage (ubuntu-latest, 16.x), ✅ Jest Coverage (ubuntu-latest, 16.x), ❌ codecov/project, ✅ gerald, ✅ gerald

Pull Request URL: #259
  • Loading branch information
jeremywiebe committed Jun 6, 2022
1 parent deead04 commit 96288b8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/happy-windows-repair.md
@@ -0,0 +1,5 @@
---
"@khanacademy/math-input": patch
---

Export CursorContexts
4 changes: 4 additions & 0 deletions packages/math-input/src/index.js
Expand Up @@ -12,3 +12,7 @@ export {
} from "./components/prop-types.js";
export {default as Keypad} from "./components/provided-keypad.js";
export {KeypadTypes} from "./consts.js";

import * as CursorContexts from "./components/input/cursor-contexts.js";

export {CursorContexts};

0 comments on commit 96288b8

Please sign in to comment.