diff --git a/.changeset/honest-tables-impress.md b/.changeset/honest-tables-impress.md new file mode 100644 index 0000000000..29dd4efe54 --- /dev/null +++ b/.changeset/honest-tables-impress.md @@ -0,0 +1,6 @@ +--- +"@khanacademy/perseus": major +"@khanacademy/perseus-dev-ui": patch +--- + +Change ServerItemRenderer scoring APIs to externalize scoring diff --git a/dev/flipbook.tsx b/dev/flipbook.tsx index f6dde1281c..ea05772598 100644 --- a/dev/flipbook.tsx +++ b/dev/flipbook.tsx @@ -18,6 +18,7 @@ import {useEffect, useMemo, useReducer, useRef, useState} from "react"; import {Renderer} from "../packages/perseus/src"; import {SvgImage} from "../packages/perseus/src/components"; +import {scorePerseusItem} from "../packages/perseus/src/renderer-util"; import {mockStrings} from "../packages/perseus/src/strings"; import {isCorrect} from "../packages/perseus/src/util"; import {trueForAllMafsSupportedGraphTypes} from "../packages/perseus/src/widgets/interactive-graphs/mafs-supported-graph-types"; @@ -319,7 +320,15 @@ function GradableRenderer(props: QuestionRendererProps) { leftContent={