@khanacademy/perseus 13.1.0 → 13.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +21 -0
- package/dist/es/index.css +0 -7
- package/dist/es/index.js +2 -1
- package/dist/es/index.js.map +1 -1
- package/dist/index.css +0 -7
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/renderer.d.ts +2 -2
- package/dist/widgets/matcher.d.ts +1 -1
- package/package.json +35 -35
- package/src/__stories__/hints-renderer.stories.tsx +41 -44
- package/src/__tests__/__snapshots__/renderer.test.tsx.snap +9 -33
- package/src/__tests__/renderer-api.test.tsx +35 -52
- package/src/renderer.tsx +2 -2
- package/src/styles/khan-exercise.css +0 -2
- package/src/styles/perseus-renderer.less +0 -7
- package/src/widgets/__tests__/__snapshots__/dropdown.test.ts.snap +6 -22
- package/src/widgets/__tests__/__snapshots__/graded-group-set-jipt.test.ts.snap +3 -3
- package/src/widgets/__tests__/__snapshots__/graded-group-set.test.ts.snap +1 -1
- package/src/widgets/__tests__/__snapshots__/graded-group.test.ts.snap +1 -1
- package/src/widgets/__tests__/__snapshots__/radio.test.ts.snap +4 -4
- package/src/widgets/__tests__/matcher.test.tsx +1 -1
- package/src/widgets/matcher.tsx +1 -1
- package/src/widgets/radio/choice.tsx +1 -0
- package/tsconfig-build.tsbuildinfo +1 -1
|
@@ -3638,7 +3638,7 @@ exports[`single-choice question reviewMode: true should snapshot the same: first
|
|
|
3638
3638
|
</button>
|
|
3639
3639
|
</div>
|
|
3640
3640
|
<div
|
|
3641
|
-
class="perseus-radio-rationale-content
|
|
3641
|
+
class="perseus-radio-rationale-content rationale_1ctj0s0"
|
|
3642
3642
|
data-test-id="perseus-radio-rationale-content-0"
|
|
3643
3643
|
>
|
|
3644
3644
|
<div
|
|
@@ -3834,7 +3834,7 @@ exports[`single-choice question reviewMode: true should snapshot the same: first
|
|
|
3834
3834
|
</button>
|
|
3835
3835
|
</div>
|
|
3836
3836
|
<div
|
|
3837
|
-
class="perseus-radio-rationale-content
|
|
3837
|
+
class="perseus-radio-rationale-content rationale_1ctj0s0"
|
|
3838
3838
|
data-test-id="perseus-radio-rationale-content-1"
|
|
3839
3839
|
>
|
|
3840
3840
|
<div
|
|
@@ -4014,7 +4014,7 @@ exports[`single-choice question reviewMode: true should snapshot the same: first
|
|
|
4014
4014
|
</button>
|
|
4015
4015
|
</div>
|
|
4016
4016
|
<div
|
|
4017
|
-
class="perseus-radio-rationale-content
|
|
4017
|
+
class="perseus-radio-rationale-content rationale_1ctj0s0"
|
|
4018
4018
|
data-test-id="perseus-radio-rationale-content-2"
|
|
4019
4019
|
>
|
|
4020
4020
|
<div
|
|
@@ -4195,7 +4195,7 @@ exports[`single-choice question reviewMode: true should snapshot the same: first
|
|
|
4195
4195
|
</button>
|
|
4196
4196
|
</div>
|
|
4197
4197
|
<div
|
|
4198
|
-
class="perseus-radio-rationale-content
|
|
4198
|
+
class="perseus-radio-rationale-content rationale_1ctj0s0"
|
|
4199
4199
|
data-test-id="perseus-radio-rationale-content-3"
|
|
4200
4200
|
>
|
|
4201
4201
|
<div
|
|
@@ -9,7 +9,7 @@ import {question1} from "../__testdata__/matcher.testdata";
|
|
|
9
9
|
import {renderQuestion} from "./renderQuestion";
|
|
10
10
|
|
|
11
11
|
import type {APIOptions} from "../../types";
|
|
12
|
-
import type {Matcher} from "
|
|
12
|
+
import type {Matcher} from "../matcher";
|
|
13
13
|
|
|
14
14
|
describe("matcher widget", () => {
|
|
15
15
|
beforeEach(() => {
|
package/src/widgets/matcher.tsx
CHANGED