diff --git a/package-lock.json b/package-lock.json index 636fcd9c..b9e74141 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "@khanacademy/kas": "github:openstax/raise-kas#6481127dacbd9fda7d34a6e79f27d0e4cb4798d5", "bootstrap": "^5.3.2", "formik": "^2.4.5", - "mathlive": "^0.95.5", + "mathlive": "^0.98.6", "react": "^18.2.0", "react-dom": "^18.2.0", "uuid": "^9.0.1", @@ -776,12 +776,12 @@ } }, "node_modules/@cortex-js/compute-engine": { - "version": "0.12.3", - "resolved": "https://registry.npmjs.org/@cortex-js/compute-engine/-/compute-engine-0.12.3.tgz", - "integrity": "sha512-LuiSWMSlgsLFcRWm5ifR8ZeE9HXWOrJ+hE6F211eVI+S+w9SQQvZhhCdUCBusyspW0+29R8lksJPH4qFFr3Xag==", + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@cortex-js/compute-engine/-/compute-engine-0.22.0.tgz", + "integrity": "sha512-TPePa4bCbgZO/xh++3ZMNhJD7eLNTFxctbqHtIYbQjLLlUX585HaWeZqIptao4Xi59jZZtP3bPb19txTb251ZA==", "dependencies": { "complex.js": "^2.1.1", - "decimal.js": "^10.4.0" + "decimal.js": "^10.4.3" }, "engines": { "node": ">=16.14.2", @@ -7971,11 +7971,11 @@ } }, "node_modules/mathlive": { - "version": "0.95.5", - "resolved": "https://registry.npmjs.org/mathlive/-/mathlive-0.95.5.tgz", - "integrity": "sha512-FAAyx0m7hcYNIZKdmQ3/x+vk1lwSmQU30aGYRN2c5+Zz4H0z+B8+0h9fZgUN7SRvc1MmoeaOrO2iGvC2/RYDEg==", + "version": "0.98.6", + "resolved": "https://registry.npmjs.org/mathlive/-/mathlive-0.98.6.tgz", + "integrity": "sha512-5rRnVa1Xc9iD+f3sfQ6CWgL0GIIq0Fl6A/FbM5gZcrMaEeYn34DFIxUnLLLMgpb8vc/LZhJ1s9dDCqxv2bYTBw==", "dependencies": { - "@cortex-js/compute-engine": "0.12.3" + "@cortex-js/compute-engine": "0.22.0" }, "engines": { "node": ">=16.14.2", diff --git a/package.json b/package.json index 50367eb7..417e830b 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "@khanacademy/kas": "github:openstax/raise-kas#6481127dacbd9fda7d34a6e79f27d0e4cb4798d5", "bootstrap": "^5.3.2", "formik": "^2.4.5", - "mathlive": "^0.95.5", + "mathlive": "^0.98.6", "react": "^18.2.0", "react-dom": "^18.2.0", "uuid": "^9.0.1", diff --git a/specs/blocks.spec.ts b/specs/blocks.spec.ts index fd0a8a88..75457627 100644 --- a/specs/blocks.spec.ts +++ b/specs/blocks.spec.ts @@ -331,7 +331,9 @@ test('Math field component rendered', async ({ page }) => { await page.goto('/') await page.locator('math-field').click() await page.waitForSelector('.ML__keyboard') - await page.keyboard.type('3\\sqrt2+2') + await page.keyboard.type('3\\sqrt') + await page.keyboard.down('Enter') + await page.keyboard.type('2+2') await page.waitForSelector('text=3') await page.locator('text=Check').click() await page.waitForSelector('text=Correct') diff --git a/src/styles/interactives.scss b/src/styles/interactives.scss index e4fa38e6..83795681 100644 --- a/src/styles/interactives.scss +++ b/src/styles/interactives.scss @@ -165,6 +165,10 @@ math-field::part(virtual-keyboard-toggle) { display: none; } +math-field::part(menu-toggle) { + display: none; +} + // Textarea Styles .os-textarea-disabled.os-textarea-disabled { box-shadow: none;