From a3a5230cd9d277e8cd30c35f8db6284f99cba986 Mon Sep 17 00:00:00 2001 From: Jeremy Wiebe Date: Fri, 6 Dec 2024 08:57:23 -0800 Subject: [PATCH] Export helper keScoreFromPerseusScore as its used externally --- packages/perseus/src/index.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/packages/perseus/src/index.ts b/packages/perseus/src/index.ts index f16c1ecaf3..3c43155d69 100644 --- a/packages/perseus/src/index.ts +++ b/packages/perseus/src/index.ts @@ -37,8 +37,9 @@ export {default as TableWidget} from "./widgets/table"; export {default as PlotterWidget} from "./widgets/plotter"; export {default as GrapherWidget} from "./widgets/grapher"; -// Some utils in grapher/utils don't need to be used outside of `perseus`, -// so only export the stuff that does need to be exposed +// Some utils in grapher/utils and scoring don't need to be used outside of +// `perseus`, so only export the stuff that does need to be exposed +import {keScoreFromPerseusScore} from "./util/scoring"; import { allTypes, DEFAULT_GRAPHER_PROPS, @@ -57,6 +58,10 @@ export const GrapherUtil = { typeToButton, }; +export const ScoringUtil = { + keScoreFromPerseusScore, +}; + /** * Misc */