Skip to content

Build your personal knowledge base with Trilium Notes

Fixed chaching problems

meinzzzz39838c25c29b
diff --git a/apps/client/package.json b/apps/client/package.json
index ba0fbb97b9..d8db8801dc 100644
--- a/apps/client/package.json
+++ b/apps/client/package.json
@@ -54,6 +54,7 @@
"leaflet-gpx": "2.2.0",
"mark.js": "8.11.1",
"marked": "17.0.0",
+ "mathlive": "0.108.2",
"mermaid": "11.12.1",
"mind-elixir": "5.3.6",
"normalize.css": "8.0.1",
diff --git a/apps/client/vite.config.mts b/apps/client/vite.config.mts
index 8d3b0c5834..12eac25ced 100644
--- a/apps/client/vite.config.mts
+++ b/apps/client/vite.config.mts
@@ -83,7 +83,7 @@ export default defineConfig(() => ({
chunkFileNames: "src/[name].js",
assetFileNames: "src/[name].[ext]",
manualChunks: {
- "ckeditor5": [ "@triliumnext/ckeditor5" ],
+ "ckeditor5": [ "@triliumnext/ckeditor5", "mathlive" ],
"boxicons": [ "../../node_modules/boxicons/css/boxicons.min.css" ]
},
},
diff --git a/packages/ckeditor5-math/src/index.ts b/packages/ckeditor5-math/src/index.ts
index b3475309f5..eac4d7b223 100644
--- a/packages/ckeditor5-math/src/index.ts
+++ b/packages/ckeditor5-math/src/index.ts
@@ -1,6 +1,7 @@
import ckeditor from './../theme/icons/math.svg?raw';
import './augmentation.js';
import "../theme/mathform.css";
+import 'mathlive';
import 'mathlive/fonts.css';
import 'mathlive/static.css';
diff --git a/packages/ckeditor5-math/src/mathui.ts b/packages/ckeditor5-math/src/mathui.ts
index 76290626fe..504adf77aa 100644
--- a/packages/ckeditor5-math/src/mathui.ts
+++ b/packages/ckeditor5-math/src/mathui.ts
@@ -4,7 +4,6 @@ import mathIcon from '../theme/icons/math.svg?raw';
import { Plugin, ClickObserver, ButtonView, ContextualBalloon, clickOutsideHandler, CKEditorError, uid } from 'ckeditor5';
import { getBalloonPositionData } from './utils.js';
import MathCommand from './mathcommand.js';
-import 'mathlive';
const mathKeystroke = 'Ctrl+M';
diff --git a/packages/ckeditor5-math/src/ui/mathliveinputview.ts b/packages/ckeditor5-math/src/ui/mathliveinputview.ts
index 148ae7f141..689ec891aa 100644
--- a/packages/ckeditor5-math/src/ui/mathliveinputview.ts
+++ b/packages/ckeditor5-math/src/ui/mathliveinputview.ts
@@ -1,4 +1,5 @@
import { View, type Locale } from 'ckeditor5';
+import 'mathlive';
/**
* A view that wraps the MathLive `<math-field>` web component for interactive LaTeX equation editing.
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 903192f4f3..1e470a4896 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -274,6 +274,9 @@ importers:
marked:
specifier: 17.0.0
version: 17.0.0
+ mathlive:
+ specifier: 0.108.2
+ version: 0.108.2
mermaid:
specifier: 11.12.1
version: 11.12.1
@@ -1055,9 +1058,6 @@ importers:
packages/ckeditor5-math:
dependencies:
- '@ckeditor/ckeditor5-icons':
- specifier: 47.2.0
- version: 47.2.0
mathlive:
specifier: 0.108.2
version: 0.108.2
@@ -15584,6 +15584,8 @@ snapshots:
'@ckeditor/ckeditor5-core': 47.2.0
'@ckeditor/ckeditor5-upload': 47.2.0
ckeditor5: 47.2.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
+ transitivePeerDependencies:
+ - supports-color
dependencies:
@@ -15990,6 +15992,8 @@ snapshots:
'@ckeditor/ckeditor5-utils': 47.2.0
ckeditor5: 47.2.0(patch_hash=8331a09d41443b39ea1c784daaccfeb0da4f9065ed556e7de92e9c77edd9eb41)
es-toolkit: 1.39.5
+ transitivePeerDependencies:
+ - supports-color
'@ckeditor/[email protected]':
dependencies: