Skip to content

Commit

Permalink
fix: solve mathlive dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezcarlosjr committed Oct 20, 2023
1 parent 06f7292 commit 1dfc0bc
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 27 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
"jsonpath": "1.1.1",
"langchain": "0.0.72",
"mathjs": "11.11.2",
"mathlive": "0.95.5",
"mathlive": "0.90.6",
"mermaid": "10.5.1",
"new-libp2p": "npm:libp2p@0.45.9",
"new-libp2p-gossipsub": "npm:@chainsafe/libp2p-gossipsub@9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/app/notebook/cellTypes/MathBlock.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MathfieldElement } from 'mathlive';
import {InteractiveBlock} from "./InteractiveBlock";
import {ComputeEngine} from "@cortex-js/compute-engine";
import {EditorJsTool} from "./EditorJsTool";
import {MathfieldElement} from "mathlive";
MathfieldElement.fontsDirectory = "/assets/fonts/";
MathfieldElement.soundsDirectory = "/assets/sounds/";

Expand Down
11 changes: 0 additions & 11 deletions src/app/notebook/cellTypes/MermaidBlock.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ import {espresso} from "thememirror";
import {BlockAPI} from "@editorjs/editorjs";
import {BehaviorSubject, filter, firstValueFrom, first, map} from "rxjs";
import {svgToInlinedSvgDataUri, dataUriToImage, canvasToRasterBlob, download} from "export-svg";
import {mermaid as mermaidlang, mindmapTags} from 'codemirror-lang-mermaid';
import {HighlightStyle, syntaxHighlighting} from '@codemirror/language';

const myHighlightStyle = HighlightStyle.define([
{tag: mindmapTags.diagramName, color: '#9650c8'},
{tag: mindmapTags.lineText1, color: '#ce9178'},
{tag: mindmapTags.lineText2, color: 'green'},
{tag: mindmapTags.lineText3, color: 'red'},
{tag: mindmapTags.lineText4, color: 'magenta'},
{tag: mindmapTags.lineText5, color: '#569cd6'},
]);

function generateId(prefix: string) {
return `${prefix}${randomCouchString(10)}`;
Expand Down
18 changes: 4 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1811,14 +1811,6 @@
complex.js "^2.1.1"
decimal.js "^10.4.0"

"@cortex-js/compute-engine@0.12.3":
version "0.12.3"
resolved "https://registry.yarnpkg.com/@cortex-js/compute-engine/-/compute-engine-0.12.3.tgz#c046b6e233926cd20f3c305b4855dda364e506fe"
integrity sha512-LuiSWMSlgsLFcRWm5ifR8ZeE9HXWOrJ+hE6F211eVI+S+w9SQQvZhhCdUCBusyspW0+29R8lksJPH4qFFr3Xag==
dependencies:
complex.js "^2.1.1"
decimal.js "^10.4.0"

"@cspotcode/source-map-support@^0.8.0":
version "0.8.1"
resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1"
Expand Down Expand Up @@ -12508,12 +12500,10 @@ mathjs@11.11.2:
tiny-emitter "^2.1.0"
typed-function "^4.1.1"

mathlive@0.95.5:
version "0.95.5"
resolved "https://registry.yarnpkg.com/mathlive/-/mathlive-0.95.5.tgz#86b3fcd4100906dcebec2c8c3e6258e950c0e780"
integrity sha512-FAAyx0m7hcYNIZKdmQ3/x+vk1lwSmQU30aGYRN2c5+Zz4H0z+B8+0h9fZgUN7SRvc1MmoeaOrO2iGvC2/RYDEg==
dependencies:
"@cortex-js/compute-engine" "0.12.3"
mathlive@0.90.6:
version "0.90.6"
resolved "https://registry.yarnpkg.com/mathlive/-/mathlive-0.90.6.tgz#1579b47d47b683413111b631a0b0640be56fa42d"
integrity sha512-B17Cl9/S6aLLBz5OSo3WZ+rKe+kAgFFGJcl7+gqKx2MC8kPPRMRADYXk6NgR2ge0XGbp/t0CNQF1Rg49SVwuew==

md5.js@^1.3.4:
version "1.3.5"
Expand Down

0 comments on commit 1dfc0bc

Please sign in to comment.