diff --git a/package-lock.json b/package-lock.json index eed8ff52..5637ddf5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "idb-keyval": "^6.2.0", "mathjax": "^3.2.2", "mathjs": "^11.8.2", - "mathlive": "github:mgreminger/mathlive#implicit-function-fix", + "mathlive": "^0.98.6", "plotly.js-basic-dist": "github:mgreminger/plotly.js#dist-basic-for-ep", "quick-lru": "^6.1.1", "quill": "^1.3.7", @@ -1833,12 +1833,12 @@ "dev": true }, "node_modules/@cortex-js/compute-engine": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@cortex-js/compute-engine/-/compute-engine-0.12.2.tgz", - "integrity": "sha512-MxXYwCsHzcuzpC81khhp+r0/PN6gO8/Kb9kDeATFUwGqDU0sfejskvmiblQI5xlc323WVSGQOXNemqHFBgCx5g==", + "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", @@ -5273,11 +5273,11 @@ } }, "node_modules/mathlive": { - "version": "0.94.8", - "resolved": "git+ssh://git@github.com/mgreminger/mathlive.git#4f798df282fb4487c01116076dba7336e64f6984", - "license": "MIT", + "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.2" + "@cortex-js/compute-engine": "0.22.0" }, "engines": { "node": ">=16.14.2", @@ -9278,12 +9278,12 @@ "dev": true }, "@cortex-js/compute-engine": { - "version": "0.12.2", - "resolved": "https://registry.npmjs.org/@cortex-js/compute-engine/-/compute-engine-0.12.2.tgz", - "integrity": "sha512-MxXYwCsHzcuzpC81khhp+r0/PN6gO8/Kb9kDeATFUwGqDU0sfejskvmiblQI5xlc323WVSGQOXNemqHFBgCx5g==", + "version": "0.22.0", + "resolved": "https://registry.npmjs.org/@cortex-js/compute-engine/-/compute-engine-0.22.0.tgz", + "integrity": "sha512-TPePa4bCbgZO/xh++3ZMNhJD7eLNTFxctbqHtIYbQjLLlUX585HaWeZqIptao4Xi59jZZtP3bPb19txTb251ZA==", "requires": { "complex.js": "^2.1.1", - "decimal.js": "^10.4.0" + "decimal.js": "^10.4.3" } }, "@esbuild-plugins/node-globals-polyfill": { @@ -11719,10 +11719,11 @@ } }, "mathlive": { - "version": "git+ssh://git@github.com/mgreminger/mathlive.git#4f798df282fb4487c01116076dba7336e64f6984", - "from": "mathlive@github:mgreminger/mathlive#implicit-function-fix", + "version": "0.98.6", + "resolved": "https://registry.npmjs.org/mathlive/-/mathlive-0.98.6.tgz", + "integrity": "sha512-5rRnVa1Xc9iD+f3sfQ6CWgL0GIIq0Fl6A/FbM5gZcrMaEeYn34DFIxUnLLLMgpb8vc/LZhJ1s9dDCqxv2bYTBw==", "requires": { - "@cortex-js/compute-engine": "0.12.2" + "@cortex-js/compute-engine": "0.22.0" } }, "mdn-data": { diff --git a/package.json b/package.json index 6a1e59e5..efed439d 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "idb-keyval": "^6.2.0", "mathjax": "^3.2.2", "mathjs": "^11.8.2", - "mathlive": "github:mgreminger/mathlive#implicit-function-fix", + "mathlive": "^0.98.6", "plotly.js-basic-dist": "github:mgreminger/plotly.js#dist-basic-for-ep", "quick-lru": "^6.1.1", "quill": "^1.3.7", diff --git a/src/MathField.svelte b/src/MathField.svelte index 4453112a..97850eea 100644 --- a/src/MathField.svelte +++ b/src/MathField.svelte @@ -50,14 +50,9 @@ mathLiveField.smartSuperscript = false; mathLiveField.inlineShortcuts = INLINE_SHORTCUTS; - mathLiveField.keybindings = mathLiveField.keybindings - .filter((value) => value.key !== '[Paste]' && - value.key !== 'ctrl+v' && - value.key !== 'cmd+v'); - mathLiveField.mathModeSpace = '\\:' - setLatex(latex); // set intial latex value + setLatex(latex); // set initial latex value } else { mathLiveField.readOnly = true; } @@ -167,7 +162,7 @@ math-field { font-size: 16px; - contain: content; + z-index: 500; background-color: transparent; } @@ -199,6 +194,10 @@ display: none; } + math-field::part(menu-toggle) { + display: none; + } + math-field::part(container) { touch-action: auto; }