From d7d4833852b417857cee226d319438497fd68f14 Mon Sep 17 00:00:00 2001 From: Sarah Third Date: Fri, 22 Nov 2024 10:47:20 -0800 Subject: [PATCH] Revert "Expose a way to get user input from ServerItemRenderer (#1753)" This reverts commit c1ba55fc0247e16d9a78558721969382ee6992f8. --- dev/flipbook.tsx | 11 +--- .../src/components/__tests__/sorter.test.tsx | 12 ++-- packages/perseus/src/index.ts | 2 - packages/perseus/src/renderer-util.test.ts | 51 +-------------- packages/perseus/src/renderer-util.ts | 31 +-------- packages/perseus/src/renderer.tsx | 38 ++++++----- packages/perseus/src/server-item-renderer.tsx | 64 ++----------------- packages/perseus/src/types.ts | 5 -- .../widgets/categorizer/categorizer.test.ts | 18 ++---- .../src/widgets/definition/definition.test.ts | 7 +- .../__tests__/deprecated-standin.test.ts | 7 +- .../widgets/expression/expression.test.tsx | 18 ++---- .../perseus/src/widgets/group/group.test.tsx | 8 +-- packages/perseus/src/widgets/group/group.tsx | 2 - .../src/widgets/matcher/matcher.test.tsx | 12 +++- .../perseus/src/widgets/matrix/matrix.test.ts | 4 ++ .../passage/__tests__/passage.test.tsx | 9 +-- testing/renderer-with-debug-ui.tsx | 11 +--- 18 files changed, 76 insertions(+), 234 deletions(-) diff --git a/dev/flipbook.tsx b/dev/flipbook.tsx index ea05772598..f6dde1281c 100644 --- a/dev/flipbook.tsx +++ b/dev/flipbook.tsx @@ -18,7 +18,6 @@ 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"; @@ -320,15 +319,7 @@ function GradableRenderer(props: QuestionRendererProps) { leftContent={