diff --git a/.changeset/hot-chairs-sell.md b/.changeset/hot-chairs-sell.md new file mode 100644 index 0000000000..901ba07b9b --- /dev/null +++ b/.changeset/hot-chairs-sell.md @@ -0,0 +1,6 @@ +--- +"@khanacademy/perseus": minor +"@khanacademy/perseus-editor": minor +--- + +Add labels to Dropdown widget diff --git a/.changeset/khaki-keys-approve.md b/.changeset/khaki-keys-approve.md new file mode 100644 index 0000000000..57858e31c7 --- /dev/null +++ b/.changeset/khaki-keys-approve.md @@ -0,0 +1,5 @@ +--- +"@khanacademy/perseus-editor": patch +--- + +Removing usage of createReactClass from several component files. diff --git a/.changeset/mighty-cobras-kick.md b/.changeset/mighty-cobras-kick.md deleted file mode 100644 index a8ce7b1de7..0000000000 --- a/.changeset/mighty-cobras-kick.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@khanacademy/perseus": patch ---- - -[Locked Labels + Aria] Create math only parser to help parse TeX how we want diff --git a/.changeset/strong-flies-thank.md b/.changeset/strong-flies-thank.md new file mode 100644 index 0000000000..4f3cb7f40d --- /dev/null +++ b/.changeset/strong-flies-thank.md @@ -0,0 +1,5 @@ +--- +"@khanacademy/perseus": major +--- + +Remove PerseusExampleWidgetOptions, PerseusSimpleMarkdownTesterWidgetOptions, and PerseusExampleWidgetOptions types - widgets no longer exist diff --git a/.changeset/strong-rocks-beg.md b/.changeset/strong-rocks-beg.md new file mode 100644 index 0000000000..54cc69d06b --- /dev/null +++ b/.changeset/strong-rocks-beg.md @@ -0,0 +1,5 @@ +--- +"@khanacademy/perseus": patch +--- + +Remove some uses of findDOMNode diff --git a/.changeset/twenty-baboons-shave.md b/.changeset/twenty-baboons-shave.md deleted file mode 100644 index 8cd20506e8..0000000000 --- a/.changeset/twenty-baboons-shave.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@khanacademy/perseus": patch ---- - -Adding open and closing behavior to unlimited polygon graph type. diff --git a/.changeset/warm-llamas-tease.md b/.changeset/warm-llamas-tease.md deleted file mode 100644 index a08c2621c1..0000000000 --- a/.changeset/warm-llamas-tease.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@khanacademy/perseus": minor ---- - -Add expression validator function diff --git a/.eslintrc.js b/.eslintrc.js index aee5d9fe7d..c7cadf436c 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -172,6 +172,11 @@ module.exports = { "no-invalid-this": "off", "@typescript-eslint/no-this-alias": "off", "no-unused-expressions": "off", + "no-restricted-imports": [ + "error", + "@khanacademy/wonder-blocks-color", + "@khanacademy/wonder-blocks-spacing", + ], "object-curly-spacing": "off", semi: "off", diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2be174af9d..c6c103ba5e 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -10,3 +10,17 @@ updates: allow: - dependency-name: "@khanacademy/eslint-config" - dependency-name: "@khanacademy/eslint-plugin" + - dependency-name: "@khanacademy/wonder-blocks-*" + - dependency-name: "@khanacademy/wonder-stuff-*" + assignees: + - "@Khan/perseus" + + # Grouped updates for Wonder Blocks and Wonder Stuff releases. + # This helps us to stay in sync with the latest releases of these packages. + groups: + wonder-stuff: + patterns: + - "@khanacademy/wonder-stuff-*" + wonder-blocks: + patterns: + - "@khanacademy/wonder-blocks-*" diff --git a/config/test/test-setup.ts b/config/test/test-setup.ts index f907ec797a..cd4bf6f5cf 100644 --- a/config/test/test-setup.ts +++ b/config/test/test-setup.ts @@ -35,7 +35,6 @@ if (typeof window !== "undefined") { // Override the window.location implementation to mock out assign() // We need to access window.location.assign to verify that we're // redirecting to the right place. - /* eslint-disable no-restricted-syntax */ const oldLocation = window.location; // @ts-expect-error - TS2790 - The operand of a 'delete' operator must be optional. delete window.location; diff --git a/dev/CHANGELOG.md b/dev/CHANGELOG.md index 86ae23bbc3..81e0a3d67c 100644 --- a/dev/CHANGELOG.md +++ b/dev/CHANGELOG.md @@ -1,5 +1,28 @@ # @khanacademy/perseus-dev-ui +## 4.0.1 + +### Patch Changes + +- Updated dependencies [[`88ba71bef`](https://github.com/Khan/perseus/commit/88ba71bef0cdd75fa0c8b467dcea2cccc637d034)]: + - @khanacademy/kas@0.4.2 + - @khanacademy/simple-markdown@0.13.6 + - @khanacademy/pure-markdown@0.3.13 + +## 4.0.0 + +### Major Changes + +- [#1905](https://github.com/Khan/perseus/pull/1905) [`9c225f936`](https://github.com/Khan/perseus/commit/9c225f9365cbb2e92bba3bd67b1abde724809367) Thanks [@SonicScrewdriver](https://github.com/SonicScrewdriver)! - We're reverting work done for the Server Side Scoring and Input Number Conversion projects. + +### Patch Changes + +- Updated dependencies [[`55a532175`](https://github.com/Khan/perseus/commit/55a532175192bfee3dc550c7eb7ce74d4a6542a9)]: + - @khanacademy/kas@0.4.1 + - @khanacademy/math-input@21.1.5 + - @khanacademy/simple-markdown@0.13.5 + - @khanacademy/pure-markdown@0.3.12 + ## 3.1.3 ### Patch Changes 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={