From 368e222a6577dff38143d1584d6773129e8abbd7 Mon Sep 17 00:00:00 2001 From: Matthew Date: Wed, 18 Dec 2024 14:24:28 -0600 Subject: [PATCH 1/6] Bump all packages to reset releases (#2027) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary: Fix for: https://khanacademy.slack.com/archives/C01AZ9H8TTQ/p1734539991949319 Author: handeyeco Reviewers: jeremywiebe Required Reviewers: Approved By: jeremywiebe Checks: ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ⏹️ [cancelled] Publish npm snapshot (ubuntu-latest, 20.x), ⏹️ [cancelled] Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ⏹️ [cancelled] Cypress (ubuntu-latest, 20.x), ⏹️ [cancelled] Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ⏹️ [cancelled] Check builds for changes in size (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x) Pull Request URL: https://github.com/Khan/perseus/pull/2027 --- .changeset/thick-ducks-hug.md | 16 ++++++++++++++++ packages/kas/src/nodes.ts | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 .changeset/thick-ducks-hug.md diff --git a/.changeset/thick-ducks-hug.md b/.changeset/thick-ducks-hug.md new file mode 100644 index 0000000000..56752bdf1c --- /dev/null +++ b/.changeset/thick-ducks-hug.md @@ -0,0 +1,16 @@ +--- +"@khanacademy/kas": patch +"perseus-build-settings": patch +"@khanacademy/perseus-dev-ui": patch +"@khanacademy/keypad-context": patch +"@khanacademy/kmath": patch +"@khanacademy/math-input": patch +"@khanacademy/perseus": patch +"@khanacademy/perseus-core": patch +"@khanacademy/perseus-editor": patch +"@khanacademy/perseus-linter": patch +"@khanacademy/pure-markdown": patch +"@khanacademy/simple-markdown": patch +--- + +Bump all packages to reset releases diff --git a/packages/kas/src/nodes.ts b/packages/kas/src/nodes.ts index 12a6d5a4d0..bf4c5a9823 100644 --- a/packages/kas/src/nodes.ts +++ b/packages/kas/src/nodes.ts @@ -1,6 +1,6 @@ /* eslint-disable prettier/prettier */ /* eslint-disable import/order */ -/* TODO(charlie): fix these lint errors (http://eslint.org/docs/rules): */ +/* TODO: fix these lint errors (http://eslint.org/docs/rules): */ /* eslint-disable indent, no-undef, no-var, no-dupe-keys, no-new-func, no-redeclare, comma-dangle, max-len, prefer-spread, space-infix-ops, space-unary-ops */ import _ from "underscore"; From 6152b9508988e757503771ebf508da058ad5f18e Mon Sep 17 00:00:00 2001 From: Khan Actions Bot <56267880+khan-actions-bot@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:38:05 -0500 Subject: [PATCH 2/6] Version Packages (#2026) * RELEASING: Releasing 12 package(s) Releases: @khanacademy/perseus@49.1.0 @khanacademy/kas@0.4.6 perseus-build-settings@0.4.2 @khanacademy/perseus-dev-ui@5.0.4 @khanacademy/keypad-context@1.0.8 @khanacademy/kmath@0.1.20 @khanacademy/math-input@22.0.3 @khanacademy/perseus-core@3.0.2 @khanacademy/perseus-editor@17.0.4 @khanacademy/perseus-linter@1.2.8 @khanacademy/pure-markdown@0.3.17 @khanacademy/simple-markdown@0.13.10 [skip ci] * empty commit to kick start actions --------- Co-authored-by: github-actions[bot] Co-authored-by: Matthew Curtis --- .changeset/bright-dragons-reflect.md | 5 ----- .changeset/shiny-fireants-jump.md | 5 ----- .changeset/thick-ducks-hug.md | 16 ---------------- config/build/CHANGELOG.md | 6 ++++++ config/build/package.json | 2 +- dev/CHANGELOG.md | 15 +++++++++++++++ dev/package.json | 16 ++++++++-------- packages/kas/CHANGELOG.md | 9 +++++++++ packages/kas/package.json | 6 +++--- packages/keypad-context/CHANGELOG.md | 9 +++++++++ packages/keypad-context/package.json | 4 ++-- packages/kmath/CHANGELOG.md | 9 +++++++++ packages/kmath/package.json | 6 +++--- packages/math-input/CHANGELOG.md | 10 ++++++++++ packages/math-input/package.json | 8 ++++---- packages/perseus-core/CHANGELOG.md | 6 ++++++ packages/perseus-core/package.json | 2 +- packages/perseus-editor/CHANGELOG.md | 15 +++++++++++++++ packages/perseus-editor/package.json | 20 ++++++++++---------- packages/perseus-linter/CHANGELOG.md | 9 +++++++++ packages/perseus-linter/package.json | 6 +++--- packages/perseus/CHANGELOG.md | 22 ++++++++++++++++++++++ packages/perseus/package.json | 20 ++++++++++---------- packages/pure-markdown/CHANGELOG.md | 10 ++++++++++ packages/pure-markdown/package.json | 6 +++--- packages/simple-markdown/CHANGELOG.md | 9 +++++++++ packages/simple-markdown/package.json | 6 +++--- 27 files changed, 180 insertions(+), 77 deletions(-) delete mode 100644 .changeset/bright-dragons-reflect.md delete mode 100644 .changeset/shiny-fireants-jump.md delete mode 100644 .changeset/thick-ducks-hug.md diff --git a/.changeset/bright-dragons-reflect.md b/.changeset/bright-dragons-reflect.md deleted file mode 100644 index c42a325d1f..0000000000 --- a/.changeset/bright-dragons-reflect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@khanacademy/perseus": minor ---- - -add aria label and description to angle graph diff --git a/.changeset/shiny-fireants-jump.md b/.changeset/shiny-fireants-jump.md deleted file mode 100644 index 083d6cb403..0000000000 --- a/.changeset/shiny-fireants-jump.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -"@khanacademy/perseus": patch ---- - -Add aria label to angle graph diff --git a/.changeset/thick-ducks-hug.md b/.changeset/thick-ducks-hug.md deleted file mode 100644 index 56752bdf1c..0000000000 --- a/.changeset/thick-ducks-hug.md +++ /dev/null @@ -1,16 +0,0 @@ ---- -"@khanacademy/kas": patch -"perseus-build-settings": patch -"@khanacademy/perseus-dev-ui": patch -"@khanacademy/keypad-context": patch -"@khanacademy/kmath": patch -"@khanacademy/math-input": patch -"@khanacademy/perseus": patch -"@khanacademy/perseus-core": patch -"@khanacademy/perseus-editor": patch -"@khanacademy/perseus-linter": patch -"@khanacademy/pure-markdown": patch -"@khanacademy/simple-markdown": patch ---- - -Bump all packages to reset releases diff --git a/config/build/CHANGELOG.md b/config/build/CHANGELOG.md index 517bd1d59f..2fe41ed999 100644 --- a/config/build/CHANGELOG.md +++ b/config/build/CHANGELOG.md @@ -1,5 +1,11 @@ # perseus-build-settings +## 0.4.2 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + ## 0.4.1 ### Patch Changes diff --git a/config/build/package.json b/config/build/package.json index 0153142312..a9d2ada7fa 100644 --- a/config/build/package.json +++ b/config/build/package.json @@ -1,6 +1,6 @@ { "name": "perseus-build-settings", - "version": "0.4.1", + "version": "0.4.2", "license": "MIT", "private": true } diff --git a/dev/CHANGELOG.md b/dev/CHANGELOG.md index c67bbb6c42..9a80c8f68e 100644 --- a/dev/CHANGELOG.md +++ b/dev/CHANGELOG.md @@ -1,5 +1,20 @@ # @khanacademy/perseus-dev-ui +## 5.0.4 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +- Updated dependencies [[`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/kas@0.4.6 + - @khanacademy/kmath@0.1.20 + - @khanacademy/math-input@22.0.3 + - @khanacademy/perseus-core@3.0.2 + - @khanacademy/perseus-linter@1.2.8 + - @khanacademy/pure-markdown@0.3.17 + - @khanacademy/simple-markdown@0.13.10 + ## 5.0.3 ### Patch Changes diff --git a/dev/package.json b/dev/package.json index 93966f47ca..af97d4947f 100644 --- a/dev/package.json +++ b/dev/package.json @@ -3,7 +3,7 @@ "description": "Perseus dev UI", "author": "Khan Academy", "license": "MIT", - "version": "5.0.3", + "version": "5.0.4", "private": true, "repository": { "type": "git", @@ -14,13 +14,13 @@ "dev": "vite" }, "dependencies": { - "@khanacademy/kas": "^0.4.5", - "@khanacademy/kmath": "^0.1.19", - "@khanacademy/math-input": "^22.0.2", - "@khanacademy/perseus-core": "3.0.1", - "@khanacademy/perseus-linter": "^1.2.7", - "@khanacademy/pure-markdown": "^0.3.16", - "@khanacademy/simple-markdown": "^0.13.9", + "@khanacademy/kas": "^0.4.6", + "@khanacademy/kmath": "^0.1.20", + "@khanacademy/math-input": "^22.0.3", + "@khanacademy/perseus-core": "3.0.2", + "@khanacademy/perseus-linter": "^1.2.8", + "@khanacademy/pure-markdown": "^0.3.17", + "@khanacademy/simple-markdown": "^0.13.10", "@khanacademy/wonder-blocks-banner": "4.0.3", "@khanacademy/wonder-blocks-icon": "5.0.3", "@khanacademy/wonder-blocks-icon-button": "6.0.3", diff --git a/packages/kas/CHANGELOG.md b/packages/kas/CHANGELOG.md index af10004f7c..9146f5a637 100644 --- a/packages/kas/CHANGELOG.md +++ b/packages/kas/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/kas +## 0.4.6 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +- Updated dependencies [[`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/perseus-core@3.0.2 + ## 0.4.5 ### Patch Changes diff --git a/packages/kas/package.json b/packages/kas/package.json index 9d01e17f6c..2d648e3319 100644 --- a/packages/kas/package.json +++ b/packages/kas/package.json @@ -3,7 +3,7 @@ "description": "A lightweight JavaScript CAS for comparing expressions and equations.", "author": "Khan Academy", "license": "MIT", - "version": "0.4.5", + "version": "0.4.6", "publishConfig": { "access": "public" }, @@ -26,11 +26,11 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.1" + "@khanacademy/perseus-core": "3.0.2" }, "devDependencies": { "jison": "0.4.15", - "perseus-build-settings": "^0.4.1", + "perseus-build-settings": "^0.4.2", "underscore": "1.4.4" }, "peerDependencies": { diff --git a/packages/keypad-context/CHANGELOG.md b/packages/keypad-context/CHANGELOG.md index 4d16b550ec..674656b777 100644 --- a/packages/keypad-context/CHANGELOG.md +++ b/packages/keypad-context/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/keypad-context +## 1.0.8 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +- Updated dependencies [[`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/perseus-core@3.0.2 + ## 1.0.7 ### Patch Changes diff --git a/packages/keypad-context/package.json b/packages/keypad-context/package.json index 2b8fad6afe..7dde4350a1 100644 --- a/packages/keypad-context/package.json +++ b/packages/keypad-context/package.json @@ -3,7 +3,7 @@ "description": "Perseus keypad context", "author": "Khan Academy", "license": "MIT", - "version": "1.0.7", + "version": "1.0.8", "publishConfig": { "access": "public" }, @@ -25,7 +25,7 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.1" + "@khanacademy/perseus-core": "3.0.2" }, "devDependencies": { "react": "^18.2.0" diff --git a/packages/kmath/CHANGELOG.md b/packages/kmath/CHANGELOG.md index 69140a12c7..83b57d27b6 100644 --- a/packages/kmath/CHANGELOG.md +++ b/packages/kmath/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/kmath +## 0.1.20 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +- Updated dependencies [[`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/perseus-core@3.0.2 + ## 0.1.19 ### Patch Changes diff --git a/packages/kmath/package.json b/packages/kmath/package.json index 95971e0fc2..ec24732bcc 100644 --- a/packages/kmath/package.json +++ b/packages/kmath/package.json @@ -3,7 +3,7 @@ "description": "Khan Academy's Javascript Numeric Math Utilities", "author": "Khan Academy", "license": "MIT", - "version": "0.1.19", + "version": "0.1.20", "publishConfig": { "access": "public" }, @@ -24,10 +24,10 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.1" + "@khanacademy/perseus-core": "3.0.2" }, "devDependencies": { - "perseus-build-settings": "^0.4.1", + "perseus-build-settings": "^0.4.2", "underscore": "1.4.4" }, "peerDependencies": { diff --git a/packages/math-input/CHANGELOG.md b/packages/math-input/CHANGELOG.md index 5020d7ff97..6d13540ca5 100644 --- a/packages/math-input/CHANGELOG.md +++ b/packages/math-input/CHANGELOG.md @@ -1,5 +1,15 @@ # @khanacademy/math-input +## 22.0.3 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +- Updated dependencies [[`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/keypad-context@1.0.8 + - @khanacademy/perseus-core@3.0.2 + ## 22.0.2 ### Patch Changes diff --git a/packages/math-input/package.json b/packages/math-input/package.json index 52e30a3f49..d159b03e63 100644 --- a/packages/math-input/package.json +++ b/packages/math-input/package.json @@ -3,7 +3,7 @@ "description": "Khan Academy's new expression editor for the mobile web.", "author": "Khan Academy", "license": "MIT", - "version": "22.0.2", + "version": "22.0.3", "publishConfig": { "access": "public" }, @@ -38,8 +38,8 @@ ], "scripts": {}, "dependencies": { - "@khanacademy/keypad-context": "^1.0.7", - "@khanacademy/perseus-core": "3.0.1", + "@khanacademy/keypad-context": "^1.0.8", + "@khanacademy/perseus-core": "3.0.2", "mathquill": "https://github.com/Khan/mathquill/releases/download/v1.0.0/mathquill-v1.0.0.tgz" }, "devDependencies": { @@ -54,7 +54,7 @@ "aphrodite": "^1.2.5", "jquery": "^2.1.1", "katex": "0.11.1", - "perseus-build-settings": "^0.4.1", + "perseus-build-settings": "^0.4.2", "prop-types": "15.6.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/packages/perseus-core/CHANGELOG.md b/packages/perseus-core/CHANGELOG.md index 38353c1871..948faf58ef 100644 --- a/packages/perseus-core/CHANGELOG.md +++ b/packages/perseus-core/CHANGELOG.md @@ -1,5 +1,11 @@ # @khanacademy/perseus-core +## 3.0.2 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + ## 3.0.1 ### Patch Changes diff --git a/packages/perseus-core/package.json b/packages/perseus-core/package.json index 62fb935662..4a9f8dc207 100644 --- a/packages/perseus-core/package.json +++ b/packages/perseus-core/package.json @@ -3,7 +3,7 @@ "description": "Shared Perseus infrastructure", "author": "Khan Academy", "license": "MIT", - "version": "3.0.1", + "version": "3.0.2", "publishConfig": { "access": "public" }, diff --git a/packages/perseus-editor/CHANGELOG.md b/packages/perseus-editor/CHANGELOG.md index 624621c207..1ec602a023 100644 --- a/packages/perseus-editor/CHANGELOG.md +++ b/packages/perseus-editor/CHANGELOG.md @@ -1,5 +1,20 @@ # @khanacademy/perseus-editor +## 17.0.4 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +- Updated dependencies [[`78c5a77ce`](https://github.com/Khan/perseus/commit/78c5a77ce17c5392e5c8ebb1fff8e2ed8a69a0c1), [`37dc680b4`](https://github.com/Khan/perseus/commit/37dc680b4415c9c75bcda39e0440ded55d24d4a1), [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/perseus@49.1.0 + - @khanacademy/kas@0.4.6 + - @khanacademy/keypad-context@1.0.8 + - @khanacademy/kmath@0.1.20 + - @khanacademy/math-input@22.0.3 + - @khanacademy/perseus-core@3.0.2 + - @khanacademy/pure-markdown@0.3.17 + ## 17.0.3 ### Patch Changes diff --git a/packages/perseus-editor/package.json b/packages/perseus-editor/package.json index 7a1d2f0618..896babb6c2 100644 --- a/packages/perseus-editor/package.json +++ b/packages/perseus-editor/package.json @@ -3,7 +3,7 @@ "description": "Perseus editors", "author": "Khan Academy", "license": "MIT", - "version": "17.0.3", + "version": "17.0.4", "publishConfig": { "access": "public" }, @@ -34,17 +34,17 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/kas": "^0.4.5", - "@khanacademy/keypad-context": "^1.0.7", - "@khanacademy/kmath": "^0.1.19", - "@khanacademy/math-input": "^22.0.2", - "@khanacademy/perseus": "^49.0.3", - "@khanacademy/perseus-core": "3.0.1", - "@khanacademy/pure-markdown": "^0.3.16", + "@khanacademy/kas": "^0.4.6", + "@khanacademy/keypad-context": "^1.0.8", + "@khanacademy/kmath": "^0.1.20", + "@khanacademy/math-input": "^22.0.3", + "@khanacademy/perseus": "^49.1.0", + "@khanacademy/perseus-core": "3.0.2", + "@khanacademy/pure-markdown": "^0.3.17", "mafs": "^0.19.0" }, "devDependencies": { - "@khanacademy/perseus-linter": "^1.2.7", + "@khanacademy/perseus-linter": "^1.2.8", "@khanacademy/wonder-blocks-accordion": "3.0.1", "@khanacademy/wonder-blocks-banner": "4.0.3", "@khanacademy/wonder-blocks-button": "7.0.3", @@ -66,7 +66,7 @@ "create-react-class": "15.6.3", "jquery": "^2.1.1", "katex": "0.11.1", - "perseus-build-settings": "^0.4.1", + "perseus-build-settings": "^0.4.2", "prop-types": "15.6.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/packages/perseus-linter/CHANGELOG.md b/packages/perseus-linter/CHANGELOG.md index 8f044876ec..2e73a718ea 100644 --- a/packages/perseus-linter/CHANGELOG.md +++ b/packages/perseus-linter/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/perseus-linter +## 1.2.8 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +- Updated dependencies [[`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/perseus-core@3.0.2 + ## 1.2.7 ### Patch Changes diff --git a/packages/perseus-linter/package.json b/packages/perseus-linter/package.json index d22cfc2389..fc2aec95cd 100644 --- a/packages/perseus-linter/package.json +++ b/packages/perseus-linter/package.json @@ -3,7 +3,7 @@ "description": "Linter engine for Perseus", "author": "Khan Academy", "license": "MIT", - "version": "1.2.7", + "version": "1.2.8", "publishConfig": { "access": "public" }, @@ -25,10 +25,10 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.1" + "@khanacademy/perseus-core": "3.0.2" }, "devDependencies": { - "@khanacademy/pure-markdown": "^0.3.16", + "@khanacademy/pure-markdown": "^0.3.17", "prop-types": "15.6.1" }, "peerDependencies": { diff --git a/packages/perseus/CHANGELOG.md b/packages/perseus/CHANGELOG.md index de6a7aed51..bc9c757679 100644 --- a/packages/perseus/CHANGELOG.md +++ b/packages/perseus/CHANGELOG.md @@ -1,5 +1,27 @@ # @khanacademy/perseus +## 49.1.0 + +### Minor Changes + +- [#2020](https://github.com/Khan/perseus/pull/2020) [`78c5a77ce`](https://github.com/Khan/perseus/commit/78c5a77ce17c5392e5c8ebb1fff8e2ed8a69a0c1) Thanks [@anakaren-rojas](https://github.com/anakaren-rojas)! - add aria label and description to angle graph + +### Patch Changes + +- [#1994](https://github.com/Khan/perseus/pull/1994) [`37dc680b4`](https://github.com/Khan/perseus/commit/37dc680b4415c9c75bcda39e0440ded55d24d4a1) Thanks [@anakaren-rojas](https://github.com/anakaren-rojas)! - Add aria label to angle graph + +* [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +* Updated dependencies [[`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/kas@0.4.6 + - @khanacademy/keypad-context@1.0.8 + - @khanacademy/kmath@0.1.20 + - @khanacademy/math-input@22.0.3 + - @khanacademy/perseus-core@3.0.2 + - @khanacademy/perseus-linter@1.2.8 + - @khanacademy/pure-markdown@0.3.17 + - @khanacademy/simple-markdown@0.13.10 + ## 49.0.3 ### Patch Changes diff --git a/packages/perseus/package.json b/packages/perseus/package.json index 4d7fa99c29..50086935c0 100644 --- a/packages/perseus/package.json +++ b/packages/perseus/package.json @@ -3,7 +3,7 @@ "description": "Core Perseus API (includes renderers and widgets)", "author": "Khan Academy", "license": "MIT", - "version": "49.0.3", + "version": "49.1.0", "publishConfig": { "access": "public" }, @@ -40,14 +40,14 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/kas": "^0.4.5", - "@khanacademy/keypad-context": "^1.0.7", - "@khanacademy/kmath": "^0.1.19", - "@khanacademy/math-input": "^22.0.2", - "@khanacademy/perseus-core": "3.0.1", - "@khanacademy/perseus-linter": "^1.2.7", - "@khanacademy/pure-markdown": "^0.3.16", - "@khanacademy/simple-markdown": "^0.13.9", + "@khanacademy/kas": "^0.4.6", + "@khanacademy/keypad-context": "^1.0.8", + "@khanacademy/kmath": "^0.1.20", + "@khanacademy/math-input": "^22.0.3", + "@khanacademy/perseus-core": "3.0.2", + "@khanacademy/perseus-linter": "^1.2.8", + "@khanacademy/pure-markdown": "^0.3.17", + "@khanacademy/simple-markdown": "^0.13.10", "@types/classnames": "2.2.0", "@use-gesture/react": "^10.2.27", "mafs": "0.19.0", @@ -82,7 +82,7 @@ "intersection-observer": "^0.12.0", "jquery": "^2.1.1", "lodash.debounce": "^4.0.8", - "perseus-build-settings": "^0.4.1", + "perseus-build-settings": "^0.4.2", "prop-types": "15.6.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/packages/pure-markdown/CHANGELOG.md b/packages/pure-markdown/CHANGELOG.md index 10c7a9b5aa..4b6cda9cd2 100644 --- a/packages/pure-markdown/CHANGELOG.md +++ b/packages/pure-markdown/CHANGELOG.md @@ -1,5 +1,15 @@ # @khanacademy/pure-markdown +## 0.3.17 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +- Updated dependencies [[`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/perseus-core@3.0.2 + - @khanacademy/simple-markdown@0.13.10 + ## 0.3.16 ### Patch Changes diff --git a/packages/pure-markdown/package.json b/packages/pure-markdown/package.json index 5fc314e39c..2207767adb 100644 --- a/packages/pure-markdown/package.json +++ b/packages/pure-markdown/package.json @@ -3,7 +3,7 @@ "description": "SimpleMarkdown instance with non-react Perseus rules", "author": "Khan Academy", "license": "MIT", - "version": "0.3.16", + "version": "0.3.17", "publishConfig": { "access": "public" }, @@ -25,8 +25,8 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.1", - "@khanacademy/simple-markdown": "^0.13.9" + "@khanacademy/perseus-core": "3.0.2", + "@khanacademy/simple-markdown": "^0.13.10" }, "devDependencies": {}, "peerDependencies": {}, diff --git a/packages/simple-markdown/CHANGELOG.md b/packages/simple-markdown/CHANGELOG.md index f98e48daf4..6baafe2415 100644 --- a/packages/simple-markdown/CHANGELOG.md +++ b/packages/simple-markdown/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/simple-markdown +## 0.13.10 + +### Patch Changes + +- [#2027](https://github.com/Khan/perseus/pull/2027) [`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7) Thanks [@handeyeco](https://github.com/handeyeco)! - Bump all packages to reset releases + +- Updated dependencies [[`368e222a6`](https://github.com/Khan/perseus/commit/368e222a6577dff38143d1584d6773129e8abbd7)]: + - @khanacademy/perseus-core@3.0.2 + ## 0.13.9 ### Patch Changes diff --git a/packages/simple-markdown/package.json b/packages/simple-markdown/package.json index f0034063ea..bf2d78d568 100644 --- a/packages/simple-markdown/package.json +++ b/packages/simple-markdown/package.json @@ -3,7 +3,7 @@ "description": "Javascript markdown parsing, made simple", "author": "Khan Academy", "license": "MIT", - "version": "0.13.9", + "version": "0.13.10", "publishConfig": { "access": "public" }, @@ -25,10 +25,10 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.1" + "@khanacademy/perseus-core": "3.0.2" }, "devDependencies": { - "perseus-build-settings": "^0.4.1" + "perseus-build-settings": "^0.4.2" }, "peerDependencies": { "react": "^18.2.0", From 762b295eccd7d0dbc344edd271d3300b506adb93 Mon Sep 17 00:00:00 2001 From: Jeremy Wiebe Date: Wed, 18 Dec 2024 13:50:13 -0800 Subject: [PATCH 3/6] Bump packages again to force a release (#2028) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary: Github didn't run the release workflow when we landed the last Version Packages PR to `main`. So we didn't get a release like we were promised. This PR will hopefully unblock things. Issue: "none" ## Test plan: Author: jeremywiebe Reviewers: handeyeco Required Reviewers: Approved By: handeyeco Checks: ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ⏹️ [cancelled] Publish npm snapshot (ubuntu-latest, 20.x), ⏹️ [cancelled] Cypress (ubuntu-latest, 20.x), ⏹️ [cancelled] Check builds for changes in size (ubuntu-latest, 20.x), ⏹️ [cancelled] Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ⏹️ [cancelled] Check for .changeset entries for all changed files (ubuntu-latest, 20.x) Pull Request URL: https://github.com/Khan/perseus/pull/2028 --- .changeset/lucky-deers-bake.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .changeset/lucky-deers-bake.md diff --git a/.changeset/lucky-deers-bake.md b/.changeset/lucky-deers-bake.md new file mode 100644 index 0000000000..25982ab7a0 --- /dev/null +++ b/.changeset/lucky-deers-bake.md @@ -0,0 +1,14 @@ +--- +"@khanacademy/kas": patch +"@khanacademy/keypad-context": patch +"@khanacademy/kmath": patch +"@khanacademy/math-input": patch +"@khanacademy/perseus": patch +"@khanacademy/perseus-core": patch +"@khanacademy/perseus-editor": patch +"@khanacademy/perseus-linter": patch +"@khanacademy/pure-markdown": patch +"@khanacademy/simple-markdown": patch +--- + +Forcing release From c8b34634817dd77ff3f0dcb75cfb618720d30b1e Mon Sep 17 00:00:00 2001 From: Khan Actions Bot <56267880+khan-actions-bot@users.noreply.github.com> Date: Wed, 18 Dec 2024 17:00:48 -0500 Subject: [PATCH 4/6] Version Packages (#2029) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## @khanacademy/kas@0.4.7 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/perseus-core@3.0.3 ## @khanacademy/keypad-context@1.0.9 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/perseus-core@3.0.3 ## @khanacademy/kmath@0.1.21 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/perseus-core@3.0.3 ## @khanacademy/math-input@22.0.4 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/keypad-context@1.0.9 - @khanacademy/perseus-core@3.0.3 ## @khanacademy/perseus@49.1.1 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/kas@0.4.7 - @khanacademy/keypad-context@1.0.9 - @khanacademy/kmath@0.1.21 - @khanacademy/math-input@22.0.4 - @khanacademy/perseus-core@3.0.3 - @khanacademy/perseus-linter@1.2.9 - @khanacademy/pure-markdown@0.3.18 - @khanacademy/simple-markdown@0.13.11 ## @khanacademy/perseus-core@3.0.3 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release ## @khanacademy/perseus-editor@17.0.5 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/kas@0.4.7 - @khanacademy/keypad-context@1.0.9 - @khanacademy/kmath@0.1.21 - @khanacademy/math-input@22.0.4 - @khanacademy/perseus@49.1.1 - @khanacademy/perseus-core@3.0.3 - @khanacademy/pure-markdown@0.3.18 ## @khanacademy/perseus-linter@1.2.9 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/perseus-core@3.0.3 ## @khanacademy/pure-markdown@0.3.18 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/perseus-core@3.0.3 - @khanacademy/simple-markdown@0.13.11 ## @khanacademy/simple-markdown@0.13.11 ### Patch Changes - [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/perseus-core@3.0.3 ## @khanacademy/perseus-dev-ui@5.0.5 ### Patch Changes - Updated dependencies \[[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: - @khanacademy/kas@0.4.7 - @khanacademy/kmath@0.1.21 - @khanacademy/math-input@22.0.4 - @khanacademy/perseus-core@3.0.3 - @khanacademy/perseus-linter@1.2.9 - @khanacademy/pure-markdown@0.3.18 - @khanacademy/simple-markdown@0.13.11 Author: khan-actions-bot Reviewers: jeremywiebe Required Reviewers: Approved By: jeremywiebe Checks: ⏭️ Publish npm snapshot, ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ✅ Prime node_modules cache for primary configuration (ubuntu-latest, 20.x) Pull Request URL: https://github.com/Khan/perseus/pull/2029 --- .changeset/lucky-deers-bake.md | 14 -------------- dev/CHANGELOG.md | 13 +++++++++++++ dev/package.json | 16 ++++++++-------- packages/kas/CHANGELOG.md | 9 +++++++++ packages/kas/package.json | 4 ++-- packages/keypad-context/CHANGELOG.md | 9 +++++++++ packages/keypad-context/package.json | 4 ++-- packages/kmath/CHANGELOG.md | 9 +++++++++ packages/kmath/package.json | 4 ++-- packages/math-input/CHANGELOG.md | 10 ++++++++++ packages/math-input/package.json | 6 +++--- packages/perseus-core/CHANGELOG.md | 6 ++++++ packages/perseus-core/package.json | 2 +- packages/perseus-editor/CHANGELOG.md | 15 +++++++++++++++ packages/perseus-editor/package.json | 18 +++++++++--------- packages/perseus-linter/CHANGELOG.md | 9 +++++++++ packages/perseus-linter/package.json | 6 +++--- packages/perseus/CHANGELOG.md | 16 ++++++++++++++++ packages/perseus/package.json | 18 +++++++++--------- packages/pure-markdown/CHANGELOG.md | 10 ++++++++++ packages/pure-markdown/package.json | 6 +++--- packages/simple-markdown/CHANGELOG.md | 9 +++++++++ packages/simple-markdown/package.json | 4 ++-- 23 files changed, 159 insertions(+), 58 deletions(-) delete mode 100644 .changeset/lucky-deers-bake.md diff --git a/.changeset/lucky-deers-bake.md b/.changeset/lucky-deers-bake.md deleted file mode 100644 index 25982ab7a0..0000000000 --- a/.changeset/lucky-deers-bake.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -"@khanacademy/kas": patch -"@khanacademy/keypad-context": patch -"@khanacademy/kmath": patch -"@khanacademy/math-input": patch -"@khanacademy/perseus": patch -"@khanacademy/perseus-core": patch -"@khanacademy/perseus-editor": patch -"@khanacademy/perseus-linter": patch -"@khanacademy/pure-markdown": patch -"@khanacademy/simple-markdown": patch ---- - -Forcing release diff --git a/dev/CHANGELOG.md b/dev/CHANGELOG.md index 9a80c8f68e..38e41f6f2b 100644 --- a/dev/CHANGELOG.md +++ b/dev/CHANGELOG.md @@ -1,5 +1,18 @@ # @khanacademy/perseus-dev-ui +## 5.0.5 + +### Patch Changes + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/kas@0.4.7 + - @khanacademy/kmath@0.1.21 + - @khanacademy/math-input@22.0.4 + - @khanacademy/perseus-core@3.0.3 + - @khanacademy/perseus-linter@1.2.9 + - @khanacademy/pure-markdown@0.3.18 + - @khanacademy/simple-markdown@0.13.11 + ## 5.0.4 ### Patch Changes diff --git a/dev/package.json b/dev/package.json index af97d4947f..493cd2c038 100644 --- a/dev/package.json +++ b/dev/package.json @@ -3,7 +3,7 @@ "description": "Perseus dev UI", "author": "Khan Academy", "license": "MIT", - "version": "5.0.4", + "version": "5.0.5", "private": true, "repository": { "type": "git", @@ -14,13 +14,13 @@ "dev": "vite" }, "dependencies": { - "@khanacademy/kas": "^0.4.6", - "@khanacademy/kmath": "^0.1.20", - "@khanacademy/math-input": "^22.0.3", - "@khanacademy/perseus-core": "3.0.2", - "@khanacademy/perseus-linter": "^1.2.8", - "@khanacademy/pure-markdown": "^0.3.17", - "@khanacademy/simple-markdown": "^0.13.10", + "@khanacademy/kas": "^0.4.7", + "@khanacademy/kmath": "^0.1.21", + "@khanacademy/math-input": "^22.0.4", + "@khanacademy/perseus-core": "3.0.3", + "@khanacademy/perseus-linter": "^1.2.9", + "@khanacademy/pure-markdown": "^0.3.18", + "@khanacademy/simple-markdown": "^0.13.11", "@khanacademy/wonder-blocks-banner": "4.0.3", "@khanacademy/wonder-blocks-icon": "5.0.3", "@khanacademy/wonder-blocks-icon-button": "6.0.3", diff --git a/packages/kas/CHANGELOG.md b/packages/kas/CHANGELOG.md index 9146f5a637..e49d3e8ef7 100644 --- a/packages/kas/CHANGELOG.md +++ b/packages/kas/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/kas +## 0.4.7 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/perseus-core@3.0.3 + ## 0.4.6 ### Patch Changes diff --git a/packages/kas/package.json b/packages/kas/package.json index 2d648e3319..b25c05d87d 100644 --- a/packages/kas/package.json +++ b/packages/kas/package.json @@ -3,7 +3,7 @@ "description": "A lightweight JavaScript CAS for comparing expressions and equations.", "author": "Khan Academy", "license": "MIT", - "version": "0.4.6", + "version": "0.4.7", "publishConfig": { "access": "public" }, @@ -26,7 +26,7 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.2" + "@khanacademy/perseus-core": "3.0.3" }, "devDependencies": { "jison": "0.4.15", diff --git a/packages/keypad-context/CHANGELOG.md b/packages/keypad-context/CHANGELOG.md index 674656b777..3e53da4562 100644 --- a/packages/keypad-context/CHANGELOG.md +++ b/packages/keypad-context/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/keypad-context +## 1.0.9 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/perseus-core@3.0.3 + ## 1.0.8 ### Patch Changes diff --git a/packages/keypad-context/package.json b/packages/keypad-context/package.json index 7dde4350a1..a5b3a8ab46 100644 --- a/packages/keypad-context/package.json +++ b/packages/keypad-context/package.json @@ -3,7 +3,7 @@ "description": "Perseus keypad context", "author": "Khan Academy", "license": "MIT", - "version": "1.0.8", + "version": "1.0.9", "publishConfig": { "access": "public" }, @@ -25,7 +25,7 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.2" + "@khanacademy/perseus-core": "3.0.3" }, "devDependencies": { "react": "^18.2.0" diff --git a/packages/kmath/CHANGELOG.md b/packages/kmath/CHANGELOG.md index 83b57d27b6..ba9e40ceac 100644 --- a/packages/kmath/CHANGELOG.md +++ b/packages/kmath/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/kmath +## 0.1.21 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/perseus-core@3.0.3 + ## 0.1.20 ### Patch Changes diff --git a/packages/kmath/package.json b/packages/kmath/package.json index ec24732bcc..23bcbfbdb9 100644 --- a/packages/kmath/package.json +++ b/packages/kmath/package.json @@ -3,7 +3,7 @@ "description": "Khan Academy's Javascript Numeric Math Utilities", "author": "Khan Academy", "license": "MIT", - "version": "0.1.20", + "version": "0.1.21", "publishConfig": { "access": "public" }, @@ -24,7 +24,7 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.2" + "@khanacademy/perseus-core": "3.0.3" }, "devDependencies": { "perseus-build-settings": "^0.4.2", diff --git a/packages/math-input/CHANGELOG.md b/packages/math-input/CHANGELOG.md index 6d13540ca5..8d1f590423 100644 --- a/packages/math-input/CHANGELOG.md +++ b/packages/math-input/CHANGELOG.md @@ -1,5 +1,15 @@ # @khanacademy/math-input +## 22.0.4 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/keypad-context@1.0.9 + - @khanacademy/perseus-core@3.0.3 + ## 22.0.3 ### Patch Changes diff --git a/packages/math-input/package.json b/packages/math-input/package.json index d159b03e63..762156a0cb 100644 --- a/packages/math-input/package.json +++ b/packages/math-input/package.json @@ -3,7 +3,7 @@ "description": "Khan Academy's new expression editor for the mobile web.", "author": "Khan Academy", "license": "MIT", - "version": "22.0.3", + "version": "22.0.4", "publishConfig": { "access": "public" }, @@ -38,8 +38,8 @@ ], "scripts": {}, "dependencies": { - "@khanacademy/keypad-context": "^1.0.8", - "@khanacademy/perseus-core": "3.0.2", + "@khanacademy/keypad-context": "^1.0.9", + "@khanacademy/perseus-core": "3.0.3", "mathquill": "https://github.com/Khan/mathquill/releases/download/v1.0.0/mathquill-v1.0.0.tgz" }, "devDependencies": { diff --git a/packages/perseus-core/CHANGELOG.md b/packages/perseus-core/CHANGELOG.md index 948faf58ef..5b5ed329d0 100644 --- a/packages/perseus-core/CHANGELOG.md +++ b/packages/perseus-core/CHANGELOG.md @@ -1,5 +1,11 @@ # @khanacademy/perseus-core +## 3.0.3 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + ## 3.0.2 ### Patch Changes diff --git a/packages/perseus-core/package.json b/packages/perseus-core/package.json index 4a9f8dc207..b3ae2af574 100644 --- a/packages/perseus-core/package.json +++ b/packages/perseus-core/package.json @@ -3,7 +3,7 @@ "description": "Shared Perseus infrastructure", "author": "Khan Academy", "license": "MIT", - "version": "3.0.2", + "version": "3.0.3", "publishConfig": { "access": "public" }, diff --git a/packages/perseus-editor/CHANGELOG.md b/packages/perseus-editor/CHANGELOG.md index 1ec602a023..5ac97b70b6 100644 --- a/packages/perseus-editor/CHANGELOG.md +++ b/packages/perseus-editor/CHANGELOG.md @@ -1,5 +1,20 @@ # @khanacademy/perseus-editor +## 17.0.5 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/kas@0.4.7 + - @khanacademy/keypad-context@1.0.9 + - @khanacademy/kmath@0.1.21 + - @khanacademy/math-input@22.0.4 + - @khanacademy/perseus@49.1.1 + - @khanacademy/perseus-core@3.0.3 + - @khanacademy/pure-markdown@0.3.18 + ## 17.0.4 ### Patch Changes diff --git a/packages/perseus-editor/package.json b/packages/perseus-editor/package.json index 896babb6c2..db6db653da 100644 --- a/packages/perseus-editor/package.json +++ b/packages/perseus-editor/package.json @@ -3,7 +3,7 @@ "description": "Perseus editors", "author": "Khan Academy", "license": "MIT", - "version": "17.0.4", + "version": "17.0.5", "publishConfig": { "access": "public" }, @@ -34,17 +34,17 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/kas": "^0.4.6", - "@khanacademy/keypad-context": "^1.0.8", - "@khanacademy/kmath": "^0.1.20", - "@khanacademy/math-input": "^22.0.3", - "@khanacademy/perseus": "^49.1.0", - "@khanacademy/perseus-core": "3.0.2", - "@khanacademy/pure-markdown": "^0.3.17", + "@khanacademy/kas": "^0.4.7", + "@khanacademy/keypad-context": "^1.0.9", + "@khanacademy/kmath": "^0.1.21", + "@khanacademy/math-input": "^22.0.4", + "@khanacademy/perseus": "^49.1.1", + "@khanacademy/perseus-core": "3.0.3", + "@khanacademy/pure-markdown": "^0.3.18", "mafs": "^0.19.0" }, "devDependencies": { - "@khanacademy/perseus-linter": "^1.2.8", + "@khanacademy/perseus-linter": "^1.2.9", "@khanacademy/wonder-blocks-accordion": "3.0.1", "@khanacademy/wonder-blocks-banner": "4.0.3", "@khanacademy/wonder-blocks-button": "7.0.3", diff --git a/packages/perseus-linter/CHANGELOG.md b/packages/perseus-linter/CHANGELOG.md index 2e73a718ea..cf913a8811 100644 --- a/packages/perseus-linter/CHANGELOG.md +++ b/packages/perseus-linter/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/perseus-linter +## 1.2.9 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/perseus-core@3.0.3 + ## 1.2.8 ### Patch Changes diff --git a/packages/perseus-linter/package.json b/packages/perseus-linter/package.json index fc2aec95cd..9b9f4734dd 100644 --- a/packages/perseus-linter/package.json +++ b/packages/perseus-linter/package.json @@ -3,7 +3,7 @@ "description": "Linter engine for Perseus", "author": "Khan Academy", "license": "MIT", - "version": "1.2.8", + "version": "1.2.9", "publishConfig": { "access": "public" }, @@ -25,10 +25,10 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.2" + "@khanacademy/perseus-core": "3.0.3" }, "devDependencies": { - "@khanacademy/pure-markdown": "^0.3.17", + "@khanacademy/pure-markdown": "^0.3.18", "prop-types": "15.6.1" }, "peerDependencies": { diff --git a/packages/perseus/CHANGELOG.md b/packages/perseus/CHANGELOG.md index bc9c757679..e2c241f2a2 100644 --- a/packages/perseus/CHANGELOG.md +++ b/packages/perseus/CHANGELOG.md @@ -1,5 +1,21 @@ # @khanacademy/perseus +## 49.1.1 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/kas@0.4.7 + - @khanacademy/keypad-context@1.0.9 + - @khanacademy/kmath@0.1.21 + - @khanacademy/math-input@22.0.4 + - @khanacademy/perseus-core@3.0.3 + - @khanacademy/perseus-linter@1.2.9 + - @khanacademy/pure-markdown@0.3.18 + - @khanacademy/simple-markdown@0.13.11 + ## 49.1.0 ### Minor Changes diff --git a/packages/perseus/package.json b/packages/perseus/package.json index 50086935c0..b2bc22905d 100644 --- a/packages/perseus/package.json +++ b/packages/perseus/package.json @@ -3,7 +3,7 @@ "description": "Core Perseus API (includes renderers and widgets)", "author": "Khan Academy", "license": "MIT", - "version": "49.1.0", + "version": "49.1.1", "publishConfig": { "access": "public" }, @@ -40,14 +40,14 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/kas": "^0.4.6", - "@khanacademy/keypad-context": "^1.0.8", - "@khanacademy/kmath": "^0.1.20", - "@khanacademy/math-input": "^22.0.3", - "@khanacademy/perseus-core": "3.0.2", - "@khanacademy/perseus-linter": "^1.2.8", - "@khanacademy/pure-markdown": "^0.3.17", - "@khanacademy/simple-markdown": "^0.13.10", + "@khanacademy/kas": "^0.4.7", + "@khanacademy/keypad-context": "^1.0.9", + "@khanacademy/kmath": "^0.1.21", + "@khanacademy/math-input": "^22.0.4", + "@khanacademy/perseus-core": "3.0.3", + "@khanacademy/perseus-linter": "^1.2.9", + "@khanacademy/pure-markdown": "^0.3.18", + "@khanacademy/simple-markdown": "^0.13.11", "@types/classnames": "2.2.0", "@use-gesture/react": "^10.2.27", "mafs": "0.19.0", diff --git a/packages/pure-markdown/CHANGELOG.md b/packages/pure-markdown/CHANGELOG.md index 4b6cda9cd2..bfa0af73ee 100644 --- a/packages/pure-markdown/CHANGELOG.md +++ b/packages/pure-markdown/CHANGELOG.md @@ -1,5 +1,15 @@ # @khanacademy/pure-markdown +## 0.3.18 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/perseus-core@3.0.3 + - @khanacademy/simple-markdown@0.13.11 + ## 0.3.17 ### Patch Changes diff --git a/packages/pure-markdown/package.json b/packages/pure-markdown/package.json index 2207767adb..18e57dfde8 100644 --- a/packages/pure-markdown/package.json +++ b/packages/pure-markdown/package.json @@ -3,7 +3,7 @@ "description": "SimpleMarkdown instance with non-react Perseus rules", "author": "Khan Academy", "license": "MIT", - "version": "0.3.17", + "version": "0.3.18", "publishConfig": { "access": "public" }, @@ -25,8 +25,8 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.2", - "@khanacademy/simple-markdown": "^0.13.10" + "@khanacademy/perseus-core": "3.0.3", + "@khanacademy/simple-markdown": "^0.13.11" }, "devDependencies": {}, "peerDependencies": {}, diff --git a/packages/simple-markdown/CHANGELOG.md b/packages/simple-markdown/CHANGELOG.md index 6baafe2415..43a0ee2f5a 100644 --- a/packages/simple-markdown/CHANGELOG.md +++ b/packages/simple-markdown/CHANGELOG.md @@ -1,5 +1,14 @@ # @khanacademy/simple-markdown +## 0.13.11 + +### Patch Changes + +- [#2028](https://github.com/Khan/perseus/pull/2028) [`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93) Thanks [@jeremywiebe](https://github.com/jeremywiebe)! - Forcing release + +- Updated dependencies [[`762b295ec`](https://github.com/Khan/perseus/commit/762b295eccd7d0dbc344edd271d3300b506adb93)]: + - @khanacademy/perseus-core@3.0.3 + ## 0.13.10 ### Patch Changes diff --git a/packages/simple-markdown/package.json b/packages/simple-markdown/package.json index bf2d78d568..50545537a0 100644 --- a/packages/simple-markdown/package.json +++ b/packages/simple-markdown/package.json @@ -3,7 +3,7 @@ "description": "Javascript markdown parsing, made simple", "author": "Khan Academy", "license": "MIT", - "version": "0.13.10", + "version": "0.13.11", "publishConfig": { "access": "public" }, @@ -25,7 +25,7 @@ "test": "bash -c 'yarn --silent --cwd \"../..\" test ${@:0} $($([[ ${@: -1} = -* ]] || [[ ${@: -1} = bash ]]) && echo $PWD)'" }, "dependencies": { - "@khanacademy/perseus-core": "3.0.2" + "@khanacademy/perseus-core": "3.0.3" }, "devDependencies": { "perseus-build-settings": "^0.4.2" From 881c0aac33b5425efffc4d191f6c0c031f3a9127 Mon Sep 17 00:00:00 2001 From: Nisha Yerunkar Date: Wed, 18 Dec 2024 15:46:16 -0800 Subject: [PATCH 5/6] [Interactive Graph][Axis labels] Make default x & y axis labels TeX on load (#2033) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary: Right now, the x and y labels when an interactive graph is first created show up as text. They should be showing up as text. - Add `$` around the "x" and "y" to make them show up as TeX Issue: none ## Test plan: `yarn jest packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.test.ts` `yarn jest packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.test.tsx` Before Screenshot 2024-12-18 at 3 16 30 PM After Screenshot 2024-12-18 at 3 17 11 PM Author: nishasy Reviewers: jeremywiebe, catandthemachines, anakaren-rojas Required Reviewers: Approved By: jeremywiebe, catandthemachines Checks: ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Cypress (ubuntu-latest, 20.x), ⏹️ [cancelled] Publish npm snapshot (ubuntu-latest, 20.x), ⏹️ [cancelled] Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ⏹️ [cancelled] Check builds for changes in size (ubuntu-latest, 20.x), ⏹️ [cancelled] Cypress (ubuntu-latest, 20.x), ⏹️ [cancelled] Check for .changeset entries for all changed files (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x) Pull Request URL: https://github.com/Khan/perseus/pull/2033 --- .changeset/soft-lizards-lie.md | 6 ++ .../interactive-graph-settings.test.tsx | 4 +- .../components/interactive-graph-settings.tsx | 2 +- .../interactive-graph-ai-utils.test.ts | 62 +++++++++---------- .../interactive-graph-question-builder.ts | 2 +- 5 files changed, 41 insertions(+), 35 deletions(-) create mode 100644 .changeset/soft-lizards-lie.md diff --git a/.changeset/soft-lizards-lie.md b/.changeset/soft-lizards-lie.md new file mode 100644 index 0000000000..4aabbd4f81 --- /dev/null +++ b/.changeset/soft-lizards-lie.md @@ -0,0 +1,6 @@ +--- +"@khanacademy/perseus": patch +"@khanacademy/perseus-editor": patch +--- + +[Interactive Graph][axis labels] Make default x & y axis labels TeX on load diff --git a/packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.test.tsx b/packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.test.tsx index f9e1884a63..3fa98fbafc 100644 --- a/packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.test.tsx +++ b/packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.test.tsx @@ -548,7 +548,7 @@ describe("InteractiveGraphSettings", () => { await waitFor(() => expect(onChange).toHaveBeenCalledWith( expect.objectContaining({ - labels: ["time", "y"], + labels: ["time", "$y$"], }), undefined, ), @@ -572,7 +572,7 @@ describe("InteractiveGraphSettings", () => { await waitFor(() => expect(onChange).toHaveBeenCalledWith( expect.objectContaining({ - labels: ["x", "count"], + labels: ["$x$", "count"], }), undefined, ), diff --git a/packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.tsx b/packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.tsx index 73a1ef623e..67e023572e 100644 --- a/packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.tsx +++ b/packages/perseus-editor/src/widgets/interactive-graph-editor/components/interactive-graph-settings.tsx @@ -135,7 +135,7 @@ class InteractiveGraphSettings extends React.Component { interactiveSizes.defaultBoxSizeSmall, interactiveSizes.defaultBoxSizeSmall, ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], range: [ [-10, 10], [-10, 10], diff --git a/packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.test.ts b/packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.test.ts index c81f0bdce7..b4192eae7f 100644 --- a/packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.test.ts +++ b/packages/perseus/src/widget-ai-utils/interactive-graph/interactive-graph-ai-utils.test.ts @@ -55,7 +55,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -87,7 +87,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -114,7 +114,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -140,7 +140,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { center: [1, 1], @@ -163,7 +163,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -191,7 +191,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -222,7 +222,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -262,7 +262,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -287,7 +287,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -313,7 +313,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -341,7 +341,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -373,7 +373,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -400,7 +400,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -430,7 +430,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -456,7 +456,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -484,7 +484,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -510,7 +510,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -539,7 +539,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -564,7 +564,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -592,7 +592,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -613,7 +613,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }; const userInput: any = { @@ -658,7 +658,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -702,7 +702,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { center: [0, 0], @@ -739,7 +739,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -778,7 +778,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -823,7 +823,7 @@ describe("InteractiveGraph AI utils", () => { [-4, 4], [-4, 4], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: undefined, @@ -862,7 +862,7 @@ describe("InteractiveGraph AI utils", () => { [-1, 6], [-1, 6], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -902,7 +902,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -943,7 +943,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -984,7 +984,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ @@ -1027,7 +1027,7 @@ describe("InteractiveGraph AI utils", () => { [-10, 10], [-10, 10], ], - labels: ["x", "y"], + labels: ["$x$", "$y$"], }, userInput: { coords: [ diff --git a/packages/perseus/src/widgets/interactive-graphs/interactive-graph-question-builder.ts b/packages/perseus/src/widgets/interactive-graphs/interactive-graph-question-builder.ts index 2e4c846083..e9f20c27e1 100644 --- a/packages/perseus/src/widgets/interactive-graphs/interactive-graph-question-builder.ts +++ b/packages/perseus/src/widgets/interactive-graphs/interactive-graph-question-builder.ts @@ -53,7 +53,7 @@ class InteractiveGraphQuestionBuilder { top?: number; }; private gridStep: vec.Vector2 = [1, 1]; - private labels: [string, string] = ["x", "y"]; + private labels: [string, string] = ["$x$", "$y$"]; private markings: "graph" | "grid" | "none" = "graph"; private xRange: Interval = [-10, 10]; private yRange: Interval = [-10, 10]; From b52310d1bacd5c4e9844bb9094edc02307106af3 Mon Sep 17 00:00:00 2001 From: Nisha Yerunkar Date: Wed, 18 Dec 2024 16:24:57 -0800 Subject: [PATCH 6/6] [SR] Linear graph - add grab handle description and aria lives (#2025) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Summary: The [SRUX doc](https://khanacademy.atlassian.net/wiki/spaces/LC/pages/3460366348/Linear) still needs a label for the grab handle, but I tried my best in the meantime. - Add a label and describedby for the grab handle. - Add aria-live states for the different interactive elements so they don't override each other. Issue: https://khanacademy.atlassian.net/browse/LEMS-1726 ## Test plan: `yarn jest packages/perseus/src/widgets/interactive-graphs/graphs/linear.test.tsx` Storybook - http://localhost:6006/iframe.html?id=perseuseditor-widgets-interactive-graph--interactive-graph-linear&viewMode=story - Try all the different slopes and intercepts - Move different elements and confirm that the updated aria-label is what is read out, and none of the other elements override the currently focused one. https://github.com/user-attachments/assets/b528c467-dde0-457e-8b53-56fa8493e06c Author: nishasy Reviewers: anakaren-rojas, nishasy, catandthemachines Required Reviewers: Approved By: anakaren-rojas Checks: ✅ Cypress (ubuntu-latest, 20.x), ✅ Publish npm snapshot (ubuntu-latest, 20.x), ✅ Check builds for changes in size (ubuntu-latest, 20.x), ✅ Lint, Typecheck, Format, and Test (ubuntu-latest, 20.x), ✅ Publish Storybook to Chromatic (ubuntu-latest, 20.x), ✅ Check for .changeset entries for all changed files (ubuntu-latest, 20.x) Pull Request URL: https://github.com/Khan/perseus/pull/2025 --- .changeset/cyan-bees-appear.md | 5 + packages/perseus/src/strings.ts | 19 +++ .../__snapshots__/movable-line.test.tsx.snap | 18 ++- .../graphs/components/movable-line.tsx | 63 +++++++-- .../interactive-graphs/graphs/linear.test.tsx | 123 ++++++++++++++++-- .../interactive-graphs/graphs/linear.tsx | 8 ++ 6 files changed, 211 insertions(+), 25 deletions(-) create mode 100644 .changeset/cyan-bees-appear.md diff --git a/.changeset/cyan-bees-appear.md b/.changeset/cyan-bees-appear.md new file mode 100644 index 0000000000..8b03f8ce2d --- /dev/null +++ b/.changeset/cyan-bees-appear.md @@ -0,0 +1,5 @@ +--- +"@khanacademy/perseus": patch +--- + +[SR] Linear graph - add grab handle description and aria lives diff --git a/packages/perseus/src/strings.ts b/packages/perseus/src/strings.ts index 82ffa14133..2443644c8c 100644 --- a/packages/perseus/src/strings.ts +++ b/packages/perseus/src/strings.ts @@ -209,6 +209,17 @@ export type PerseusStrings = { yIntercept: string; }) => string; srLinearGraphOriginIntercept: string; + srLinearGrabHandle: ({ + point1X, + point1Y, + point2X, + point2Y, + }: { + point1X: string; + point1Y: string; + point2X: string; + point2Y: string; + }) => string; srAngleSideAtCoordinates: ({ point, side, @@ -515,6 +526,12 @@ export const strings: { "Screenreader-only description of the line's intercept when the intercept is the graph's origin.", message: "The line crosses the x and y axes at the graph's origin.", }, + srLinearGrabHandle: { + context: + "Screenreader-only label on the grab handle for the line on a linear graph.", + message: + "Line from %(point1X)s comma %(point1Y)s to %(point2X)s comma %(point2Y)s.", + }, srAngleSideAtCoordinates: { context: "Screenreader-accessible description of the side / vertex of an angle graph", @@ -733,6 +750,8 @@ export const mockStrings: PerseusStrings = { `The line crosses the X-axis at ${xIntercept} comma 0 and the Y-axis at 0 comma ${yIntercept}.`, srLinearGraphOriginIntercept: "The line crosses the x and y axes at the graph's origin.", + srLinearGrabHandle: ({point1X, point1Y, point2X, point2Y}) => + `Line from ${point1X} comma ${point1Y} to ${point2X} comma ${point2Y}.`, srAngleSideAtCoordinates: ({point, side, x, y}) => `Point ${point}, ${side} at ${x} comma ${y}`, srAngleVertexAtCoordinatesWithAngleMeasure: ({x, y, angleMeasure}) => diff --git a/packages/perseus/src/widgets/interactive-graphs/graphs/components/__snapshots__/movable-line.test.tsx.snap b/packages/perseus/src/widgets/interactive-graphs/graphs/components/__snapshots__/movable-line.test.tsx.snap index 560d781cdf..b3e109b8af 100644 --- a/packages/perseus/src/widgets/interactive-graphs/graphs/components/__snapshots__/movable-line.test.tsx.snap +++ b/packages/perseus/src/widgets/interactive-graphs/graphs/components/__snapshots__/movable-line.test.tsx.snap @@ -16,15 +16,17 @@ exports[`Rendering Does NOT render extensions of line when option is disabled 1` > @@ -61,7 +63,7 @@ exports[`Rendering Does NOT render extensions of line when option is disabled 1` @@ -201,7 +205,7 @@ exports[`Rendering Does NOT render extensions of line when option is not provide @@ -395,7 +401,7 @@ exports[`Rendering Does render extensions of line when option is enabled 1`] = ` { const { + points: [start, end], ariaLabels, ariaDescribedBy, - onMoveLine = () => {}, - onMovePoint = () => {}, color, - points: [start, end], extend, + onMoveLine = () => {}, + onMovePoint = () => {}, } = props; + // Aria live states for (0) point 1, (1) point 2, and (2) grab handle. + // When moving an element, set its aria live to "polite" and the others + // to "off". Otherwise, other connected elements that move at the same + // time might override the currently focused element's aria live. + const [ariaLives, setAriaLives] = React.useState>([ + "off", + "off", + "off", + ]); + // We use separate focusableHandle elements, instead of letting the movable // points themselves be focusable, to allow the tab order of the points to // be different from the rendering order. We had to solve for the following @@ -59,28 +71,42 @@ export const MovableLine = (props: Props) => { useControlPoint({ ariaLabel: ariaLabels?.point1AriaLabel, ariaDescribedBy: ariaDescribedBy, + ariaLive: ariaLives[0], point: start, sequenceNumber: 1, color, - onMove: (p) => onMovePoint(0, p), + onMove: (p) => { + setAriaLives(["polite", "off", "off"]); + onMovePoint(0, p); + }, }); const {visiblePoint: visiblePoint2, focusableHandle: focusableHandle2} = useControlPoint({ ariaLabel: ariaLabels?.point2AriaLabel, ariaDescribedBy: ariaDescribedBy, + ariaLive: ariaLives[1], point: end, sequenceNumber: 2, color, - onMove: (p) => onMovePoint(1, p), + onMove: (p) => { + setAriaLives(["off", "polite", "off"]); + onMovePoint(1, p); + }, }); const line = ( { + setAriaLives(["off", "off", "polite"]); + onMoveLine(delta); + }} /> ); @@ -100,8 +126,9 @@ const defaultStroke = "var(--movable-line-stroke-color)"; type LineProps = { start: vec.Vector2; end: vec.Vector2; - onMove: (delta: vec.Vector2) => unknown; - stroke?: string | undefined; + ariaLabel?: string; + ariaDescribedBy?: string; + ariaLive?: AriaLive; /* Extends the line to the edge of the graph with an arrow */ extend?: | undefined @@ -109,10 +136,21 @@ type LineProps = { start: boolean; end: boolean; }; + stroke?: string | undefined; + onMove: (delta: vec.Vector2) => unknown; }; const Line = (props: LineProps) => { - const {start, end, onMove, extend, stroke = defaultStroke} = props; + const { + start, + end, + ariaLabel, + ariaDescribedBy, + ariaLive, + extend, + stroke = defaultStroke, + onMove, + } = props; const [startPtPx, endPtPx] = useTransformVectorsToPixels(start, end); const { @@ -150,9 +188,16 @@ const Line = (props: LineProps) => { {/** * This transparent line creates a nice big click/touch target. diff --git a/packages/perseus/src/widgets/interactive-graphs/graphs/linear.test.tsx b/packages/perseus/src/widgets/interactive-graphs/graphs/linear.test.tsx index 6953d153b3..68b87e4a48 100644 --- a/packages/perseus/src/widgets/interactive-graphs/graphs/linear.test.tsx +++ b/packages/perseus/src/widgets/interactive-graphs/graphs/linear.test.tsx @@ -1,4 +1,5 @@ import {render, screen} from "@testing-library/react"; +import {userEvent as userEventLib} from "@testing-library/user-event"; import * as React from "react"; import {Dependencies} from "@khanacademy/perseus"; @@ -8,6 +9,7 @@ import {MafsGraph} from "../mafs-graph"; import {getBaseMafsGraphPropsForTests} from "../utils"; import type {InteractiveGraphState} from "../types"; +import type {UserEvent} from "@testing-library/user-event"; const baseMafsGraphProps = getBaseMafsGraphPropsForTests(); const baseLinearState: InteractiveGraphState = { @@ -27,7 +29,11 @@ const baseLinearState: InteractiveGraphState = { const overallGraphLabel = "A line on a coordinate plane."; describe("Linear graph screen reader", () => { + let userEvent: UserEvent; beforeEach(() => { + userEvent = userEventLib.setup({ + advanceTimers: jest.advanceTimersByTime, + }); jest.spyOn(Dependencies, "getDependencies").mockReturnValue( testDependencies, ); @@ -50,21 +56,54 @@ describe("Linear graph screen reader", () => { ); }); - test("should have aria labels for both points on the line", () => { + test.each` + element | index | expectedValue + ${"point1"} | ${0} | ${"Point 1 at -5 comma 5"} + ${"grabHandle"} | ${1} | ${"Line from -5 comma 5 to 5 comma 5."} + ${"point2"} | ${2} | ${"Point 2 at 5 comma 5"} + `( + "should have aria label for $element on the line", + ({index, expectedValue}) => { + // Arrange + render( + , + ); + + // Act + // Moveable elements: point 1, grab handle, point 2 + const movableElements = screen.getAllByRole("button"); + const element = movableElements[index]; + + // Assert + // Check aria-label and describedby on interactive elements. + // (The actual description text is tested separately below.) + expect(element).toHaveAttribute("aria-label", expectedValue); + }, + ); + + test.each` + element | index + ${"point1"} | ${0} + ${"grabHandle"} | ${1} + ${"point2"} | ${2} + `("should have aria describedby for $element on the line", ({index}) => { // Arrange render(); // Act - // eslint-disable-next-line testing-library/no-node-access - const points = screen.getAllByTestId("movable-point__focusable-handle"); + // Moveable elements: point 1, grab handle, point 2 + const movableElements = screen.getAllByRole("button"); + const element = movableElements[index]; // Assert - // Check aria-label for both points on the line. - expect(points[0]).toHaveAttribute( - "aria-label", - "Point 1 at -5 comma 5", + // Check aria-describedby on interactive elements. + // (The actual description text is tested separately below.) + // We don't know the exact ID because of React.useID(), but we can + // check the suffix. + expect(element.getAttribute("aria-describedby")).toContain( + "-intercept", ); - expect(points[1]).toHaveAttribute("aria-label", "Point 2 at 5 comma 5"); + expect(element.getAttribute("aria-describedby")).toContain("-slope"); }); test("points description should include points info", () => { @@ -87,7 +126,7 @@ describe("Linear graph screen reader", () => { ${"x intercept only"} | ${[[5, 5], [5, 2]]} | ${"The line crosses the X-axis at 5 comma 0."} ${"y intercept only"} | ${[[5, 5], [2, 5]]} | ${"The line crosses the Y-axis at 0 comma 5."} `( - `slope description should include slope info for $case`, + "slope description should include slope info for $case", ({coords, interceptDescription}) => { // Arrange render( @@ -115,7 +154,7 @@ describe("Linear graph screen reader", () => { ${"horizontal line"} | ${[[1, 1], [3, 1]]} | ${"Its slope is zero."} ${"vertical line"} | ${[[1, 1], [1, 3]]} | ${"Its slope is undefined."} `( - `slope description should include slope info for $case`, + "slope description should include slope info for $case", ({coords, slopeDescription}) => { // Arrange render( @@ -135,4 +174,68 @@ describe("Linear graph screen reader", () => { expect(linearGraph).toHaveTextContent(slopeDescription); }, ); + + test("aria label reflects updated values", async () => { + // Arrange + + // Act + render( + , + ); + + const interactiveElements = screen.getAllByRole("button"); + const [point1, grabHandle, point2] = interactiveElements; + + // Assert + // Check updated aria-label for the linear graph. + expect(point1).toHaveAttribute("aria-label", "Point 1 at -2 comma 3"); + expect(grabHandle).toHaveAttribute( + "aria-label", + "Line from -2 comma 3 to 3 comma 3.", + ); + expect(point2).toHaveAttribute("aria-label", "Point 2 at 3 comma 3"); + }); + + test.each` + elementName | index + ${"point1"} | ${0} + ${"grabHandle"} | ${1} + ${"point2"} | ${2} + `( + "Should update the aria-live when $elementName is moved", + async ({index}) => { + // Arrange + render( + , + ); + const interactiveElements = screen.getAllByRole("button"); + const [point1, grabHandle, point2] = interactiveElements; + const movingElement = interactiveElements[index]; + + // Act - Move the element + movingElement.focus(); + await userEvent.keyboard("{ArrowRight}"); + + const expectedAriaLive = ["off", "off", "off"]; + expectedAriaLive[index] = "polite"; + + // Assert + expect(point1).toHaveAttribute("aria-live", expectedAriaLive[0]); + expect(grabHandle).toHaveAttribute( + "aria-live", + expectedAriaLive[1], + ); + expect(point2).toHaveAttribute("aria-live", expectedAriaLive[2]); + }, + ); }); diff --git a/packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx b/packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx index b20f1d25c4..915084532d 100644 --- a/packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx +++ b/packages/perseus/src/widgets/interactive-graphs/graphs/linear.tsx @@ -43,6 +43,12 @@ const LinearGraph = (props: LinearGraphProps, key: number) => { point2X: srFormatNumber(line[1][0], locale), point2Y: srFormatNumber(line[1][1], locale), }); + const grabHandleAriaLabel = strings.srLinearGrabHandle({ + point1X: srFormatNumber(line[0][0], locale), + point1Y: srFormatNumber(line[0][1], locale), + point2X: srFormatNumber(line[1][0], locale), + point2Y: srFormatNumber(line[1][1], locale), + }); // Slope description const slope = (line[1][1] - line[0][1]) / (line[1][0] - line[0][0]); @@ -93,9 +99,11 @@ const LinearGraph = (props: LinearGraphProps, key: number) => { // Outer line minimal description aria-label={strings.srLinearGraph} aria-describedby={`${pointsDescriptionId} ${interceptDescriptionId} ${slopeDescriptionId}`} + role="figure" > {