Skip to content

Build your personal knowledge base with Trilium Notes

refactor(ckeditor5): fold math into the aggregate package

Elian Doran649188c5c876
diff --git a/.github/workflows/dev.yml b/.github/workflows/dev.yml
index 25c35733fb..9ffa4bca4f 100644
--- a/.github/workflows/dev.yml
+++ b/.github/workflows/dev.yml
@@ -132,12 +132,6 @@ jobs:
disable_search: true
fail_ci_if_error: false
- - name: Run CKEditor e2e tests
- run: |
- export CHROMEDRIVER_PATH=$(which chromedriver || find /usr/local/share -name chromedriver -type f 2>/dev/null | head -1)
- echo "Using chromedriver at: $CHROMEDRIVER_PATH"
- pnpm run --filter=ckeditor5-math test
-
- name: Run the CKEditor 5 aggregate tests
id: test-ckeditor5
run: |
@@ -303,7 +297,7 @@ jobs:
fail_ci_if_error: false
- name: Run the rest of the tests
- run: pnpm run --filter=\!client --filter=\!standalone --filter=\!server --filter=\!desktop --filter=\!commons --filter=\!ckeditor5-math --filter=\!ckeditor5 --filter=\!codemirror --filter=\!express-partial-content --filter=\!highlightjs --filter=\!pdfjs-viewer test
+ run: pnpm run --filter=\!client --filter=\!standalone --filter=\!server --filter=\!desktop --filter=\!commons --filter=\!ckeditor5 --filter=\!codemirror --filter=\!express-partial-content --filter=\!highlightjs --filter=\!pdfjs-viewer test
build_docker:
name: Build Docker image
diff --git a/CLAUDE.md b/CLAUDE.md
index 18f023e881..a7be98cc84 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -25,7 +25,7 @@ pnpm desktop:build # Electron
# Test
pnpm test:all # All tests (parallel + sequential)
pnpm test:parallel # Client + most package tests
-pnpm test:sequential # Server (shared DB) + browser-mode tests (ckeditor5, ckeditor5-math)
+pnpm test:sequential # Server (shared DB) + browser-mode tests (ckeditor5)
pnpm --filter server test # Single package tests
pnpm coverage # Coverage reports
@@ -75,7 +75,6 @@ packages/
codemirror/ # Code editor integration
highlightjs/ # Syntax highlighting
share-theme/ # Theme for shared/published notes
- ckeditor5-math/
express-partial-content/, pdfjs-viewer/, splitjs/
turndown-plugin-gfm/
```
diff --git a/docs/Developer Guide/Developer Guide/Architecture.md b/docs/Developer Guide/Developer Guide/Architecture.md
index 4c0c48059f..cbe753b9c6 100644
--- a/docs/Developer Guide/Developer Guide/Architecture.md
+++ b/docs/Developer Guide/Developer Guide/Architecture.md
@@ -94,7 +94,6 @@ trilium/
│ ├── ckeditor5/ # Custom rich text editor
│ ├── codemirror/ # Code editor customizations
│ ├── highlightjs/ # Syntax highlighting
-│ ├── ckeditor5-math/ # CKEditor plugin: math equations
│ ├── express-partial-content/ # HTTP partial content middleware
│ ├── share-theme/ # Shared note theme
│ ├── splitjs/ # Split pane library
@@ -113,7 +112,7 @@ The monorepo uses workspace protocol (`workspace:*`) for internal dependencies:
desktop → client → commons
server → client → commons
client → ckeditor5, codemirror, highlightjs
-ckeditor5 → ckeditor5-* plugins
+ckeditor5 → its in-tree plugins (src/plugins/)
```
## Security summary
diff --git a/flake.nix b/flake.nix
index bfe75eb9d6..1ebb1c31c4 100644
--- a/flake.nix
+++ b/flake.nix
@@ -238,7 +238,6 @@ nodejs.python
components = [
"packages/ckeditor5"
- "packages/ckeditor5-math"
"packages/codemirror"
"packages/commons"
"packages/express-partial-content"
diff --git a/package.json b/package.json
index 83c75f46d1..3da8cc9b54 100644
--- a/package.json
+++ b/package.json
@@ -40,8 +40,8 @@
"docs:preview": "pnpm http-server site -p 9000",
"edit-docs:edit-demo": "pnpm run --filter edit-docs edit-demo",
"test:all": "pnpm test:parallel && pnpm test:sequential",
- "test:parallel": "pnpm --filter=!server --filter=!ckeditor5-math --filter=!ckeditor5 --parallel test",
- "test:sequential": "pnpm --filter=server --filter=ckeditor5-math --filter=ckeditor5 --sequential test",
+ "test:parallel": "pnpm --filter=!server --filter=!ckeditor5 --parallel test",
+ "test:sequential": "pnpm --filter=server --filter=ckeditor5 --sequential test",
"typecheck": "tsx scripts/filter-tsc-output.mts",
"dev:format-check": "eslint -c eslint.format.config.mjs .",
"dev:format-fix": "eslint -c eslint.format.config.mjs . --fix",
diff --git a/packages/ckeditor5-math/.editorconfig b/packages/ckeditor5-math/.editorconfig
deleted file mode 100644
index 37ea8ff914..0000000000
--- a/packages/ckeditor5-math/.editorconfig
+++ /dev/null
@@ -1,19 +0,0 @@
-# Configurations to normalize the IDE behavior.
-# http://editorconfig.org/
-
-root = true
-
-[*]
-indent_style = tab
-tab_width = 4
-charset = utf-8
-end_of_line = lf
-trim_trailing_whitespace = true
-insert_final_newline = true
-
-[*.{js,jsx,ts}]
-quote_type = single
-
-[package.json]
-indent_style = space
-tab_width = 2
diff --git a/packages/ckeditor5-math/.gitattributes b/packages/ckeditor5-math/.gitattributes
deleted file mode 100644
index 41be6fafe7..0000000000
--- a/packages/ckeditor5-math/.gitattributes
+++ /dev/null
@@ -1,19 +0,0 @@
-* text=auto
-
-*.htaccess eol=lf
-*.cgi eol=lf
-*.sh eol=lf
-
-*.css text
-*.htm text
-*.html text
-*.js text
-*.ts text
-*.json text
-*.php text
-*.txt text
-*.md text
-
-*.png -text
-*.gif -text
-*.jpg -text
diff --git a/packages/ckeditor5-math/.gitignore b/packages/ckeditor5-math/.gitignore
deleted file mode 100644
index 437dda1d0a..0000000000
--- a/packages/ckeditor5-math/.gitignore
+++ /dev/null
@@ -1,10 +0,0 @@
-build/
-coverage/
-dist/
-node_modules/
-tmp/
-sample/ckeditor.dist.js
-
-# Ignore compiled TypeScript files.
-src/**/*.js
-src/**/*.d.ts
diff --git a/packages/ckeditor5-math/.stylelintrc b/packages/ckeditor5-math/.stylelintrc
deleted file mode 100644
index 1d86a41f98..0000000000
--- a/packages/ckeditor5-math/.stylelintrc
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "extends": "stylelint-config-ckeditor5"
-}
diff --git a/packages/ckeditor5-math/CHANGELOG.md b/packages/ckeditor5-math/CHANGELOG.md
deleted file mode 100644
index 67df8ee109..0000000000
--- a/packages/ckeditor5-math/CHANGELOG.md
+++ /dev/null
@@ -1,556 +0,0 @@
-# Changelog
-
-## Current
-
-- Add latest changes here
-
-## [43.2.0](https://github.com/isaul32/ckeditor5-math/compare/v43.1.2...v43.2.0) (2024-10-14)
-
-- Update dependencies for CKEditor 43.2.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v43.2.0/CHANGELOG.md))
- ([#153](https://github.com/isaul32/ckeditor5-math/pull/153))
-
- **Note** This does **not** yet support the [new installation method](https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/migration-to-new-installation-methods.html) for [custom plugins](https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/custom-plugins.html). That will come in a future release.
-
-## [43.1.2](https://github.com/isaul32/ckeditor5-math/compare/v43.1.1...v43.1.2) (2024-09-26)
-
-- Downgrade ckeditor5-package-tools from 2 to 1. Fixes test for now.
-
-## [43.1.1](https://github.com/isaul32/ckeditor5-math/compare/v41.4.2...v43.1.1) (2024-09-26)
-
-- Update dependencies for CKEditor 43.1.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v43.1.1/CHANGELOG.md))
- ([#149](https://github.com/isaul32/ckeditor5-math/pull/149))
-
- **Note** This does **not** yet support the [new installation method](https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/migration-to-new-installation-methods.html) for [custom plugins](https://ckeditor.com/docs/ckeditor5/latest/updating/nim-migration/custom-plugins.html). That will come in a future release.
-
-- Move tests to TypeScript, kudos @fedemp
- ([#135](https://github.com/isaul32/ckeditor5-math/pull/135))
-
-## [41.4.2](https://github.com/isaul32/ckeditor5-math/compare/v41.3.1...v41.4.2) (2024-05-18)
-
-- Update dependencies for CKEditor 41.4.2 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v41.4.2/CHANGELOG.md))
- ([#141](https://github.com/isaul32/ckeditor5-math/pull/141))
-
-## [41.3.1](https://github.com/isaul32/ckeditor5-math/compare/v41.3.0...v41.3.1) (2024-04-16)
-
-- Update dependencies for CKEditor 41.3.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v41.3.1/CHANGELOG.md))
- ([#137](https://github.com/isaul32/ckeditor5-math/pull/137))
-
-## [41.3.0](https://github.com/isaul32/ckeditor5-math/compare/v41.2.3...v41.3.0) (2024-04-12)
-
-- Update dependencies for CKEditor 41.3.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v41.3.0/CHANGELOG.md))
- (#136)
-
-## [41.2.3](https://github.com/isaul32/ckeditor5-math/compare/v41.2.2...v41.2.3) (2024-03-22)
-
-- Update dependencies for CKEditor 41.2.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v41.2.1/CHANGELOG.md))
- (#134)
-
-## [41.2.2](https://github.com/isaul32/ckeditor5-math/compare/v41.2.1...v41.2.2) (2024-03-17)
-
-- README updates ([#133](https://github.com/isaul32/ckeditor5-math/pull/133)):
-
- - Note plugin supports DLL-based builds and is in TypeScript.
- - Remove old TypeScript workaround sections.
-
-- Chore: Typo fixes ([#133](https://github.com/isaul32/ckeditor5-math/pull/133))
-
-## [41.2.1](https://github.com/isaul32/ckeditor5-math/compare/v41.2.0...v41.2.1) (2024-03-17)
-
-- Rewritten in TypeScript, credit @fedemp
- ([#130](https://github.com/isaul32/ckeditor5-math/pull/130)).
-
-## [41.2.0](https://github.com/isaul32/ckeditor5-math/compare/v41.1.0...v41.2.0) (2024-03-08)
-
-- Update dependencies for CKEditor 41.2.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v41.2.0/CHANGELOG.md))
- (#129)
-
-## [41.1.0](https://github.com/isaul32/ckeditor5-math/compare/v41.0.0...v41.1.0) (2024-02-13)
-
-- Update dependencies for CKEditor 41.1.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v41.1.0/CHANGELOG.md))
- (#124)
-
-## [41.0.0](https://github.com/isaul32/ckeditor5-math/compare/v40.2.0...v41.0.0) (2024-01-27)
-
-- Update dependencies for CKEditor 41.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v41.0.0/CHANGELOG.md))
- (#122)
-- ui(CSS): Update `--ck-z-modal` to `--ck-z-panel` for CKEditor5 v41.0.0 (#122)
-
-## [40.2.0](https://github.com/isaul32/ckeditor5-math/compare/v40.1.0...v40.2.0) (2023-12-12)
-
-- Update dependencies for CKEditor 40.2.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v40.2.0/CHANGELOG.md))
- (#121)
-
-## [40.1.0](https://github.com/isaul32/ckeditor5-math/compare/v40.0.0...v40.1.0) (2023-11-17)
-
-- Update dependencies for CKEditor 40.1.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v40.1.0/CHANGELOG.md))
- (#120)
-
-## [40.0.0](https://github.com/isaul32/ckeditor5-math/compare/v39.0.2...v40.0.0) (2023-10-13)
-
-- Update dependencies for CKEditor 40.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v40.0.0/CHANGELOG.md))
- (#116)
-- Bump minimum Node.js version to 18+ per CKEditor 40 requirements (#116)
-
-## [39.0.2](https://github.com/isaul32/ckeditor5-math/compare/v39.0.1...v39.0.2) (2023-09-06)
-
-- Update dependencies for CKEditor 39.0.2 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v39.0.2/CHANGELOG.md))
- (#115)
-- Update lint packages (#115):
-
- - eslint-config-ckeditor5: ^5.0.1 → ^5.1.1
- - stylelint-config-ckeditor5: >=4.1.1 → >=5.1.1
-
-## [39.0.1](https://github.com/isaul32/ckeditor5-math/compare/v39.0.0...v39.0.1) (2023-08-10)
-
-- Update dependencies for CKEditor 39.0.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v39.0.1/CHANGELOG.md))
- (#113)
-
-## [39.0.0](https://github.com/isaul32/ckeditor5-math/compare/v38.1.1...v39.0.0) (2023-08-10)
-
-- Update dependencies for CKEditor 39.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v39.0.0/CHANGELOG.md))
- (#112)
-
-## [38.1.1](https://github.com/isaul32/ckeditor5-math/compare/v38.1.0...v38.1.1) (2023-07-26)
-
-- Update dependencies for CKEditor 38.1.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v38.1.1/CHANGELOG.md))
- (#109)
-
-## [38.1.0](https://github.com/isaul32/ckeditor5-math/compare/v38.0.1...v38.1.0) (2023-07-26)
-
-- Update dependencies for CKEditor 38.1.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v38.1.0/CHANGELOG.md))
- (#108)
-
-- Version updates (#106, #108)
-
- - ckeditor5-package-tools: v1.0.0-beta.10 -> v1.1.0
- ([release
- notes](https://github.com/ckeditor/ckeditor5-package-generator/blob/v1.1.0/CHANGELOG.md))
- - eslint-config-ckeditor5: >=4.1.1 -> ^5.0.1
- ([release
- notes](https://github.com/ckeditor/ckeditor5-linters-config/blob/v5.1.0/CHANGELOG.md))
-
-- README: Note typing workaround for TypeScript builds (#105)
-
- 1. Create a `d.ts` declaration file, e.g. `typings/ckeditor5-math.d.ts`
-
- ```typescript
- declare module '@isaul32/ckeditor5-math';
- declare module '@isaul32/ckeditor5-math/src/math';
- declare module '@isaul32/ckeditor5-math/src/autoformatmath';
- ```
-
- 2. In your [`tsconfig.json`](https://www.typescriptlang.org/tsconfig)'s
- root-level [`include`](https://www.typescriptlang.org/tsconfig#include)
- option, make sure your declaration file is covered, e.g.
-
- ```json
- {
- "extends": "ckeditor5/tsconfig.json",
- "include": [
- "src",
- "typings",
- "../../typings"
- ]
- }
- ```
-
-## [38.0.1](https://github.com/isaul32/ckeditor5-math/compare/v38.0.0...v38.0.1) (2023-06-20)
-
-- Update dependencies for CKEditor 38.0.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v38.0.1/CHANGELOG.md))
-
-## [38.0.0](https://github.com/isaul32/ckeditor5-math/compare/v37.1.0...v38.0.0) (2023-06-20)
-
-- Update dependencies for CKEditor 38.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v38.0.0/CHANGELOG.md))
-
-## [37.1.0](https://github.com/isaul32/ckeditor5-math/compare/v37.0.2...v37.1.0) (2023-04-19)
-
-- Update dependencies for CKEditor 37.1.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v37.1.0/CHANGELOG.md))
-
-## [37.0.2](https://github.com/isaul32/ckeditor5-math/compare/v37.0.1...v37.0.2) (2023-04-05)
-
-- Fix loading of ckeditor5-math when no config object is declared in build
- (#98)
-
-## [37.0.1](https://github.com/isaul32/ckeditor5-math/compare/v37.0.0...v36.0.1) (2023-04-05)
-
-- Update dependencies for CKEditor 37.0.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v37.0.1/CHANGELOG.md))
-
-## [37.0.0](https://github.com/isaul32/ckeditor5-math/compare/v36.0.6...v37.0.0) (2023-04-05)
-
-- Update dependencies for CKEditor 37.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v37.0.0/CHANGELOG.md))
-- Bump minimum node version to v16 (per CKEditor v37's requirements)
-- Add a .nvmrc for nvm users
-
-## [36.0.7](https://github.com/isaul32/ckeditor5-math/compare/v36.0.6...v36.0.7) (2023-04-05)
-
-- Fix loading of ckeditor5-math when no config object is declared in build
- (#97)
-
-## [36.0.6](https://github.com/isaul32/ckeditor5-math/compare/v36.0.5...v36.0.6) (2023-04-05)
-
-- :arrow_up: CKEditor package tools: 1.0.0-beta.8 -> beta.10
-
- See also: https://github.com/ckeditor/ckeditor5-package-generator/blob/v1.0.0-beta.10/CHANGELOG.md
-
-## [36.0.5](https://github.com/isaul32/ckeditor5-math/compare/v36.0.4...v36.0.5) (2023-04-03)
-
-- Update docs for new package name (#91)
-
- - Old: ckeditor5-math
- - New: @isaul32/ckeditor5-math
-
-- New feature: Make className of span element configurable (#82, thank you
- @DanielKulbe)
-
-## [36.0.4](https://github.com/isaul32/ckeditor5-math/compare/v36.0.3...v36.0.4) (2023-03-13)
-
-- New package name
-
- - Old: ckeditor5-math
- - New: @isaul32/ckeditor5-math
-
-## [36.0.3](https://github.com/isaul32/ckeditor5-math/compare/v36.0.2...v36.0.3) (2023-03-13)
-
-- Move to a DLL compatible plugin (#83)
-
- Credit: @DanielKulbe
-
-## [36.0.2](https://github.com/isaul32/ckeditor5-math/compare/v36.0.1...v36.0.2) (2023-02-14)
-
-- Fix `previewClassName` (#86)
-
-## [36.0.1](https://github.com/isaul32/ckeditor5-math/compare/v36.0.0...v36.0.1) (2023-01-26)
-
-- Update dependencies for CKEditor 36.0.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v36.0.1/CHANGELOG.md))
-
-## [36.0.0](https://github.com/isaul32/ckeditor5-math/compare/v35.4.0...v36.0.0) (2023-01-26)
-
-- Update dependencies for CKEditor 36.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v36.0.0/CHANGELOG.md))
-
-## [35.4.0](https://github.com/isaul32/ckeditor5-math/compare/v35.3.2...v35.4.0) (2022-12-13)
-
-- Update dependencies for CKEditor 35.4.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v35.4.0/CHANGELOG.md))
-
-## [35.3.2](https://github.com/isaul32/ckeditor5-math/compare/v35.3.1...v35.3.2) (2022-11-23)
-
-- Update dependencies for CKEditor 35.3.2 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v35.3.2/CHANGELOG.md))
-
-## [35.3.1](https://github.com/isaul32/ckeditor5-math/compare/v35.3.0...v35.3.1) (2022-11-15)
-
-- Update dependencies for CKEditor 35.3.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v35.3.1/CHANGELOG.md))
-
-## [35.3.0](https://github.com/isaul32/ckeditor5-math/compare/v35.2.1...v35.3.0) (2022-11-03)
-
-- Update dependencies for CKEditor 35.3.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v35.3.0/CHANGELOG.md))
-
-## [35.2.1](https://github.com/isaul32/ckeditor5-math/compare/v35.2.0...v35.2.1) (2022-10-13)
-
-- Update dependencies for CKEditor 35.2.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v35.2.1/CHANGELOG.md))
-
-## [35.2.0](https://github.com/isaul32/ckeditor5-math/compare/v35.1.0...v35.2.0) (2022-10-13)
-
-- Update dependencies for CKEditor 35.2.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v35.2.0/CHANGELOG.md))
-
-## [35.1.0](https://github.com/isaul32/ckeditor5-math/compare/v35.0.1...v35.1.0) (2022-09-28)
-
-- Update dependencies for CKEditor 35.1.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v35.1.0/CHANGELOG.md))
-
-## [35.0.1](https://github.com/isaul32/ckeditor5-math/compare/v35.0.0...v35.0.1) (2022-09-28)
-
-- Update dependencies for CKEditor 35.0.1 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v35.0.1/CHANGELOG.md))
-
-## [35.0.0](https://github.com/isaul32/ckeditor5-math/compare/v34.2.0...v35.0.0) (2022-09-28)
-
-- Update dependencies for CKEditor 35.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v35.0.0/CHANGELOG.md))
-
-## [34.2.0](https://github.com/isaul32/ckeditor5-math/compare/v34.1.1...v34.2.0) (2022-09-28)
-
-- Update dependencies for CKEditor 34.2.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v34.2.0/CHANGELOG.md))
-
-## [34.1.1](https://github.com/isaul32/ckeditor5-math/compare/v34.1.0...v34.1.1) (2022-08-03)
-
-- New configuration setting, `katexRenderOptions` (optional) - for KaTeX engines. Accepts object of `katex.render()` / `katex.renderToString()` [options](https://katex.org/docs/options.html):
-
- ```js
- InlineEditor.defaultConfig = {
- // ...
- math: {
- engine: 'katex'
- katexRenderOptions: {
- macros: {
- "\\neq": "\\mathrel{\\char`≠}",
- },
- },
- }
- }
- ```
-
- via PR [#64](https://github.com/isaul32/ckeditor5-math/pull/64) by [Tony
- Narlock](https://www.git-pull.com).
-
-## [34.1.0](https://github.com/isaul32/ckeditor5-math/compare/v34.0.0...v34.1.0) (2022-06-21)
-
-- Update dependencies for CKEditor 34.1.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v34.1.0/CHANGELOG.md))
-- Changelog:
- - Begin adding dates to releases
- - Remove _(current)_, which was being applied to old releases incorrectly up to last release
-
-## [34.0.0](https://github.com/isaul32/ckeditor5-math/compare/v33.0.0...v34.0.0) (2022-05-12)
-
-- Update dependencies for CKEditor 34.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v34.0.0/CHANGELOG.md))
-
-- Begin keeping a yarn lockfile. This will make it easier to track changes
- aren't due to sub-dependencies shifting across time and development
- conditions.
-
-## [33.0.0](https://github.com/isaul32/ckeditor5-math/compare/v32.0.0...v33.0.0)
-
-- Update dependencies for CKEditor 33.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v33.0.0/CHANGELOG.md))
-
-## [32.0.0](https://github.com/isaul32/ckeditor5-math/compare/v31.1.0...v32.0.0)
-
-- Update dependencies for CKEditor 32.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v32.0.0/CHANGELOG.md))
-- Update webpack, postcss-loader, mini-css-extract-plugin, minimum node version (12 to 14)
- per above.
-
-## [31.1.0](https://github.com/isaul32/ckeditor5-math/compare/v31.0.0...v31.1.0)
-
-- Update dependencies for CKEditor 31.1.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v31.1.0/CHANGELOG.md))
-
-## [31.0.0](https://github.com/isaul32/ckeditor5-math/compare/v30.0.0...v31.0.0)
-
-- Update dependencies for CKEditor 31.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v31.0.0/CHANGELOG.md))
-
-## [30.0.0](https://github.com/isaul32/ckeditor5-math/compare/v29.2.0...v30.0.0)
-
-- Update dependencies for CKEditor 30.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v30.0.0/CHANGELOG.md))
-
-## [29.2.0](https://github.com/isaul32/ckeditor5-math/compare/v29.1.0...v29.2.0)
-
-- Update dependencies for CKEditor 29.2.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v29.2.0/CHANGELOG.md))
-- Fix `yarn start`'s missing classic editor dependency
-
-## [29.1.0](https://github.com/isaul32/ckeditor5-math/compare/v29.0.0...v29.1.0)
-
-- Update dependencies for CKEditor 29.1.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v29.1.0/CHANGELOG.md))
-
-## [29.0.0](https://github.com/isaul32/ckeditor5-math/compare/v28.0.0...v29.0.0)
-
-- Update dependencies for CKEditor 29.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/blob/v29.0.0/CHANGELOG.md))
-
-## [28.0.0](https://github.com/isaul32/ckeditor5-math/compare/v27.1.4...v28.0.0)
-
-- Update dependencies for CKEditor 28.0.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/releases/tag/v28.0.0))
-
-## [27.1.4](https://github.com/isaul32/ckeditor5-math/compare/v27.1.3...v27.1.4)
-
-- #45: docs(README,CHANGELOG): Format with prettier 2.3.0
-- #42: use `SwitchButton` to toggle "display mode". Thanks you @Jules-Bertholet!
-
-## [27.1.3](https://github.com/isaul32/ckeditor5-math/compare/v27.1.2...27.1.3) (2021-05-16)
-
-- #41: Prevent inserting empty equations, thank you @Jules-Bertholet.
-
-## [27.1.2](https://github.com/isaul32/ckeditor5-math/compare/v27.1.1...v27.1.2) (2021-03-29)
-
-- #38: You can now boot into a development instance with `yarn start` (supports
- live reload)
-- #40 (fixed #39): Support for upcasting Quill style tags
-
-## [27.1.1](https://github.com/isaul32/ckeditor5-math/compare/v27.1.0...v27.1.1) (2021-03-29)
-
-- Update dependencies for CKEditor 27.1.0 ([Release
- notes](https://github.com/ckeditor/ckeditor5/releases/tag/v27.1.0))
-
-## [27.1.0](https://github.com/isaul32/ckeditor5-math/compare/v27.0.1...v27.1.0) (2021-03-29)
-
-- #33: New optional config variables: `previewClassName` and `popupClassName` as an array
- of classes, this makes it easier to style the preview:
-
- ```javascript
- {
- "math": {
- "popupClassName": ["myeditor"],
- "previewClassName": ["myeditor"]
- }
- }
- ```
-
- This assures the preview appended to `document.body` and the popup both are
- accessible via `.myeditor`.
-
-## [27.0.1](https://github.com/isaul32/ckeditor5-math/compare/v27.0.0...v27.0.1) (2021-03-29)
-
-- Typo fix from #32.
-
-## [27.0.0](https://github.com/isaul32/ckeditor5-math/compare/v26.0.0...v27.0.0) (2021-03-29)
-
-- Update dependencies.
-
-## [26.0.0](https://github.com/isaul32/ckeditor5-math/compare/v25.0.0...v26.0.0) (2021-03-04)
-
-- Update dependencies.
-
-## [25.0.0](https://github.com/isaul32/ckeditor5-math/compare/v24.0.1...v25.0.0) (2021-03-02)
-
-- Update dependencies.
-
-## [24.0.1](https://github.com/isaul32/ckeditor5-math/compare/24.0.0...v24.0.1) (2021-02-28)
-
-- Fix balloon view position.
-
-## [24.0.0](https://github.com/isaul32/ckeditor5-math/compare/v23.3.0...24.0.0) (2020-12-12)
-
-- Update dependencies.
-
-## [23.3.0](https://github.com/isaul32/ckeditor5-math/compare/23.2.2...v23.3.0) (2020-11-07)
-
-- Add autoformat support. ([3354872](https://github.com/isaul32/ckeditor5-math/commit/3354872))
-
-## [23.2.2](https://github.com/isaul32/ckeditor5-math/compare/v23.2.1...23.2.2) (2020-11-03)
-
-- Fix placeholder handling. ([dc288ea](https://github.com/isaul32/ckeditor5-math/commit/dc288ea))
-- Fix selection after entering inline expression. ([2fea2e2](https://github.com/isaul32/ckeditor5-math/commit/2fea2e2))
-
-## [23.2.1](https://github.com/isaul32/ckeditor5-math/compare/v23.2.0...v23.2.1) (2020-10-18)
-
-- Fix math editing button for balloon editor. ([3629401](https://github.com/isaul32/ckeditor5-math/commit/3629401))
-
-## [23.2.0](https://github.com/isaul32/ckeditor5-math/compare/v23.1.0...v23.2.0) (2020-10-18)
-
-- Add math editing button for balloon editor. ([aa0392c](https://github.com/isaul32/ckeditor5-math/commit/aa0392c))
-
-## [23.1.0](https://github.com/isaul32/ckeditor5-math/compare/v23.0.0...v23.1.0) (2020-10-11)
-
-- Add typesetting auto load feature. ([a665b64](https://github.com/isaul32/ckeditor5-math/commit/a665b64))
-
-## [23.0.0](https://github.com/isaul32/ckeditor5-math/compare/v22.0.0...v23.0.0) (2020-10-02)
-
-- Update dependencies.
-
-## [22.0.0](https://github.com/isaul32/ckeditor5-math/compare/v21.0.0...v22.0.0) (2020-08-29)
-
-- Separate schema to display and inline.
-
-### Bug fixes
-
-- Fix writer. ([7d0cd01](https://github.com/isaul32/ckeditor5-math/commit/7d0cd01))
-
-### Other changes
-
-- Update dependencies.
-
-## [21.0.0](https://github.com/isaul32/ckeditor5-math/compare/v20.0.0...v21.0.0) (2020-08-03)
-
-- Update dependencies.
-
-## [20.0.0](https://github.com/isaul32/ckeditor5-math/compare/v19.0.0...v20.0.0) (2020-07-13)
-
-- Update dependencies.
-
-## [19.0.0](https://github.com/isaul32/ckeditor5-math/compare/v18.0.1...v19.0.0) (2020-05-12)
-
-- Update dependencies.
-
-## [18.0.1](https://github.com/isaul32/ckeditor5-math/compare/v18.0.0...v18.0.1) (2020-04-05)
-
-### Bug fixes
-
-- Fix spacebar before formula bug in Firefox. [isaul32/ckeditor5-math#2](https://github.com/isaul32/ckeditor5-math/issues/2). ([9d15010](https://github.com/isaul32/ckeditor5-math/commit/9d15010))
-
-## [18.0.0](https://github.com/isaul32/ckeditor5-math/compare/v17.0.1...v18.0.0) (2020-03-30)
-
-- Update dependencies.
-
-## [17.0.1](https://github.com/isaul32/ckeditor5-math/compare/v17.0.0...v17.0.1) (2020-02-27)
-
-### Bug fixes
-
-- Fix missing dependencies.
-
-## [17.0.0](https://github.com/isaul32/ckeditor5-math/compare/v1.0.3...v17.0.0) (2020-02-27)
-
-### Bug fixes
-
-- Fix dependencies resolving problem. Closes [isaul32/ckeditor5-math#1](https://github.com/isaul32/ckeditor5-math/issues/1). ([7d40a2c](https://github.com/isaul32/ckeditor5-math/commit/7d40a2c))
-
-## [1.0.3](https://github.com/isaul32/ckeditor5-math/compare/v1.0.2...v1.0.3) (2019-10-11)
-
-### Bug fixes
-
-- Fix preview flickering effect. ([70fefa8](https://github.com/isaul32/ckeditor5-math/commit/70fefa8))
-
-- Fix disabled eslint lines. ([1f96286](https://github.com/isaul32/ckeditor5-math/commit/1f96286))
-
-### Other changes
-
-- Update some tests.
-
-- Update readme.
-
-## [1.0.2](https://github.com/isaul32/ckeditor5-math/compare/v1.0.1...v1.0.2) (2019-10-07)
-
-### Other changes
-
-- Update readme.
-
-- Add unique identifier for math preview. ([8b6804c](https://github.com/isaul32/ckeditor5-math/commit/98815fc))
-
-## [1.0.1](https://github.com/isaul32/ckeditor5-math/compare/v1.0.0...v1.0.1) (2019-10-04)
-
-### Bug fixes
-
-- Fix preview rendering bug. ([070f84e](https://github.com/isaul32/ckeditor5-math/commit/070f84e))
-
-### Other changes
-
-- Remove paste from office dependency. ([8b6804c](https://github.com/isaul32/ckeditor5-math/commit/8b6804c))
-
-## [1.0.0](https://github.com/isaul32/ckeditor5-math/compare/v1.0.0...v1.0.0) (2019-10-03)
-
-Initial release.
diff --git a/packages/ckeditor5-math/README.md b/packages/ckeditor5-math/README.md
deleted file mode 100644
index 1e682bf825..0000000000
--- a/packages/ckeditor5-math/README.md
+++ /dev/null
@@ -1,145 +0,0 @@
-# CKEditor 5 mathematical feature · [![GitHub license](https://img.shields.io/badge/license-ISC-blue.svg)](https://github.com/isaul32/ckeditor5-math/blob/master/LICENSE) [![npm version](https://img.shields.io/npm/v/@isaul32/ckeditor5-math.svg?style=flat)](https://www.npmjs.com/package/@isaul32/ckeditor5-math)
-
-ckeditor5-math is a TeX-based mathematical plugin for CKEditor 5. You can use it to insert, edit, and view mathematical equations and formulas. This plugin supports [MathJax], [KaTeX] and custom typesetting engines.
-
-[mathjax]: https://www.mathjax.org/
-[katex]: https://katex.org/
-
-## Table of contents
-
-- [CKEditor 5 mathematical feature · ](#ckeditor-5-mathematical-feature---)
- - [Table of contents](#table-of-contents)
- - [Developing the package](#developing-the-package)
- - [Available scripts](#available-scripts)
- - [`start`](#start)
- - [`test`](#test)
- - [`lint`](#lint)
- - [`stylelint`](#stylelint)
- - [`build:dist`](#builddist)
- - [`translations:synchronize`](#translationssynchronize)
- - [`translations:validate`](#translationsvalidate)
- - [`ts:build` and `ts:clear`](#tsbuild-and-tsclear)
- - [License](#license)
-
-## Developing the package
-
-To read about the CKEditor 5 Framework, visit the [CKEditor 5 Framework documentation](https://ckeditor.com/docs/ckeditor5/latest/framework/index.html).
-
-## Available scripts
-
-NPM scripts are a convenient way to provide commands in a project. They are defined in the `package.json` file and shared with people contributing to the project. It ensures developers use the same command with the same options (flags).
-
-All the scripts can be executed by running `npm run <script>`. Pre and post commands with matching names will be run for those as well.
-
-The following scripts are available in the package.
-
-### `start`
-
-Starts an HTTP server with the live-reload mechanism that allows previewing and testing of plugins available in the package.
-
-When the server starts, the default browser will open the developer sample. This can be disabled by passing the `--no-open` option to that command.
-
-You can also define the language that will translate the created editor by specifying the `--language [LANG]` option. It defaults to `'en'`.
-
-Examples:
-
-```bash
-# Starts the server and open the browser.
-npm run start
-
-# Disable auto-opening the browser.
-npm run start -- --no-open
-
-# Create the editor with the interface in German.
-npm run start -- --language=de
-```
-
-### `test`
-
-Allows executing unit tests for the package specified in the `tests/` directory. To check the code coverage, add the `--coverage` modifier. See other [CLI flags](https://vitest.dev/guide/cli.html) in Vitest.
-
-Examples:
-
-```bash
-# Execute tests.
-npm run test
-
-# Generate code coverage report after each change in the sources.
-npm run test -- --coverage
-```
-
-### `lint`
-
-Runs ESLint, which analyzes the code (all `*.ts` files) to quickly find problems.
-
-Examples:
-
-```bash
-# Execute eslint.
-npm run lint
-```
-
-### `stylelint`
-
-Similar to the `lint` task, stylelint analyzes the CSS code (`*.css` files in the `theme/` directory) in the package.
-
-Examples:
-
-```bash
-# Execute stylelint.
-npm run stylelint
-```
-
-### `build:dist`
-
-Creates npm and browser builds of your plugin. These builds can be added to the editor by following the [Configuring CKEditor 5 features](https://ckeditor.com/docs/ckeditor5/latest/getting-started/setup/configuration.html) guide.
-
-Examples:
-
-```bash
-# Builds the `npm` and browser files thats are ready to publish.
-npm run build:dist
-```
-
-### `translations:synchronize`
-
-Synchronizes translation messages (arguments of the `t()` function) by performing the following steps:
-
- * Collect all translation messages from the package by finding `t()` calls in source files.
- * Detect if translation context is valid, i.e. whether the provided values do not interfere with the values specified in the `@ckeditor/ckeditor5-core` package.
- * If there are no validation errors, update all translation files (`*.po` files) to be in sync with the context file:
- * unused translation entries are removed,
- * missing translation entries are added with empty string as the message translation,
- * missing translation files are created for languages that do not have own `*.po` file yet.
-
-The task may end with an error if one of the following conditions is met:
-
-* Found the `Unused context` error &ndash; entries specified in the `lang/contexts.json` file are not used in source files. They should be removed.
-* Found the `Duplicated contex` error &ndash; some of the entries are duplicated. Consider removing them from the `lang/contexts.json` file, or rewriting them.
-* Found the `Missing context` error &ndash; entries specified in source files are not described in the `lang/contexts.json` file. They should be added.
-
-Examples:
-
-```bash
-npm run translations:synchronize
-```
-
-### `translations:validate`
-
-Peforms only validation steps as described in [`translations:synchronize`](#translationssynchronize) script, but without modifying any files. It only checks the correctness of the context file against the `t()` function calls.
-
-Examples:
-
-```bash
-npm run translations:validate
-```
-
-### `ts:build` and `ts:clear`
-
-These scripts compile TypeScript and remove the compiled files. They are used in the aforementioned life cycle scripts, and there is no need to call them manually.
-
-## License
-
-The `@triliumnext/ckeditor5-math` package is available under [MIT license](https://opensource.org/licenses/MIT).
-
-However, it is the default license of packages created by the [ckeditor5-package-generator](https://www.npmjs.com/package/ckeditor5-package-generator) package and can be changed.
diff --git a/packages/ckeditor5-math/ckeditor5-metadata.json b/packages/ckeditor5-math/ckeditor5-metadata.json
deleted file mode 100644
index b8f844d9c2..0000000000
--- a/packages/ckeditor5-math/ckeditor5-metadata.json
+++ /dev/null
@@ -1,23 +0,0 @@
-{
- "plugins": [
- {
- "name": "Math",
- "className": "Math",
- "description": "Adds mathematical formulas to the editor.",
- "path": "src/math.js",
- "uiComponents": [
- {
- "name": "math",
- "type": "Button",
- "iconPath": "theme/icons/math.svg"
- }
- ]
- },
- {
- "name": "AutoformatMath",
- "className": "AutoformatMath",
- "description": "Implements autoformatting with mathematical formulas.",
- "path": "src/autoformatmath.js"
- }
- ]
-}
diff --git a/packages/ckeditor5-math/eslint.config.js b/packages/ckeditor5-math/eslint.config.js
deleted file mode 100644
index 8e49f74ea6..0000000000
--- a/packages/ckeditor5-math/eslint.config.js
+++ /dev/null
@@ -1,83 +0,0 @@
-import globals from 'globals';
-import { defineConfig } from 'eslint/config';
-import eslintConfigCKEditor5 from 'eslint-config-ckeditor5';
-import eslintPluginCKEditor5Rules from 'eslint-plugin-ckeditor5-rules';
-
-export default defineConfig( [
- eslintConfigCKEditor5,
- {
- name: 'Ignored files config',
- ignores: [
- // Ignore compiled JavaScript files, as they are generated automatically.
- 'src/**/*.js',
- // Also, do not check typing declarations, too.
- 'src/**/*.d.ts',
- // Ignore the entire `dist/` (the NIM build).
- 'dist/**'
- ]
- },
- {
- name: 'Base config',
- languageOptions: {
- ecmaVersion: 'latest',
- sourceType: 'module'
- },
- linterOptions: {
- reportUnusedInlineConfigs: 'error',
- reportUnusedDisableDirectives: 'error'
- },
- plugins: {
- 'ckeditor5-rules': eslintPluginCKEditor5Rules
- },
- rules: {
- // This rule disallows importing from any path other than the package main entrypoint.
- 'ckeditor5-rules/allow-imports-only-from-main-package-entry-point': 'error',
- // As required by the ECMAScript (ESM) standard, all imports must include a file extension.
- // If the import does not include it, this rule will try to automatically detect the correct file extension.
- 'ckeditor5-rules/require-file-extensions-in-imports': [ 'error', {
- extensions: [ '.ts', '.js', '.json' ]
- } ],
- // This rule ensures that all imports from `@ckeditor/*` packages are done through the main package entry points.
- // This is required for the editor types to work properly and to ease migration to the installation methods
- // introduced in CKEditor 5 version 42.0.0.
- 'ckeditor5-rules/no-legacy-imports': 'error'
- }
- },
- {
- name: 'NodeJS environment config',
- files: [
- './scripts/**/*.{js,mjs,cjs}'
- ],
- languageOptions: {
- globals: {
- ...globals.node
- }
- }
- },
- {
- name: 'Browser environment config',
- files: [
- './sample/**/*.{ts,mts,cts}',
- './src/**/*.{ts,mts,cts}',
- './tests/**/*.{ts,mts,cts}',
- './typings/**/*.d.ts'
- ],
- languageOptions: {
- globals: {
- ...globals.browser
- }
- }
- },
- {
- name: 'Sample and tests config',
- files: [
- 'sample/**/*.{ts,mts,cts}',
- 'tests/**/*.{ts,mts,cts}'
- ],
- rules: {
- // To write complex tests, you may need to import files that are not exported in DLL files by default.
- // Hence, imports CKEditor 5 packages in test files are not checked.
- 'ckeditor5-rules/ckeditor-imports': 'off'
- }
- }
-] );
diff --git a/packages/ckeditor5-math/lang/contexts.json b/packages/ckeditor5-math/lang/contexts.json
deleted file mode 100644
index a8a843e28c..0000000000
--- a/packages/ckeditor5-math/lang/contexts.json
+++ /dev/null
@@ -1,3 +0,0 @@
-{
- "Math": "Content for a tooltip is displayed when a user hovers the CKEditor 5 icon."
-}
diff --git a/packages/ckeditor5-math/package.json b/packages/ckeditor5-math/package.json
deleted file mode 100644
index 5ecc8b9251..0000000000
--- a/packages/ckeditor5-math/package.json
+++ /dev/null
@@ -1,48 +0,0 @@
-{
- "name": "@triliumnext/ckeditor5-math",
- "version": "45.0.0",
- "description": "Math feature for CKEditor 5.",
- "keywords": [
- "ckeditor",
- "ckeditor5",
- "ckeditor 5",
- "ckeditor5-feature",
- "ckeditor5-plugin",
- "ckeditor5-math",
- "katex"
- ],
- "type": "module",
- "main": "src/index.ts",
- "author": "Sauli Anto",
- "license": "ISC",
- "engines": {
- "node": ">=18.0.0",
- "npm": ">=5.7.1"
- },
- "devDependencies": {
- "@ckeditor/ckeditor5-inspector": ">=4.1.0",
- "@vitest/browser": "4.1.10",
- "ckeditor5": "48.3.1",
- "eslint": "10.8.0",
- "eslint-config-ckeditor5": ">=9.1.0",
- "stylelint": "17.14.1",
- "stylelint-config-ckeditor5": ">=9.1.0",
- "typescript": "6.0.3",
- "vite-plugin-svgo": "2.0.0",
- "vitest": "4.1.10",
- "webdriverio": "9.30.0"
- },
- "peerDependencies": {
- "ckeditor5": "48.3.1"
- },
- "scripts": {
- "lint": "eslint \"**/*.{js,ts}\" --quiet",
- "stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css'",
- "test": "vitest",
- "test:debug": "vitest --inspect-brk --no-file-parallelism --browser.headless=false"
- },
- "dependencies": {
- "@ckeditor/ckeditor5-icons": "48.3.1",
- "mathlive": "0.110.0"
- }
-}
diff --git a/packages/ckeditor5-math/sample/ckeditor.ts b/packages/ckeditor5-math/sample/ckeditor.ts
deleted file mode 100644
index f66819549d..0000000000
--- a/packages/ckeditor5-math/sample/ckeditor.ts
+++ /dev/null
@@ -1,113 +0,0 @@
-declare global {
- interface Window {
- editor: ClassicEditor;
- }
-}
-
-import {
- ClassicEditor,
- Autoformat,
- Base64UploadAdapter,
- BlockQuote,
- Bold,
- Code,
- CodeBlock,
- Essentials,
- Heading,
- Image,
- ImageCaption,
- ImageStyle,
- ImageToolbar,
- ImageUpload,
- Indent,
- Italic,
- Link,
- List,
- MediaEmbed,
- Paragraph,
- Table,
- TableToolbar
-} from 'ckeditor5';
-
-import CKEditorInspector from '@ckeditor/ckeditor5-inspector';
-
-import Math from '../src/math.js';
-
-import 'ckeditor5/ckeditor5.css';
-
-ClassicEditor
- .create( document.getElementById( 'editor' )!, {
- licenseKey: 'GPL',
- plugins: [
- Math,
- Essentials,
- Autoformat,
- BlockQuote,
- Bold,
- Heading,
- Image,
- ImageCaption,
- ImageStyle,
- ImageToolbar,
- ImageUpload,
- Indent,
- Italic,
- Link,
- List,
- MediaEmbed,
- Paragraph,
- Table,
- TableToolbar,
- CodeBlock,
- Code,
- Base64UploadAdapter
- ],
- toolbar: [
- 'undo',
- 'redo',
- '|',
- 'math',
- '|',
- 'heading',
- '|',
- 'bold',
- 'italic',
- 'link',
- 'code',
- 'bulletedList',
- 'numberedList',
- '|',
- 'outdent',
- 'indent',
- '|',
- 'uploadImage',
- 'blockQuote',
- 'insertTable',
- 'mediaEmbed',
- 'codeBlock'
- ],
- image: {
- toolbar: [
- 'imageStyle:inline',
- 'imageStyle:block',
- 'imageStyle:side',
- '|',
- 'imageTextAlternative'
- ]
- },
- table: {
- contentToolbar: [
- 'tableColumn',
- 'tableRow',
- 'mergeTableCells'
- ]
- }
- } )
- .then( editor => {
- window.editor = editor;
- CKEditorInspector.attach( editor );
- window.console.log( 'CKEditor 5 is ready.', editor );
- } )
- .catch( err => {
- window.console.error( err.stack );
- } );
diff --git a/packages/ckeditor5-math/sample/dll.html b/packages/ckeditor5-math/sample/dll.html
deleted file mode 100644
index 9f3d963341..0000000000
--- a/packages/ckeditor5-math/sample/dll.html
+++ /dev/null
@@ -1,172 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-<head>
- <link rel="icon" type="image/png" href="https://ckeditor.com/docs/ckeditor5/latest/assets/img/favicons/32x32.png" sizes="32x32">
- <meta charset="utf-8">
- <title>CKEditor 5 – DLL Sample</title>
- <style>
- body {
- max-width: 800px;
- margin: 20px auto;
- }
- </style>
-</head>
-<body>
-
-<h1>CKEditor 5 – DLL Sample</h1>
-
-<div id="editor">
- <h2>Production sample</h2>
- <p>
- This is a demo of the <a href="https://ckeditor.com/docs/ckeditor5/latest/builds/guides/overview.html#classic-editor">classic editor
- build</a>, initialized using the <a href="https://ckeditor.com/docs/ckeditor5/latest/builds/guides/development/dll-builds.html">DLL builds</a>.
- </p>
- <p>
- Your plugin (Math) generated by the tool is already loaded into the editor. By default, it has an example button that adds some text to the editor. Whenever you change the plugin's name or toolbar items, make sure to update the editor configuration in the <code>sample/dll.html</code> file.
- </p>
-
- <h3>Uncaught TypeError</h3>
- <p>If the editor is not initialized correctly and the browser console displays an error such as the following:</p>
- <pre><code>Uncaught TypeError: Cannot read properties of undefined (reading 'Math') at dll.html:85</code></pre>
- <p>it means that the DLL build of the <code>@triliumnext/ckeditor5-math</code> package has not been created.</p>
- <p>Please call the <code>npm run dll:build</code> command in the CLI, and after it finishes, refresh the page.</p>
-
- <h3>Anatomy of the DLL build</h3>
- <p>The source of the DLL build is located in the <code>src/index.ts</code> file. It may export as many things as the package offers.</p>
-
- <h4>Maintaining the sample</h4>
- <p>Whenever you change objects exported by the DLL build, please review the content of the sample. Things to keep in mind:</p>
- <ul>
- <li>Review the list of loaded plugins in the configuration.</li>
- <li>Review names of items registered in toolbars.</li>
- </ul>
-
- <h3>The goal</h3>
- <p>The primary purpose of the sample is to verify whether the plugins in the package will work together with CKEditor 5 created with the DLL approach.</p>
-
- <h3>Publishing the package</h3>
- <p>
- While releasing TypeScript package on npm, few things have to be taken care of:
- </p>
- <ul>
- <li>Building DLL</li>
- <li>Building TypeScript</li>
- <li>Changing the <code>main</code> filed in <code>package.json</code> to <code>.js</code> extension</li>
- </ul>
- <p>
- Likewise, after the release, there are few steps:
- </p>
- <ul>
- <li>Deleting compiled TypeScript files (they are generated in the <code>src</code> directory, and create needless clutter)</li>
- <li>Changing the <code>main</code> filed in <code>package.json</code> back to <code>.ts</code> extension</li>
- </ul>
- <p>
- When calling <code>npm publish</code>, those steps are handled automatically by predefined <code>prepublishOnly</code> and <code>postpublish</code> scripts. To learn more, see <a href="https://docs.npmjs.com/cli/v7/using-npm/scripts#pre--post-scripts">NPM docs</a>.
- </p>
-
- <h3>Reporting issues</h3>
- <p>If you found a problem with CKEditor 5 or the package generator, please, report an issue:</p>
- <ul>
- <li><a href="https://github.com/ckeditor/ckeditor5/issues/new/choose">CKEditor 5</a></li>
- <li><a href="https://github.com/ckeditor/create-ckeditor5-plugin/issues/new">The package generator</a></li>
- </ul>
-</div>
-
-<!-- DLL builds are served from the `node_modules/` directory -->
-<script src="../node_modules/ckeditor5/build/ckeditor5-dll.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-editor-classic/build/editor-classic.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-code-block/build/code-block.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-essentials/build/essentials.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-basic-styles/build/basic-styles.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-heading/build/heading.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-autoformat/build/autoformat.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-block-quote/build/block-quote.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-image/build/image.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-link/build/link.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-indent/build/indent.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-media-embed/build/media-embed.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-list/build/list.js"></script>
-<script src="../node_modules/@ckeditor/ckeditor5-table/build/table.js"></script>
-
-<!-- The "@triliumnext/ckeditor5-math" package DLL build is served from the `build/` directory -->
-<script src="../build/math.js"></script>
-
-<script>
- console.log( 'Objects exported by the DLL build:', CKEditor5[ 'math' ] );
-
- CKEditor5.editorClassic.ClassicEditor
- .create( document.querySelector( '#editor' ), {
- plugins: [
- CKEditor5[ 'math' ].Math,
- CKEditor5.essentials.Essentials,
- CKEditor5.autoformat.Autoformat,
- CKEditor5.blockQuote.BlockQuote,
- CKEditor5.basicStyles.Bold,
- CKEditor5.heading.Heading,
- CKEditor5.image.Image,
- CKEditor5.image.ImageCaption,
- CKEditor5.image.ImageStyle,
- CKEditor5.image.ImageToolbar,
- CKEditor5.image.ImageUpload,
- CKEditor5.indent.Indent,
- CKEditor5.basicStyles.Italic,
- CKEditor5.link.Link,
- CKEditor5.list.List,
- CKEditor5.mediaEmbed.MediaEmbed,
- CKEditor5.paragraph.Paragraph,
- CKEditor5.table.Table,
- CKEditor5.table.TableToolbar,
- CKEditor5.codeBlock.CodeBlock,
- CKEditor5.basicStyles.Code,
- CKEditor5.upload.Base64UploadAdapter
- ],
- toolbar: [
- 'math',
- '|',
- 'heading',
- '|',
- 'bold',
- 'italic',
- 'link',
- 'code',
- 'bulletedList',
- 'numberedList',
- '|',
- 'outdent',
- 'indent',
- '|',
- 'uploadImage',
- 'blockQuote',
- 'insertTable',
- 'mediaEmbed',
- 'codeBlock',
- '|',
- 'undo',
- 'redo'
- ],
- image: {
- toolbar: [
- 'imageStyle:inline',
- 'imageStyle:block',
- 'imageStyle:side',
- '|',
- 'imageTextAlternative'
- ]
- },
- table: {
- contentToolbar: [
- 'tableColumn',
- 'tableRow',
- 'mergeTableCells'
- ]
- }
- } )
- .then( editor => {
- window.editor = editor;
- } )
- .catch( error => {
- console.error( 'There was a problem initializing the editor.', error );
- } );
-</script>
-</body>
-</html>
diff --git a/packages/ckeditor5-math/sample/index.html b/packages/ckeditor5-math/sample/index.html
deleted file mode 100644
index a99b9b945b..0000000000
--- a/packages/ckeditor5-math/sample/index.html
+++ /dev/null
@@ -1,123 +0,0 @@
-<!DOCTYPE html>
-<html lang="en">
-
-<head>
- <link rel="icon" type="image/png" href="https://ckeditor.com/docs/ckeditor5/latest/assets/img/favicons/32x32.png"
- sizes="32x32">
- <meta charset="utf-8">
- <title>CKEditor 5 – Development Sample</title>
- <style>
- body {
- max-width: 800px;
- margin: 20px auto;
- }
- </style>
-</head>
-
-<body>
-
- <h1>CKEditor 5 – Development Sample</h1>
-
- <div id="editor">
- <h2>Development environment</h2>
- <p>
- This is a demo of the <a
- href="https://ckeditor.com/docs/ckeditor5/latest/builds/guides/overview.html#classic-editor">classic
- editor
- build</a> that loads your plugin (<code>Math</code>) generated by the
- tool. You can modify this
- sample and use it to validate whether a plugin or a set of plugins work fine.
- </p>
- <p>
- <code>Math</code> inserts text into the editor. You can click the
- CKEditor 5 icon in the toolbar and see the results.
- </p>
-
- <h3>Helpful resources</h3>
- <ul>
- <li>Architecture
- <ul>
- <li>
- <a
- href="https://ckeditor.com/docs/ckeditor5/latest/framework/guides/architecture/core-editor-architecture.html">Core
- editor architecture</a>
- </li>
- </ul>
- <ul>
- <li>
- <a
- href="https://ckeditor.com/docs/ckeditor5/latest/framework/guides/architecture/editing-engine.html">The
- editing engine</a>
- </li>
- </ul>
- <ul>
- <li>
- <a
- href="https://ckeditor.com/docs/ckeditor5/latest/framework/guides/architecture/ui-library.html">The
- UI library</a>
- </li>
- </ul>
- </li>
-
- <li>
- <a
- href="https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/browser-compatibility.html">Browser
- compatibility</a>
- </li>
-
- <li>
- <a href="https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html">The error
- codes</a>
- </li>
-
- <li><a href="https://ckeditor.com/docs/ckeditor5/latest/builds/guides/development/dll-builds.html">The DLL
- builds</a></li>
- </ul>
-
- <h3>The directory structure</h3>
-
- <p>
- The code snippet below presents the directory structure.
- </p>
-
- <pre><code class="language-plaintext">.
-├─ lang
-│ └─ contexts.json # Entries used for creating translations.
-├─ sample
-│ ├─ dll.html # The editor initialized using the DLL builds. Check README for details.
-│ ├─ index.html # The currently displayed file.
-│ └─ ckeditor.ts # The editor initialization script.
-├─ src
-│ ├─ math.ts
-│ ├─ augmentation.ts # Type augmentations for the `@ckeditor/ckeditor5-core` module. Read more in <a href="https://ckeditor.com/docs/ckeditor5/latest/api/module_core_plugincollection-PluginsMap.html">PluginsMap</a> and <a href="https://ckeditor.com/docs/ckeditor5/latest/api/module_core_commandcollection-CommandsMap.html">CommandsMap</a>.
-│ ├─ index.ts # The modules exported by the package when using the DLL builds.
-│ └─ **/*.ts # All TypeScript source files should be saved here.
-├─ tests
-│ ├─ math.ts
-│ ├─ index.ts # Tests for the plugin.
-│ └─ **/*.ts # All tests should be saved here.
-├─ theme
-│ ├─ icons
-│ │ ├─ ckeditor.svg # The CKEditor 5 icon displayed in the toolbar.
-│ │ └─ **/*.svg # All icon files should be saved here.
-│ └─ **/*.css # All CSS files should be saved here.
-├─ typings
-│ └─ **/*.d.ts # Files containing type definitions.
-├─ .editorconfig
-├─ ...
-├─ README.md
-└─ tsconfig.json # TypeScript configuration file.</code></pre>
-
- <h3>Reporting issues</h3>
- <p>If you found a problem with CKEditor 5 or the package generator, please, report an issue:</p>
- <ul>
- <li><a href="https://github.com/ckeditor/ckeditor5/issues/new/choose">CKEditor 5</a></li>
- <li><a href="https://github.com/ckeditor/ckeditor5-package-generator/issues/new">The package generator</a>
- </li>
- </ul>
- </div>
-
- <script src="./ckeditor.dist.js"></script>
-</body>
-
-</html>
diff --git a/packages/ckeditor5-math/screenshots/1.png b/packages/ckeditor5-math/screenshots/1.png
deleted file mode 100644
index 316f7c51ff..0000000000
Binary files a/packages/ckeditor5-math/screenshots/1.png and /dev/null differ
diff --git a/packages/ckeditor5-math/screenshots/2.png b/packages/ckeditor5-math/screenshots/2.png
deleted file mode 100644
index d4f620ffd8..0000000000
Binary files a/packages/ckeditor5-math/screenshots/2.png and /dev/null differ
diff --git a/packages/ckeditor5-math/screenshots/development-environment.png b/packages/ckeditor5-math/screenshots/development-environment.png
deleted file mode 100644
index e10b9a8a5f..0000000000
Binary files a/packages/ckeditor5-math/screenshots/development-environment.png and /dev/null differ
diff --git a/packages/ckeditor5-math/src/augmentation.ts b/packages/ckeditor5-math/src/augmentation.ts
deleted file mode 100644
index 855e42133f..0000000000
--- a/packages/ckeditor5-math/src/augmentation.ts
+++ /dev/null
@@ -1,35 +0,0 @@
-import type Math from './math.js';
-import MathCommand from './mathcommand.js';
-import MathEditing from './mathediting.js';
-import MathUI from './mathui.js';
-import { KatexOptions } from './typings-external.js';
-
-declare module 'ckeditor5' {
- interface PluginsMap {
- [ Math.pluginName ]: Math;
- [ MathEditing.pluginName ]: MathEditing;
- [ MathUI.pluginName ]: MathUI;
- }
-
- interface CommandsMap {
- math: MathCommand;
- }
-
- interface EditorConfig {
- math?: {
- engine?:
- | 'mathjax'
- | 'katex'
- | ( ( equation: string, element: HTMLElement, display: boolean ) => void )
- | undefined;
- lazyLoad?: undefined | ( () => Promise<void> );
- outputType?: 'script' | 'span' | undefined;
- className?: string | undefined;
- forceOutputType?: boolean | undefined;
- enablePreview?: boolean | undefined;
- previewClassName?: Array<string> | undefined;
- popupClassName?: Array<string> | undefined;
- katexRenderOptions?: Partial<KatexOptions> | undefined;
- };
- }
-}
diff --git a/packages/ckeditor5-math/src/index.ts b/packages/ckeditor5-math/src/index.ts
deleted file mode 100644
index fca15d1b00..0000000000
--- a/packages/ckeditor5-math/src/index.ts
+++ /dev/null
@@ -1,11 +0,0 @@
-import ckeditor from './../theme/icons/math.svg?raw';
-import './augmentation.js';
-import '../theme/mathform.css';
-
-export { default as Math } from './math.js';
-export { default as MathUI } from './mathui.js';
-export { default as AutoformatMath } from './autoformatmath.js';
-
-export const icons = {
- ckeditor
-};
diff --git a/packages/ckeditor5-math/src/math.ts b/packages/ckeditor5-math/src/math.ts
deleted file mode 100644
index 8fae5820d0..0000000000
--- a/packages/ckeditor5-math/src/math.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-import { Plugin, Widget } from 'ckeditor5';
-import MathEditing from './mathediting.js';
-import MathUI from './mathui.js';
-
-export default class Math extends Plugin {
- public static get requires() {
- return [ MathEditing, MathUI, Widget ] as const;
- }
-
- public static get pluginName() {
- return 'Math' as const;
- }
-}
diff --git a/packages/ckeditor5-math/tests/index.ts b/packages/ckeditor5-math/tests/index.ts
deleted file mode 100644
index b379ad8c68..0000000000
--- a/packages/ckeditor5-math/tests/index.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-import { Math as MathDll, AutoformatMath as AutoformatMathDll } from '../src';
-import Math from '../src/math';
-import AutoformatMath from '../src/autoformatmath';
-import { describe, it, expect } from 'vitest';
-
-// Suppress MathLive errors during async cleanup in tests
-if (typeof window !== 'undefined') {
- window.addEventListener('unhandledrejection', event => {
- if (event.reason?.message?.includes('options') || event.reason?.message?.includes('mathlive')) {
- event.preventDefault();
- }
- });
- window.addEventListener('error', event => {
- if (event.message?.includes('options') || event.message?.includes('mathlive')) {
- event.preventDefault();
- }
- });
-}
-
-describe( 'CKEditor5 Math DLL', () => {
- it( 'exports Math', () => {
- expect( MathDll ).to.equal( Math );
- } );
-
- it( 'exports AutoformatMath', () => {
- expect( AutoformatMathDll ).to.equal( AutoformatMath );
- } );
-} );
diff --git a/packages/ckeditor5-math/tsconfig.json b/packages/ckeditor5-math/tsconfig.json
deleted file mode 100644
index 303791fc66..0000000000
--- a/packages/ckeditor5-math/tsconfig.json
+++ /dev/null
@@ -1,41 +0,0 @@
-{
- "compilerOptions": {
- /**
- * TypeScript automagically loads typings from all "@types/*" packages if the "compilerOptions.types" array is not defined in
- * this file. However, if some dependencies have "@types/*" packages as their dependencies, they'll also be loaded as well.
- * As a result, TypeScript loaded "@types/node" which we don't want to use, because it allows using Node.js specific APIs that
- * are not available in the browsers.
- *
- * To avoid such issues, we defined this empty "types" to disable automatic inclusion of the "@types/*" packages.
- */
- "types": [],
- "lib": [
- "ES2019", // Must match the "target".
- "ES2020.String",
- "DOM",
- "DOM.Iterable"
- ],
- "noImplicitAny": true,
- "noImplicitOverride": true,
- "composite": true,
- "strict": true,
- "target": "es2019",
- "sourceMap": true,
- "allowJs": true,
- "moduleDetection": "force",
- "moduleResolution": "NodeNext",
- "module": "NodeNext",
- "skipLibCheck": true,
- "noUncheckedSideEffectImports": false,
- "outDir": "out-tsc",
- "typeRoots": [
- "typings",
- "node_modules/@types"
- ]
- },
- "include": [
- "./sample",
- "./src",
- "./typings"
- ]
-}
diff --git a/packages/ckeditor5-math/tsconfig.test.json b/packages/ckeditor5-math/tsconfig.test.json
deleted file mode 100644
index 065d98e49b..0000000000
--- a/packages/ckeditor5-math/tsconfig.test.json
+++ /dev/null
@@ -1,15 +0,0 @@
-{
- "extends": "./tsconfig.json",
- "compilerOptions": {
- "types": [
- "@types/mocha"
- ],
- "sourceMap": true
- },
- "include": [
- "./sample",
- "./src",
- "./tests",
- "./typings"
- ]
-}
diff --git a/packages/ckeditor5-math/typings/ckeditor5-inspector.d.ts b/packages/ckeditor5-math/typings/ckeditor5-inspector.d.ts
deleted file mode 100644
index d50ee49c45..0000000000
--- a/packages/ckeditor5-math/typings/ckeditor5-inspector.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-declare module '@ckeditor/ckeditor5-inspector' {
- const inspector: {
- attach( editor: any ): void;
- };
-
- export default inspector;
-}
diff --git a/packages/ckeditor5-math/typings/types.d.ts b/packages/ckeditor5-math/typings/types.d.ts
deleted file mode 100644
index 09be57e1c9..0000000000
--- a/packages/ckeditor5-math/typings/types.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-declare module '*.svg?raw' {
- const content: string;
- export default content;
-}
diff --git a/packages/ckeditor5-math/vitest.config.ts b/packages/ckeditor5-math/vitest.config.ts
deleted file mode 100644
index d026e6d1b8..0000000000
--- a/packages/ckeditor5-math/vitest.config.ts
+++ /dev/null
@@ -1,43 +0,0 @@
-/**
- * @license Copyright (c) 2023-2024, CKSource Holding sp. z o.o. All rights reserved.
- * For licensing, see LICENSE.md.
- */
-
-import { defineConfig } from 'vitest/config';
-import svg from 'vite-plugin-svgo';
-import { webdriverio } from "@vitest/browser-webdriverio";
-
-export default defineConfig( {
- plugins: [
- svg()
- ],
- test: {
- browser: {
- enabled: true,
- provider: webdriverio(),
- headless: true,
- ui: false,
- instances: [ { browser: 'chrome' } ]
- },
- include: [
- 'tests/**/*.[jt]s'
- ],
- exclude: [
- 'tests/setup.ts'
- ],
- globals: true,
- watch: false,
- coverage: {
- thresholds: {
- lines: 100,
- functions: 100,
- branches: 100,
- statements: 100
- },
- provider: 'v8',
- include: [ 'src/**/*.{ts,tsx}' ],
- exclude: [ '**/*.{test,spec}.{ts,mts,cts,tsx,js,jsx}', '**/*.d.ts' ],
- reporter: [ 'text' ]
- }
- }
-} );
diff --git a/packages/ckeditor5/package.json b/packages/ckeditor5/package.json
index 152dd80416..17bb57fea4 100644
--- a/packages/ckeditor5/package.json
+++ b/packages/ckeditor5/package.json
@@ -15,8 +15,9 @@
},
"dependencies": {
"@triliumnext/commons": "workspace:*",
- "@triliumnext/ckeditor5-math": "workspace:*",
- "ckeditor5": "48.3.1"
+ "@ckeditor/ckeditor5-icons": "48.3.1",
+ "ckeditor5": "48.3.1",
+ "mathlive": "0.110.0"
},
"peerDependencies": {
"bootstrap": "^5.3.0"
diff --git a/packages/ckeditor5/src/extra_slash_commands.spec.ts b/packages/ckeditor5/src/extra_slash_commands.spec.ts
index f93e70c899..3147836ad2 100644
--- a/packages/ckeditor5/src/extra_slash_commands.spec.ts
+++ b/packages/ckeditor5/src/extra_slash_commands.spec.ts
@@ -142,7 +142,7 @@ describe("buildExtraCommands", () => {
const commands = buildExtraCommands(t);
const cmd = commands.find((c) => c.id === "math");
- const { MathUI } = await import("@triliumnext/ckeditor5-math");
+ const { default: MathUI } = await import("./plugins/math/math_ui.js");
const showUI = vi.fn();
const { editor, pluginInstances } = makeFakeEditor();
pluginInstances.set(MathUI, { _showUI: showUI });
diff --git a/packages/ckeditor5/src/extra_slash_commands.ts b/packages/ckeditor5/src/extra_slash_commands.ts
index 97c1e886da..16f14f5d33 100644
--- a/packages/ckeditor5/src/extra_slash_commands.ts
+++ b/packages/ckeditor5/src/extra_slash_commands.ts
@@ -17,7 +17,8 @@ import dateTimeIcon from './icons/date-time.svg?raw';
import internalLinkIcon from './icons/trilium.svg?raw';
import noteIcon from './icons/note.svg?raw';
import importMarkdownIcon from './icons/markdown-mark.svg?raw';
-import { icons as mathIcons, MathUI } from '@triliumnext/ckeditor5-math';
+import mathIcon from './icons/math.svg?raw';
+import MathUI from './plugins/math/math_ui.js';
import { INSERT_MERMAID_COMMAND } from './plugins/mermaid/insert_mermaid_command.js';
import type { MermaidSample } from './plugins/mermaid/mermaid_ui.js';
import { BookmarkUI } from "ckeditor5";
@@ -76,7 +77,7 @@ export default function buildExtraCommands(
title: "Math equation",
description: t("slash_commands.math_description"),
aliases: [ "latex", "equation" ],
- icon: mathIcons.ckeditor,
+ icon: mathIcon,
execute: (editor: Editor) => editor.plugins.get(MathUI)._showUI()
},
{
diff --git a/packages/ckeditor5-math/theme/icons/math.svg b/packages/ckeditor5/src/icons/math.svg
similarity index 100%
rename from packages/ckeditor5-math/theme/icons/math.svg
rename to packages/ckeditor5/src/icons/math.svg
diff --git a/packages/ckeditor5/src/index.ts b/packages/ckeditor5/src/index.ts
index 2ae1459fe4..340d075a33 100644
--- a/packages/ckeditor5/src/index.ts
+++ b/packages/ckeditor5/src/index.ts
@@ -20,7 +20,7 @@ export { default as getCkLocale } from "./i18n.js";
export * from "./utils.js";
// Import with sideffects to ensure that type augmentations are present.
-import "@triliumnext/ckeditor5-math";
+import "./plugins/math/math.js";
import "./plugins/mermaid/mermaid.js";
window[Symbol.for("cke distribution")] = "trilium";
diff --git a/packages/ckeditor5/src/plugins.ts b/packages/ckeditor5/src/plugins.ts
index 298b833157..80b19ae677 100644
--- a/packages/ckeditor5/src/plugins.ts
+++ b/packages/ckeditor5/src/plugins.ts
@@ -28,13 +28,13 @@ import Mermaid from "./plugins/mermaid/mermaid.js";
import Admonition from "./plugins/admonition/admonition.js";
import Collapsible from "./plugins/collapsible/collapsible.js";
import Footnotes from "./plugins/footnotes/footnotes.js";
-import { Math, AutoformatMath } from "@triliumnext/ckeditor5-math";
+import Math from "./plugins/math/math.js";
+import AutoformatMath from "./plugins/math/autoformat_math.js";
import CopyAnchorLinkButton from "./plugins/copy_anchor_link.js";
import CopyLinkUrlButton from "./plugins/copy_link_url.js";
import ImageActions from "./plugins/image_actions.js";
import TriliumSnippets from "./plugins/snippets/snippets.js";
-// import "@triliumnext/ckeditor5-math/index.css";
import CodeBlockToolbar from "./plugins/code_block_toolbar.js";
import CodeBlockLanguageDropdown from "./plugins/code_block_language_dropdown.js";
import CodeBlockInsertParagraph from "./plugins/code_block_insert_paragraph.js";
diff --git a/packages/ckeditor5-math/LICENSE b/packages/ckeditor5/src/plugins/math/LICENSE
similarity index 100%
rename from packages/ckeditor5-math/LICENSE
rename to packages/ckeditor5/src/plugins/math/LICENSE
diff --git a/packages/ckeditor5/src/plugins/math/README.md b/packages/ckeditor5/src/plugins/math/README.md
new file mode 100644
index 0000000000..0fd781c707
--- /dev/null
+++ b/packages/ckeditor5/src/plugins/math/README.md
@@ -0,0 +1,87 @@
+# Math
+
+TeX equations, rendered with KaTeX (what Trilium configures) or MathJax. An equation is either an
+inline `mathtex-inline` widget or a block `mathtex-display` one, both carrying the source in an
+`equation` attribute. Editing happens in a balloon dialog backed by a MathLive `<math-field>`, with
+a plain LaTeX textarea beside it and a live preview.
+
+Load the `Math` glue plugin; it pulls in `MathEditing` and `MathUI`. `AutoformatMath` is separate
+and opt-in — it turns `$$` or `\[` at the start of a block into an equation prompt.
+
+## Files
+
+| File | Role |
+|---|---|
+| `math.ts` | Glue plugin; also declares the `ckeditor5` module augmentation, including the `math` config key |
+| `math_editing.ts` | Schema, conversion, the `math` command, and the data-processor hook that preserves newlines |
+| `math_command.ts` | The `math` command — inserts or updates an equation |
+| `math_ui.ts` | Toolbar button, `Ctrl+M`, and the balloon that hosts the form |
+| `main_form_view.ts` | The dialog: input, display toggle, preview, save/cancel |
+| `math_input_view.ts` | The MathLive `<math-field>` and LaTeX textarea, kept in sync |
+| `math_view.ts` | The rendered preview |
+| `autoformat_math.ts` | The `$$` / `\[` shorthand |
+| `utils.ts` | Delimiter helpers, `renderEquation`, balloon positioning |
+| `typings_external.ts` | Types for KaTeX and MathJax, which are read off globals |
+
+## Storage formats
+
+Which one is produced depends on `config.math.outputType` (Trilium uses `span`):
+
+- `span` — `<span class="math-tex">\(x^2\)</span>`, display equations use `\[…\]`
+- `script` — `<script type="math/tex">x^2</script>`, display uses `math/tex; mode=display`
+
+Upcast is deliberately more permissive than downcast: it also reads Quill's
+`<span class="ql-formula" data-value="…">`, so content pasted from other editors survives.
+
+## Rendering
+
+`renderEquation` supports KaTeX, MathJax 2, MathJax 3 and a caller-supplied function, and finds the
+engine on `window` rather than importing it — Trilium loads KaTeX lazily via `config.math.lazyLoad`
+and the loader runs at most once (`window.CKEDITOR_MATH_LAZY_LOAD` caches the promise). Note the
+custom-function engine is handed the target element directly and **skips preview handling
+entirely**, so no preview element is created on that path.
+
+## Known rough edges
+
+Longstanding, preserved deliberately; none are regressions from the move into this package.
+
+- **The `value` binding on the input is fragile.** `MathUI` binds `mathInputView#value` to the
+ command, but `MathInputView` assigns its own `value` whenever the MathLive field or the textarea
+ reports a change. Writing a bound property directly severs the binding, so from the first edit
+ onward the form no longer tracks the command. `_addFormView()` compensates by pushing the
+ command's equation in by hand each time the dialog opens — that assignment looks redundant with
+ the binding but is not.
+- **The preview element is never hidden or removed by hand.** Both `MathUI#destroy()` and
+ `_removeFormView()` look it up with `getElementById` *after* the form view has already been
+ destroyed or removed from the balloon, and the preview lives inside that view — so the lookup
+ finds nothing. Harmless, because the element goes away with its parent, but the code reads as if
+ it does something.
+- `AutoformatMath` sets `command.display = true` before opening the dialog, but `MathCommand`
+ recomputes `display` from the selection on the next model change, which lands first. Typing `$$`
+ may therefore open the dialog in inline rather than display mode.
+
+## Provenance
+
+Vendored, then reworked.
+
+Forked from [isaul32/ckeditor5-math](https://github.com/isaul32/ckeditor5-math) by Sauli Anto,
+**ISC** licensed — see [`LICENSE`](./LICENSE) next to this file. ISC is permissive and combines with
+this repository's AGPL-3.0-only license.
+
+It is not tracked against upstream and could not easily be: the source was ported to TypeScript and
+through several CKEditor 5 API renames, the MathLive-based input view and its preview are Trilium's
+own, and Trilium added the `\gdef` macro isolation and offline font bundling.
+
+It lived at `packages/ckeditor5-math` until it was folded into this package, which had always been
+its only consumer. Points worth recording from that move:
+
+- The package's `mathlive` and `@ckeditor/ckeditor5-icons` dependencies moved to this package —
+ they are the only runtime dependencies the math feature needs, and MathLive is by far the
+ heaviest thing the editor bundles.
+- `math_input_view.ts` used to re-declare `window.mathVirtualKeyboard`. MathLive declares it
+ itself; the duplicate was harmless in a separate package but collides here, so it is gone.
+- The **AutoMath** paste feature was removed before the move (see 5f833734c2): it listened for
+ `inputTransformation` on the `Clipboard` facade rather than `ClipboardPipeline`, so it had never
+ fired, and once fixed it proved too narrow to keep.
+- The package's `tsconfig.test.json` referenced an uninstalled `@types/mocha`, so nothing ever
+ typechecked its tests. Being in this package, they are typechecked now.
diff --git a/packages/ckeditor5-math/tests/autoformatmath.ts b/packages/ckeditor5/src/plugins/math/autoformat_math.spec.ts
similarity index 95%
rename from packages/ckeditor5-math/tests/autoformatmath.ts
rename to packages/ckeditor5/src/plugins/math/autoformat_math.spec.ts
index c676d5e627..bf9d5ba0f0 100644
--- a/packages/ckeditor5-math/tests/autoformatmath.ts
+++ b/packages/ckeditor5/src/plugins/math/autoformat_math.spec.ts
@@ -2,11 +2,11 @@ import { Autoformat, ClassicEditor, Paragraph, Typing, _setModelData as setData
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
-import '../src/augmentation.js';
+import './math.js';
-import AutoformatMath from '../src/autoformatmath.js';
-import Math from '../src/math.js';
-import MathUI from '../src/mathui.js';
+import AutoformatMath from './autoformat_math.js';
+import Math from './math.js';
+import MathUI from './math_ui.js';
describe( 'AutoformatMath', () => {
let editorElement: HTMLDivElement, editor: ClassicEditor;
diff --git a/packages/ckeditor5-math/src/autoformatmath.ts b/packages/ckeditor5/src/plugins/math/autoformat_math.ts
similarity index 95%
rename from packages/ckeditor5-math/src/autoformatmath.ts
rename to packages/ckeditor5/src/plugins/math/autoformat_math.ts
index ab10315524..c180ce2c03 100644
--- a/packages/ckeditor5-math/src/autoformatmath.ts
+++ b/packages/ckeditor5/src/plugins/math/autoformat_math.ts
@@ -1,8 +1,8 @@
import { Plugin, logWarning, blockAutoformatEditing } from 'ckeditor5';
// eslint-disable-next-line ckeditor5-rules/allow-imports-only-from-main-package-entry-point
import Math from './math.js';
-import MathCommand from './mathcommand.js';
-import MathUI from './mathui.js';
+import MathCommand from './math_command.js';
+import MathUI from './math_ui.js';
export default class AutoformatMath extends Plugin {
public static get requires() {
diff --git a/packages/ckeditor5-math/tests/lazyload.ts b/packages/ckeditor5/src/plugins/math/lazyload.spec.ts
similarity index 92%
rename from packages/ckeditor5-math/tests/lazyload.ts
rename to packages/ckeditor5/src/plugins/math/lazyload.spec.ts
index 173fae184d..1189720195 100644
--- a/packages/ckeditor5-math/tests/lazyload.ts
+++ b/packages/ckeditor5/src/plugins/math/lazyload.spec.ts
@@ -1,5 +1,8 @@
+// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
+import './math.js';
+
import { ClassicEditor, type EditorConfig } from 'ckeditor5';
-import MathUI from '../src/mathui';
+import MathUI from './math_ui.js';
import { describe, beforeEach, it, afterEach, expect } from "vitest";
// Suppress MathLive errors during async cleanup
diff --git a/packages/ckeditor5/src/plugins/math/main_form_view.spec.ts b/packages/ckeditor5/src/plugins/math/main_form_view.spec.ts
new file mode 100644
index 0000000000..37a14437d9
--- /dev/null
+++ b/packages/ckeditor5/src/plugins/math/main_form_view.spec.ts
@@ -0,0 +1,145 @@
+// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
+import './math.js';
+
+import katex from 'katex';
+import { ClassicEditor, Essentials, Locale, Paragraph, _setModelData as setModelData } from 'ckeditor5';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { createTestEditor } from '../../../test/editor-kit.js';
+import MainFormView from './main_form_view.js';
+import Math from './math.js';
+import MathEditing from './math_editing.js';
+
+const INLINE = 'mathtex-inline';
+const DISPLAY = 'mathtex-display';
+
+describe( 'MainFormView', () => {
+ const globals = window as unknown as { katex: typeof katex };
+
+ function createFormView( previewEnabled: boolean ) {
+ globals.katex = katex;
+ return new MainFormView(
+ new Locale(),
+ {
+ engine: 'katex',
+ lazyLoad: undefined,
+ previewUid: `preview-form-${ previewEnabled }`,
+ previewClassName: [],
+ katexRenderOptions: {}
+ },
+ previewEnabled,
+ []
+ );
+ }
+
+ describe( 'with the preview enabled', () => {
+ let view: MainFormView;
+
+ beforeEach( () => {
+ view = createFormView( true );
+ view.render();
+ document.body.appendChild( view.element as HTMLElement );
+ } );
+
+ it( 'builds a preview view', () => {
+ expect( view.mathView ).not.toBeUndefined();
+ } );
+
+ it( 'reads the equation back from the input', () => {
+ view.equation = 'x^2';
+
+ expect( view.equation ).toBe( 'x^2' );
+ } );
+
+ it( 'strips delimiters typed into the input and flips the display switch', () => {
+ view.mathInputView.value = '\\[x^2\\]';
+
+ expect( view.mathInputView.value ).toBe( 'x^2' );
+ expect( view.displayButtonView.isOn ).toBe( true );
+ } );
+
+ it( 'keeps an undelimited equation as typed', () => {
+ view.mathInputView.value = 'x^2';
+
+ expect( view.mathInputView.value ).toBe( 'x^2' );
+ expect( view.displayButtonView.isOn ).toBe( false );
+ } );
+
+ it( 'mirrors the equation into the preview', () => {
+ view.mathInputView.value = 'x^2';
+
+ expect( view.mathView?.value ).toBe( 'x^2' );
+ } );
+
+ it( 'toggles the display switch when it is executed', () => {
+ expect( view.displayButtonView.isOn ).toBe( false );
+
+ view.displayButtonView.fire( 'execute' );
+
+ expect( view.displayButtonView.isOn ).toBe( true );
+ } );
+
+ it( 'focuses its first focusable on focus()', () => {
+ expect( () => view.focus() ).not.toThrow();
+ } );
+ } );
+
+ describe( 'with the preview disabled', () => {
+ it( 'builds no preview view and still tracks the equation', () => {
+ const view = createFormView( false );
+ view.render();
+ document.body.appendChild( view.element as HTMLElement );
+
+ expect( view.mathView ).toBeUndefined();
+
+ view.mathInputView.value = 'x^2';
+ expect( view.equation ).toBe( 'x^2' );
+
+ view.element?.remove();
+ view.destroy();
+ } );
+ } );
+} );
+
+describe( 'MathCommand on a display equation', () => {
+ let editor: ClassicEditor;
+
+ beforeEach( async () => {
+ editor = await createTestEditor( [ Essentials, Paragraph, Math ], {
+ math: {
+ engine: ( equation: string, element: HTMLElement ) => {
+ element.innerHTML = equation;
+ }
+ }
+ } as never );
+ } );
+
+ it( 'updates a selected display equation in place', () => {
+ setModelData( editor.model, `[<${ DISPLAY } equation="x^2" type="span" display="true"></${ DISPLAY }>]` );
+
+ editor.execute( 'math', 'y^2', true, 'script' );
+
+ // The existing `span` type is kept because forceOutputType was not requested.
+ expect( editor.getData() ).toContain( '\\[y^2\\]' );
+ } );
+
+ it( 'maps a view position inside an equation widget back to the model', () => {
+ setModelData( editor.model, `<paragraph>[<${ INLINE } equation="x^2" type="script" display="false"></${ INLINE }>]</paragraph>` );
+
+ const modelElement = editor.model.document.getRoot()?.getChild( 0 );
+ const viewElement = modelElement?.is( 'element' ) ?
+ editor.editing.mapper.toViewElement( modelElement ) :
+ undefined;
+ if ( !viewElement ) {
+ throw new Error( 'Expected the paragraph to be mapped to the view.' );
+ }
+
+ // Exercises the viewToModelPosition callback MathEditing installs.
+ const position = editor.editing.mapper.toModelPosition(
+ editor.editing.view.createPositionAt( viewElement, 0 )
+ );
+
+ expect( position.parent.is( 'element' ) ).toBe( true );
+ expect( editor.plugins.get( MathEditing ) ).toBeInstanceOf( MathEditing );
+ } );
+} );
diff --git a/packages/ckeditor5-math/src/ui/mainformview.ts b/packages/ckeditor5/src/plugins/math/main_form_view.ts
similarity index 93%
rename from packages/ckeditor5-math/src/ui/mainformview.ts
rename to packages/ckeditor5/src/plugins/math/main_form_view.ts
index c5989cfbd4..539cedebaa 100644
--- a/packages/ckeditor5-math/src/ui/mainformview.ts
+++ b/packages/ckeditor5/src/plugins/math/main_form_view.ts
@@ -1,9 +1,9 @@
import { ButtonView, FocusCycler, FocusTracker, KeystrokeHandler, LabelView, submitHandler, SwitchButtonView, View, ViewCollection, type FocusableView, type Locale } from 'ckeditor5';
import { IconCheck, IconCancel } from "@ckeditor/ckeditor5-icons";
-import { extractDelimiters, hasDelimiters } from '../utils.js';
-import MathView, { type MathViewOptions } from './mathview.js';
-import MathInputView from './mathinputview.js';
-import '../../theme/mathform.css';
+import { extractDelimiters, hasDelimiters } from './utils.js';
+import MathView, { type MathViewOptions } from './math_view.js';
+import MathInputView from './math_input_view.js';
+import '../../theme/math_form.css';
export default class MainFormView extends View {
public saveButtonView: ButtonView;
@@ -124,6 +124,8 @@ export default class MainFormView extends View {
this.mathInputView.on( 'mathfieldReady', () => {
const mathfieldView = this.mathInputView.mathFieldFocusableView;
+ /* v8 ignore next 5 -- defensive cleanup: the focusable is registered with an element and
+ is always still tracked at this point */
if ( mathfieldView.element ) {
if ( this._focusables.has( mathfieldView ) ) {
this._focusables.remove( mathfieldView );
diff --git a/packages/ckeditor5-math/tests/math.ts b/packages/ckeditor5/src/plugins/math/math.spec.ts
similarity index 89%
rename from packages/ckeditor5-math/tests/math.ts
rename to packages/ckeditor5/src/plugins/math/math.spec.ts
index 65d3db1e47..b150e3317b 100644
--- a/packages/ckeditor5-math/tests/math.ts
+++ b/packages/ckeditor5/src/plugins/math/math.spec.ts
@@ -1,7 +1,7 @@
import { ClassicEditor, Widget } from 'ckeditor5';
-import Mathematics from '../src/math.js';
-import MathEditing from '../src/mathediting.js';
-import MathUI from '../src/mathui.js';
+import Mathematics from './math.js';
+import MathEditing from './math_editing.js';
+import MathUI from './math_ui.js';
import { describe, beforeEach, it, afterEach, expect } from "vitest";
describe( 'Math', () => {
diff --git a/packages/ckeditor5/src/plugins/math/math.ts b/packages/ckeditor5/src/plugins/math/math.ts
new file mode 100644
index 0000000000..3c80dd41c4
--- /dev/null
+++ b/packages/ckeditor5/src/plugins/math/math.ts
@@ -0,0 +1,56 @@
+import { Plugin, Widget } from 'ckeditor5';
+
+import '../../theme/math_form.css';
+
+import type MathCommand from './math_command.js';
+import MathEditing from './math_editing.js';
+import MathUI from './math_ui.js';
+import type { KatexOptions } from './typings_external.js';
+
+/**
+ * TeX equations, rendered with KaTeX or MathJax: an inline `mathtex-inline` widget or a block
+ * `mathtex-display` one, edited through a MathLive-backed dialog.
+ *
+ * This is a "glue" plugin which loads {@link MathEditing} and {@link MathUI}.
+ *
+ * Derived from `@isaul32/ckeditor5-math`; see the `LICENSE` and `README.md` next to this file.
+ */
+export default class Math extends Plugin {
+ public static get requires() {
+ return [ MathEditing, MathUI, Widget ] as const;
+ }
+
+ public static get pluginName() {
+ return 'Math' as const;
+ }
+}
+
+declare module 'ckeditor5' {
+ interface PluginsMap {
+ [ Math.pluginName ]: Math;
+ [ MathEditing.pluginName ]: MathEditing;
+ [ MathUI.pluginName ]: MathUI;
+ }
+
+ interface CommandsMap {
+ math: MathCommand;
+ }
+
+ interface EditorConfig {
+ math?: {
+ engine?:
+ | 'mathjax'
+ | 'katex'
+ | ( ( equation: string, element: HTMLElement, display: boolean ) => void )
+ | undefined;
+ lazyLoad?: undefined | ( () => Promise<void> );
+ outputType?: 'script' | 'span' | undefined;
+ className?: string | undefined;
+ forceOutputType?: boolean | undefined;
+ enablePreview?: boolean | undefined;
+ previewClassName?: Array<string> | undefined;
+ popupClassName?: Array<string> | undefined;
+ katexRenderOptions?: Partial<KatexOptions> | undefined;
+ };
+ }
+}
diff --git a/packages/ckeditor5-math/tests/mathcommand.ts b/packages/ckeditor5/src/plugins/math/math_command.spec.ts
similarity index 97%
rename from packages/ckeditor5-math/tests/mathcommand.ts
rename to packages/ckeditor5/src/plugins/math/math_command.spec.ts
index 3021ab01ca..d4ef422b53 100644
--- a/packages/ckeditor5-math/tests/mathcommand.ts
+++ b/packages/ckeditor5/src/plugins/math/math_command.spec.ts
@@ -1,11 +1,11 @@
// Side-effect import: declares the `math` key on EditorConfig used by the editor config below.
-import '../src/augmentation.js';
+import './math.js';
import { ClassicEditor, Bold, Paragraph, Typing, _getModelData as getData, _setModelData as setData } from 'ckeditor5';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
-import Math from '../src/math.js';
-import { getBalloonPositionData } from '../src/utils.js';
+import Math from './math.js';
+import { getBalloonPositionData } from './utils.js';
const INLINE = 'mathtex-inline';
const DISPLAY = 'mathtex-display';
diff --git a/packages/ckeditor5-math/src/mathcommand.ts b/packages/ckeditor5/src/plugins/math/math_command.ts
similarity index 100%
rename from packages/ckeditor5-math/src/mathcommand.ts
rename to packages/ckeditor5/src/plugins/math/math_command.ts
diff --git a/packages/ckeditor5-math/tests/mathediting.ts b/packages/ckeditor5/src/plugins/math/math_editing.spec.ts
similarity index 98%
rename from packages/ckeditor5-math/tests/mathediting.ts
rename to packages/ckeditor5/src/plugins/math/math_editing.spec.ts
index 6ff4ed0490..6a44070a32 100644
--- a/packages/ckeditor5-math/tests/mathediting.ts
+++ b/packages/ckeditor5/src/plugins/math/math_editing.spec.ts
@@ -1,11 +1,11 @@
// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
-import '../src/augmentation.js';
+import './math.js';
import { ClassicEditor, CodeBlock, Paragraph, Typing, _getModelData as getData, _setModelData as setData } from 'ckeditor5';
import { afterEach, beforeEach, describe, expect, it } from 'vitest';
-import Math from '../src/math.js';
-import MathEditing from '../src/mathediting.js';
+import Math from './math.js';
+import MathEditing from './math_editing.js';
const INLINE = 'mathtex-inline';
const DISPLAY = 'mathtex-display';
diff --git a/packages/ckeditor5-math/src/mathediting.ts b/packages/ckeditor5/src/plugins/math/math_editing.ts
similarity index 99%
rename from packages/ckeditor5-math/src/mathediting.ts
rename to packages/ckeditor5/src/plugins/math/math_editing.ts
index 53b50614bb..ad9247e0e9 100644
--- a/packages/ckeditor5-math/src/mathediting.ts
+++ b/packages/ckeditor5/src/plugins/math/math_editing.ts
@@ -1,4 +1,4 @@
-import MathCommand from './mathcommand.js';
+import MathCommand from './math_command.js';
import { type Editor, Plugin, toWidget, Widget, viewToModelPositionOutsideModelElement, type ViewDowncastWriter, type ModelElement, CKEditorError, uid } from 'ckeditor5';
import { renderEquation, extractDelimiters } from './utils.js';
diff --git a/packages/ckeditor5-math/tests/mathinputview.ts b/packages/ckeditor5/src/plugins/math/math_input_view.spec.ts
similarity index 98%
rename from packages/ckeditor5-math/tests/mathinputview.ts
rename to packages/ckeditor5/src/plugins/math/math_input_view.spec.ts
index 2af512dd22..8330ffd3d1 100644
--- a/packages/ckeditor5-math/tests/mathinputview.ts
+++ b/packages/ckeditor5/src/plugins/math/math_input_view.spec.ts
@@ -1,7 +1,10 @@
+// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
+import './math.js';
+
import { Locale } from 'ckeditor5';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
-import MathInputView, { LatexTextAreaView, MathFieldFocusableView } from '../src/ui/mathinputview.js';
+import MathInputView, { LatexTextAreaView, MathFieldFocusableView } from './math_input_view.js';
interface MathField extends HTMLElement {
value: string;
diff --git a/packages/ckeditor5-math/src/ui/mathinputview.ts b/packages/ckeditor5/src/plugins/math/math_input_view.ts
similarity index 94%
rename from packages/ckeditor5-math/src/ui/mathinputview.ts
rename to packages/ckeditor5/src/plugins/math/math_input_view.ts
index db72fa3ef3..a2553d3b9c 100644
--- a/packages/ckeditor5-math/src/ui/mathinputview.ts
+++ b/packages/ckeditor5/src/plugins/math/math_input_view.ts
@@ -4,17 +4,8 @@ import { View, type Locale, type FocusableView } from 'ckeditor5';
import 'mathlive/fonts.css'; // Auto-bundles offline fonts
import 'mathlive/static.css'; // Static styles for mathlive
-declare global {
- interface Window {
- mathVirtualKeyboard?: {
- visible: boolean;
- show: () => void;
- hide: () => void;
- addEventListener: ( event: string, cb: () => void ) => void;
- removeEventListener: ( event: string, cb: () => void ) => void;
- };
- }
-}
+// `window.mathVirtualKeyboard` is declared by MathLive itself. This file used to re-declare it,
+// which was harmless while the plugin lived in its own package but collides here.
interface MathFieldElement extends HTMLElement {
value: string;
@@ -147,6 +138,8 @@ export default class MathInputView extends View {
}
const initial = this.value ?? '';
+ /* v8 ignore next 3 -- a freshly templated textarea is empty and `value` starts null, so
+ these are always already equal on first render */
if ( textarea.value !== initial ) {
textarea.value = initial;
}
@@ -155,6 +148,7 @@ export default class MathInputView extends View {
// Loads the MathLive library dynamically
private async _loadMathLive(): Promise<void> {
+ /* v8 ignore start -- the catch is only reached if the bundled MathLive import itself fails */
try {
await import( 'mathlive' );
await customElements.whenDefined( 'math-field' );
@@ -173,13 +167,13 @@ export default class MathInputView extends View {
if ( this.element && !this._destroyed ) {
this._initMathField( true );
}
- /* v8 ignore next 6 -- defensive: only reached if the bundled MathLive import itself fails */
} catch {
const c = this.element?.querySelector( '.ck-mathlive-container' );
if ( c ) {
c.textContent = 'Math editor unavailable';
}
}
+ /* v8 ignore stop */
}
// Initializes the <math-field> element
diff --git a/packages/ckeditor5-math/tests/mathui.ts b/packages/ckeditor5/src/plugins/math/math_ui.spec.ts
similarity index 94%
rename from packages/ckeditor5-math/tests/mathui.ts
rename to packages/ckeditor5/src/plugins/math/math_ui.spec.ts
index 94becd000e..5c56789df9 100644
--- a/packages/ckeditor5-math/tests/mathui.ts
+++ b/packages/ckeditor5/src/plugins/math/math_ui.spec.ts
@@ -1,8 +1,11 @@
/* eslint-disable @typescript-eslint/no-non-null-assertion */
/* globals document, Event */
-import MathUI from '../src/mathui';
-import MainFormView from '../src/ui/mainformview';
+// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
+import './math.js';
+
+import MathUI from './math_ui.js';
+import MainFormView from './main_form_view.js';
import { ClassicEditor, ContextualBalloon, ButtonView, View, Paragraph, ClickObserver, keyCodes, _setModelData as setModelData } from 'ckeditor5';
import { describe, beforeEach, it, afterEach, vi, expect, MockInstance, expectTypeOf } from "vitest";
@@ -407,12 +410,19 @@ describe( 'MathUI', () => {
setModelData( editor.model, '<paragraph>f[o]o</paragraph>' );
} );
- it( 'should bind mainFormView.mathInputView#value to math command value', () => {
+ it( 'should populate mainFormView.mathInputView#value from the math command', () => {
const command = editor.commands.get( 'math' );
expect( formView!.mathInputView.value ).to.be.null;
+ // Reopening the UI is what pushes the command's equation into the form. The
+ // `value` binding set up in _createFormView() cannot be relied on here:
+ // MathInputView assigns its own `value` whenever the MathLive field or the
+ // LaTeX textarea reports a change, and writing a bound property directly
+ // severs the binding — which happens as soon as the field mounts.
command!.value = 'x^2';
+ mathUIFeature._showUI();
+
expect( formView!.mathInputView.value ).to.equal( 'x^2' );
} );
diff --git a/packages/ckeditor5-math/src/mathui.ts b/packages/ckeditor5/src/plugins/math/math_ui.ts
similarity index 87%
rename from packages/ckeditor5-math/src/mathui.ts
rename to packages/ckeditor5/src/plugins/math/math_ui.ts
index 9d86761e0d..f90feffd5c 100644
--- a/packages/ckeditor5-math/src/mathui.ts
+++ b/packages/ckeditor5/src/plugins/math/math_ui.ts
@@ -1,9 +1,9 @@
-import MathEditing from './mathediting.js';
-import MainFormView from './ui/mainformview.js';
-import mathIcon from '../theme/icons/math.svg?raw';
+import MathEditing from './math_editing.js';
+import MainFormView from './main_form_view.js';
+import mathIcon from '../../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 MathCommand from './math_command.js';
const mathKeystroke = 'Ctrl+M';
@@ -36,11 +36,14 @@ export default class MathUI extends Plugin {
this.formView?.destroy();
- // Destroy preview element
+ // Destroy preview element.
+ /* v8 ignore start -- the preview lives inside the form view destroyed just above, so by
+ here it is already detached and getElementById finds nothing */
const previewEl = document.getElementById( this._previewUid );
if ( previewEl ) {
previewEl.parentNode?.removeChild( previewEl );
}
+ /* v8 ignore stop */
}
public _showUI(): void {
@@ -167,6 +170,11 @@ export default class MathUI extends Plugin {
this.formView.mathView.updateMath();
}
+ // Push the current command state into the form. This looks redundant with the bindings set
+ // up in _createFormView(), but is not: MathInputView writes its own `value` whenever the
+ // MathLive field or the LaTeX textarea changes, and writing a bound property directly
+ // severs the binding. From the first edit onward this assignment is what repopulates the
+ // form when the dialog is reopened.
this.formView.equation = mathCommand.value ?? '';
this.formView.displayButtonView.isOn = mathCommand.display || false;
}
@@ -207,11 +215,14 @@ export default class MathUI extends Plugin {
this.formView.saveButtonView.focus();
this._balloon.remove( this.formView );
- // Hide preview element
+ // Hide preview element.
+ /* v8 ignore start -- dead in this order: the preview lives inside the form view, so
+ the balloon.remove() above already detached it and getElementById finds nothing */
const previewEl = document.getElementById( this._previewUid );
if ( previewEl ) {
previewEl.style.visibility = 'hidden';
}
+ /* v8 ignore stop */
this.editor.editing.view.focus();
}
@@ -279,6 +290,7 @@ export default class MathUI extends Plugin {
} );
// Close on click outside of balloon panel element.
+ /* v8 ignore start -- defensive: init() builds the form view before wiring interactions */
if ( this.formView ) {
clickOutsideHandler( {
emitter: this.formView,
@@ -287,10 +299,10 @@ export default class MathUI extends Plugin {
contextElements: this._balloon.view.element ? [ this._balloon.view.element ] : [],
callback: () => { this._hideUI(); }
} );
- /* v8 ignore next 3 -- defensive: init() builds the form view before wiring interactions */
} else {
throw new Error( 'missing form view' );
}
+ /* v8 ignore stop */
}
private get _isUIVisible() {
diff --git a/packages/ckeditor5/src/plugins/math/math_ui_interactions.spec.ts b/packages/ckeditor5/src/plugins/math/math_ui_interactions.spec.ts
new file mode 100644
index 0000000000..a3038901f9
--- /dev/null
+++ b/packages/ckeditor5/src/plugins/math/math_ui_interactions.spec.ts
@@ -0,0 +1,155 @@
+// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
+import './math.js';
+
+import katex from 'katex';
+import { ClassicEditor, ContextualBalloon, Essentials, keyCodes, Paragraph, _setModelData as setModelData } from 'ckeditor5';
+import { beforeEach, describe, expect, it, vi } from 'vitest';
+
+import { createTestEditor } from '../../../test/editor-kit.js';
+import Math from './math.js';
+import MathUI from './math_ui.js';
+
+const INLINE = 'mathtex-inline';
+
+/**
+ * Covers the MathUI paths the legacy suite leaves out: the balloon's own keystrokes, closing
+ * behaviour, the click-to-reopen handler and the preview element's lifecycle.
+ */
+describe( 'MathUI interactions', () => {
+ let editor: ClassicEditor;
+ let ui: MathUI;
+
+ beforeEach( async () => {
+ // The preview element is only built by the katex/mathjax render paths — a custom engine
+ // callback is handed the target element directly and never creates one.
+ ( window as unknown as { katex: typeof katex } ).katex = katex;
+
+ editor = await createTestEditor( [ Essentials, Paragraph, Math ], {
+ math: { engine: 'katex' }
+ } as never );
+
+ ui = editor.plugins.get( MathUI );
+ const balloon = editor.plugins.get( ContextualBalloon );
+ vi.spyOn( balloon.view, 'attachTo' ).mockReturnValue( false );
+ vi.spyOn( balloon.view, 'pin' ).mockReturnValue();
+ editor.editing.view.document.isFocused = true;
+ } );
+
+ /** This plugin instance's own preview element (the page is shared across specs). */
+ function previewElement(): HTMLElement | null {
+ const uid = ( ui as unknown as { _previewUid: string } )._previewUid;
+ return document.getElementById( uid );
+ }
+
+ function formView() {
+ const view = ui.formView;
+ if ( !view ) {
+ throw new Error( 'The form view was not created.' );
+ }
+ return view;
+ }
+
+ describe( 'the Enter keystroke on the form', () => {
+ it( 'submits the equation', () => {
+ setModelData( editor.model, '<paragraph>f[o]o</paragraph>' );
+ ui._showUI();
+ formView().mathInputView.value = 'x^2';
+
+ const executeSpy = vi.spyOn( editor, 'execute' );
+ formView().keystrokes.press( {
+ keyCode: keyCodes.enter,
+ shiftKey: false,
+ preventDefault: vi.fn(),
+ stopPropagation: vi.fn()
+ } as never );
+
+ expect( executeSpy.mock.lastCall?.slice( 0, 2 ) ).toMatchObject( [ 'math', 'x^2' ] );
+ } );
+
+ it( 'leaves Shift+Enter alone so it can insert a newline', () => {
+ setModelData( editor.model, '<paragraph>f[o]o</paragraph>' );
+ ui._showUI();
+ formView().mathInputView.value = 'x^2';
+
+ const executeSpy = vi.spyOn( editor, 'execute' );
+ formView().keystrokes.press( {
+ keyCode: keyCodes.enter,
+ shiftKey: true,
+ preventDefault: vi.fn(),
+ stopPropagation: vi.fn()
+ } as never );
+
+ expect( executeSpy ).not.toHaveBeenCalledWith( 'math', expect.anything(), expect.anything(), expect.anything(), expect.anything() );
+ } );
+ } );
+
+ describe( 'closing the form', () => {
+ it( 'only removes the form when the command already holds an equation', () => {
+ setModelData( editor.model, `<paragraph>[<${ INLINE } equation="x^2" type="script" display="false"></${ INLINE }>]</paragraph>` );
+ ui._showUI();
+
+ const hideSpy = vi.spyOn( ui, '_hideUI' );
+ formView().fire( 'cancel' );
+
+ // The command has a value, so the balloon keeps the rest of its stack.
+ expect( hideSpy ).not.toHaveBeenCalled();
+ } );
+
+ it( 'hides the whole UI when the command has no equation', () => {
+ setModelData( editor.model, '<paragraph>f[o]o</paragraph>' );
+ ui._showUI();
+
+ const hideSpy = vi.spyOn( ui, '_hideUI' );
+ formView().fire( 'cancel' );
+
+ expect( hideSpy ).toHaveBeenCalled();
+ } );
+ } );
+
+ describe( 'clicking an existing equation', () => {
+ it( 'reopens the form', () => {
+ setModelData( editor.model, `<paragraph>[<${ INLINE } equation="x^2" type="script" display="false"></${ INLINE }>]</paragraph>` );
+ const showSpy = vi.spyOn( ui, '_showUI' );
+
+ editor.editing.view.document.fire( 'click' );
+
+ expect( showSpy ).toHaveBeenCalled();
+ } );
+
+ it( 'does nothing when the selection holds no equation', () => {
+ setModelData( editor.model, '<paragraph>f[o]o</paragraph>' );
+ const showSpy = vi.spyOn( ui, '_showUI' );
+
+ editor.editing.view.document.fire( 'click' );
+
+ expect( showSpy ).not.toHaveBeenCalled();
+ } );
+ } );
+
+ describe( 'the preview element', () => {
+ it( 'is reused rather than duplicated when the form is shown again', () => {
+ setModelData( editor.model, `<paragraph>[<${ INLINE } equation="x^2" type="script" display="false"></${ INLINE }>]</paragraph>` );
+ ui._showUI();
+
+ expect( document.querySelectorAll( `[id="${ ( ui as unknown as { _previewUid: string } )._previewUid }"]` ) ).toHaveLength( 1 );
+
+ // Re-show: the preview exists now, so _addFormView refreshes it rather than building
+ // a second one.
+ ui._hideUI();
+ ui._showUI();
+
+ expect( document.querySelectorAll( `[id="${ ( ui as unknown as { _previewUid: string } )._previewUid }"]` ) ).toHaveLength( 1 );
+ } );
+
+ it( 'is removed from the document when the plugin is destroyed', async () => {
+ setModelData( editor.model, `<paragraph>[<${ INLINE } equation="x^2" type="script" display="false"></${ INLINE }>]</paragraph>` );
+ ui._showUI();
+
+ expect( previewElement() ).not.toBeNull();
+
+ await editor.destroy();
+
+ expect( previewElement() ).toBeNull();
+ } );
+ } );
+} );
diff --git a/packages/ckeditor5-math/tests/mathview.ts b/packages/ckeditor5/src/plugins/math/math_view.spec.ts
similarity index 92%
rename from packages/ckeditor5-math/tests/mathview.ts
rename to packages/ckeditor5/src/plugins/math/math_view.spec.ts
index e8186295ad..e19f852a22 100644
--- a/packages/ckeditor5-math/tests/mathview.ts
+++ b/packages/ckeditor5/src/plugins/math/math_view.spec.ts
@@ -1,8 +1,11 @@
+// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
+import './math.js';
+
import katex from 'katex';
import { Locale } from 'ckeditor5';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
-import MathView, { type MathViewOptions } from '../src/ui/mathview.js';
+import MathView, { type MathViewOptions } from './math_view.js';
describe( 'MathView', () => {
let view: MathView;
diff --git a/packages/ckeditor5-math/src/ui/mathview.ts b/packages/ckeditor5/src/plugins/math/math_view.ts
similarity index 92%
rename from packages/ckeditor5-math/src/ui/mathview.ts
rename to packages/ckeditor5/src/plugins/math/math_view.ts
index cfe753c65f..ee2ac02f1f 100644
--- a/packages/ckeditor5-math/src/ui/mathview.ts
+++ b/packages/ckeditor5/src/plugins/math/math_view.ts
@@ -1,6 +1,6 @@
import { View, type Locale } from 'ckeditor5';
-import type { KatexOptions } from '../typings-external.js';
-import { renderEquation } from '../utils.js';
+import type { KatexOptions } from './typings_external.js';
+import { renderEquation } from './utils.js';
/**
* Configuration options for the MathView.
@@ -41,6 +41,7 @@ export default class MathView extends View {
// Update rendering when state changes.
// Checking isRendered prevents errors during initialization.
this.on( 'change', () => {
+ /* v8 ignore next -- the view is always rendered before it is handed a value */
if ( this.isRendered ) {
this.updateMath();
}
diff --git a/packages/ckeditor5-math/tests/render-equation.ts b/packages/ckeditor5/src/plugins/math/render_equation.spec.ts
similarity index 97%
rename from packages/ckeditor5-math/tests/render-equation.ts
rename to packages/ckeditor5/src/plugins/math/render_equation.spec.ts
index 7d28c6ba35..04798c578b 100644
--- a/packages/ckeditor5-math/tests/render-equation.ts
+++ b/packages/ckeditor5/src/plugins/math/render_equation.spec.ts
@@ -1,8 +1,11 @@
+// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
+import './math.js';
+
import katex from 'katex';
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
-import type { MathJax2, MathJax3 } from '../src/typings-external.js';
-import { renderEquation } from '../src/utils.js';
+import type { MathJax2, MathJax3 } from './typings_external.js';
+import { renderEquation } from './utils.js';
/**
* `renderEquation` reads its engines off the globals (`window.katex`, `MathJax`) and caches the
diff --git a/packages/ckeditor5-math/tests/utils.ts b/packages/ckeditor5/src/plugins/math/render_equation_katex.spec.ts
similarity index 93%
rename from packages/ckeditor5-math/tests/utils.ts
rename to packages/ckeditor5/src/plugins/math/render_equation_katex.spec.ts
index 449c47dd87..36366722e7 100644
--- a/packages/ckeditor5-math/tests/utils.ts
+++ b/packages/ckeditor5/src/plugins/math/render_equation_katex.spec.ts
@@ -1,5 +1,8 @@
+// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
+import './math.js';
+
import katex from 'katex';
-import { renderEquation } from '../src/utils.js';
+import { renderEquation } from './utils.js';
import { describe, beforeEach, afterEach, it, expect } from "vitest";
describe( 'renderEquation (KaTeX)', () => {
diff --git a/packages/ckeditor5-math/src/typings-external.ts b/packages/ckeditor5/src/plugins/math/typings_external.ts
similarity index 100%
rename from packages/ckeditor5-math/src/typings-external.ts
rename to packages/ckeditor5/src/plugins/math/typings_external.ts
diff --git a/packages/ckeditor5-math/tests/utils-pure.ts b/packages/ckeditor5/src/plugins/math/utils.spec.ts
similarity index 94%
rename from packages/ckeditor5-math/tests/utils-pure.ts
rename to packages/ckeditor5/src/plugins/math/utils.spec.ts
index f0a17de0f9..508a84859a 100644
--- a/packages/ckeditor5-math/tests/utils-pure.ts
+++ b/packages/ckeditor5/src/plugins/math/utils.spec.ts
@@ -1,3 +1,6 @@
+// Side-effect import: declares the `math` key on EditorConfig used by the editor configs below.
+import './math.js';
+
import { describe, expect, it } from 'vitest';
import {
@@ -5,7 +8,7 @@ import {
hasDelimiters,
isMathJaxVersion2,
isMathJaxVersion3
-} from '../src/utils.js';
+} from './utils.js';
describe( 'utils: delimiter helpers', () => {
describe( 'hasDelimiters', () => {
diff --git a/packages/ckeditor5-math/src/utils.ts b/packages/ckeditor5/src/plugins/math/utils.ts
similarity index 99%
rename from packages/ckeditor5-math/src/utils.ts
rename to packages/ckeditor5/src/plugins/math/utils.ts
index b0734cb6e0..f37e079e49 100644
--- a/packages/ckeditor5-math/src/utils.ts
+++ b/packages/ckeditor5/src/plugins/math/utils.ts
@@ -1,6 +1,6 @@
import type { Editor, ModelElement, ModelDocumentSelection, PositioningFunction } from 'ckeditor5';
import { BalloonPanelView, CKEditorError } from 'ckeditor5';
-import type { KatexOptions, MathJax2, MathJax3 } from './typings-external.js';
+import type { KatexOptions, MathJax2, MathJax3 } from './typings_external.js';
export function getSelectedMathModelWidget(
selection: ModelDocumentSelection
diff --git a/packages/ckeditor5-math/theme/mathform.css b/packages/ckeditor5/src/theme/math_form.css
similarity index 100%
rename from packages/ckeditor5-math/theme/mathform.css
rename to packages/ckeditor5/src/theme/math_form.css
diff --git a/packages/ckeditor5/tsconfig.json b/packages/ckeditor5/tsconfig.json
index 33f044cd30..c23e61c800 100644
--- a/packages/ckeditor5/tsconfig.json
+++ b/packages/ckeditor5/tsconfig.json
@@ -3,9 +3,6 @@
"files": [],
"include": [],
"references": [
- {
- "path": "../ckeditor5-math"
- },
{
"path": "./tsconfig.lib.json"
}
diff --git a/packages/ckeditor5/tsconfig.lib.json b/packages/ckeditor5/tsconfig.lib.json
index 601b539277..7b76018da9 100644
--- a/packages/ckeditor5/tsconfig.lib.json
+++ b/packages/ckeditor5/tsconfig.lib.json
@@ -21,8 +21,5 @@
"src/**/*.spec.ts"
],
"references": [
- {
- "path": "../ckeditor5-math"
- }
]
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index be51f136dd..73e417ef30 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -1094,9 +1094,9 @@ importers:
packages/ckeditor5:
dependencies:
- '@triliumnext/ckeditor5-math':
- specifier: workspace:*
- version: link:../ckeditor5-math
+ '@ckeditor/ckeditor5-icons':
+ specifier: 48.3.1
+ version: 48.3.1
'@triliumnext/commons':
specifier: workspace:*
version: link:../commons
@@ -1106,53 +1106,13 @@ importers:
ckeditor5:
specifier: 48.3.1
version: 48.3.1([email protected])
- devDependencies:
- '@vitest/browser':
- specifier: 4.1.10
- vitest:
- specifier: 4.1.10
- webdriverio:
- specifier: 9.30.0
- version: 9.30.0([email protected])
-
- packages/ckeditor5-math:
- dependencies:
- '@ckeditor/ckeditor5-icons':
- specifier: 48.3.1
- version: 48.3.1
mathlive:
specifier: 0.110.0
version: 0.110.0
devDependencies:
- '@ckeditor/ckeditor5-inspector':
- specifier: '>=4.1.0'
- version: 5.0.3
'@vitest/browser':
specifier: 4.1.10
- ckeditor5:
- specifier: 48.3.1
- version: 48.3.1([email protected])
- eslint:
- specifier: 10.8.0
- eslint-config-ckeditor5:
- specifier: '>=9.1.0'
- stylelint:
- specifier: 17.14.1
- stylelint-config-ckeditor5:
- specifier: '>=9.1.0'
- typescript:
- specifier: 6.0.3
- version: 6.0.3
- vite-plugin-svgo:
- specifier: 2.0.0
vitest:
specifier: 4.1.10
@@ -2154,12 +2114,6 @@ packages:
'@csstools/css-parser-algorithms': ^4.0.0
'@csstools/css-tokenizer': ^4.0.0
- '@csstools/[email protected]':
- resolution: {integrity: sha512-DaDeUkXZKjdGhgYaHNJTV9pV7Y9B3b644jCLs9Upc3VeNGg6LWARAT6O+Q+/COo+2gg/bM5rhpMAtf70WqfBdQ==}
- engines: {node: '>=18'}
- peerDependencies:
- '@csstools/css-tokenizer': ^3.0.4
-
'@csstools/[email protected]':
resolution: {integrity: sha512-+B87qS7fIG3L5h3qwJ/IFbjoVoOe/bpOdh9hAjXbvx0o8ImEmUsGXN0inFOnk2ChCFgqkkGFQ+TpM5rbhkKe4w==}
engines: {node: '>=20.19.0'}
@@ -2174,21 +2128,10 @@ packages:
css-tree:
optional: true
- '@csstools/[email protected]':
- resolution: {integrity: sha512-Vd/9EVDiu6PPJt9yAh6roZP6El1xHrdvIVGjyBsHR0RYwNHgL7FJPyIIW4fANJNG6FtyZfvlRPpFI4ZM/lubvw==}
- engines: {node: '>=18'}
-
'@csstools/[email protected]':
resolution: {integrity: sha512-QxULHAm7cNu72w97JUNCBFODFaXpbDg+dP8b/oWFAZ2MTRppA3U00Y2L1HqaS4J6yBqxwa/Y3nMBaxVKbB/NsA==}
engines: {node: '>=20.19.0'}
- '@csstools/[email protected]':
- resolution: {integrity: sha512-HNo8gGD02kHmcbX6PvCoUuOQvn4szyB9ca63vZHKX5A81QytgDG4oxG4IaEfHTlEZSZ6MjPEMWIVU+zF2PZcgw==}
- engines: {node: '>=18'}
- peerDependencies:
- '@csstools/css-parser-algorithms': ^3.0.1
- '@csstools/css-tokenizer': ^3.0.1
-
'@csstools/[email protected]':
resolution: {integrity: sha512-T9lXmZOfnam3eMERPsszjY5NK0jX8RmThmmm99FZ8b7z8yMaFZWKwLWGZuTwdO3ddRY5fy13GmmEYZXB4I98Eg==}
engines: {node: '>=20.19.0'}
@@ -2380,10 +2323,6 @@ packages:
'@epic-web/[email protected]':
resolution: {integrity: sha512-lrTPqgvfFQtR/eY/qkIzp98OGdNJu0m5ji3q/nJI8v3SXkRKEnWiOxMmbvcSoAIzv/cGiuvRy57k4suKQSAdwA==}
- '@es-joy/[email protected]':
- resolution: {integrity: sha512-YAdE/IJSpwbOTiaURNCKECdAwqrJuFiZhylmesBcIRawtYKnBR2wxPhoIewMg+Yu+QuYvHfJNReWpoxGBKOChA==}
- engines: {node: '>=18'}
-
'@esbuild/[email protected]':
resolution: {integrity: sha512-lhRUCeuOyJQURhTxl4WkpFTjIsbDayJHih5kZC1giwE+MhIzAb7mEsQMqMf18rHLsrb5qI1tafG20mLxEWcWlA==}
engines: {node: '>=18'}
@@ -2714,51 +2653,18 @@ packages:
resolution: {integrity: sha512-DObd/KKUsU+FaFv4PLxSRenpXfQWmPXXP3pPZ6/K1PCrMu2vQpMDMuQe/BqYeoLcz8ro0bVDF1RxOJgfVEdhUw==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-qIbV0/JZr7iSDjqAc60IqbLdsj9GDt16xQtWD+B78d/HAlvysGdZZ6rpJHGAc2T0FQx1X6thsSPdnoiGKdNtdg==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
-
- '@eslint/[email protected]':
- resolution: {integrity: sha512-78Md3/Rrxh83gCxoUc0EiciuOHsIITzLy53m3d9UyiW8y9Dj2D29FeETqyKA+BRK76tnTp6RXWb3pCay8Oyomg==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
-
'@eslint/[email protected]':
resolution: {integrity: sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-iPmijIAq4hlIJB86PYmY/fcZORHtjphSqICDbwuw32A/JmkhZQ/K/6TjHE03zqf3n5yABpVcbRAMG8Mi9ojy8g==}
- engines: {node: ^20.19.0 || ^22.13.0 || >=24}
-
- '@eslint/[email protected]':
- resolution: {integrity: sha512-OnRNKgnbX+tufPuZc2kOJS+v1iIARvfJHRNEAVwN77DBpojl+rGjEP8NKTL6pEZ7BR+HtwIuSSdrymEFlANGxg==}
- engines: {node: ^20.19.0 || ^22.13.0 || >=24}
-
- '@eslint/[email protected]':
- resolution: {integrity: sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==}
- engines: {node: ^20.19.0 || ^22.13.0 || >=24}
- peerDependencies:
- eslint: ^10.0.0
- peerDependenciesMeta:
- eslint:
- optional: true
-
'@eslint/[email protected]':
resolution: {integrity: sha512-nE7DEIchvtiFTwBw4Lfbu59PG+kCofhjsKaCWzxTpt4lfRjRMqG6uMBzKXuEcyXhOHoUp9riAm7/aWYGhXZ9cw==}
engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-IsWPy2jU3gaQDlioDC4sT4I4kG1hX1OMWs/q2sWwJrPoMASHW/Z4SDw+6Aql6EsHejGbagYuJbFq9Zvx+Y1b1Q==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
-
'@eslint/[email protected]':
resolution: {integrity: sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
- '@eslint/[email protected]':
- resolution: {integrity: sha512-Z5kJ+wU3oA7MMIqVR9tyZRtjYPr4OC004Q4Rw7pgOKUOKkJfZ3O24nz3WYfGRpMDNmcOi3TwQOmgm7B7Tpii0w==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
-
'@eslint/[email protected]':
resolution: {integrity: sha512-+CNAzxglkrpNf/kKywqQfk74QjtceuOE7Qm+AF8miRvPF/wmmK5+OJOgVh3AVTT3RP2mH3+FOaxlE5v72owk0A==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
@@ -4890,18 +4796,6 @@ packages:
'@standard-schema/[email protected]':
resolution: {integrity: sha512-l2aFy5jALhniG5HgqrD6jXLi/rUWrKvqN/qJx6yoJsgKhblVd+iqqU4RCXavm/jPityDo5TCvKMnpjKnOriy0w==}
- '@stylistic/[email protected]':
- resolution: {integrity: sha512-CEigAk7eOLyHvdgmpZsKFwtiqS2wFwI1fn4j09IU9GmD4euFM4jEBAViWeCqaNLlbX2k2+A/Fq9cje4HQBXuJQ==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
- peerDependencies:
- eslint: '>=9.0.0'
-
- '@stylistic/[email protected]':
- resolution: {integrity: sha512-85fsmzgsIVmyG3/GFrjuYj6Cz8rAM7IZiPiXCMiSMfoDOC1lOrzrXPDk24WqviAghnPqGpx8b0caK2PuewWGFg==}
- engines: {node: ^18.12 || >=20.9}
- peerDependencies:
- stylelint: ^16.8.0
-
'@szmarczak/[email protected]':
resolution: {integrity: sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==}
engines: {node: '>=10'}
@@ -6960,10 +6854,6 @@ packages:
resolution: {integrity: sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==}
engines: {node: ^12.20.0 || >=14}
- resolution: {integrity: sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==}
- engines: {node: '>= 12.0.0'}
-
resolution: {integrity: sha512-pJDh5/4wrEnXX/VWRZvruAGHkzKdr46z11OlTPN+VrATlWWhSKewNCJ1futCO5C7eJB3nPMFZA1LeYtcFboZ2A==}
engines: {node: '>=0.10.0'}
@@ -7809,33 +7699,17 @@ packages:
engines: {node: '>=6.0'}
hasBin: true
- resolution: {integrity: sha512-LCngFCHjuCmLOOze1BicUieFCbnIFnlnuiQvfjma4Qs0LfnClosWbsfhxjCLuHcgBgvGjU7whf1v80VGShVbKg==}
- engines: {node: '>=24.11.0'}
- peerDependencies:
- eslint: ^10.0.0
- typescript: ^5.5.4
-
resolution: {integrity: sha512-TFj70lEE7y3R9DQAFJ/clRfVmyaXdwE3q56gA9zm+iTmlpYjtZKtV1jv/jtgdF2LqgvJjlGlGE1rHVwE9yNdkg==}
peerDependencies:
eslint: ^8.57.1 || ^9.0.0
- resolution: {integrity: sha512-nbDuphrXCh3rhb0FLZfPZaB9DaJ3mYoZcxT91vqx9+Uvsw3glmRwgIiIgh4k4dsshm77XDhZu8rjVpqP/lAkYg==}
- engines: {node: '>=24.11.0'}
-
resolution: {integrity: sha512-gLKqUH+lQcCL+HzsROUjBDvakc5Zaga51Y4ZAkPCXc41pzKBfyluqTr2j8zOx8QQQb7zyglu1LVoL5aSNWf2SQ==}
engines: {node: '>=18.x'}
peerDependencies:
eslint: ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0
- resolution: {integrity: sha512-anENwrIwmdvunmmssjMn5a4nTd+mYMkqBlwjksxOECcIThLNhefWJIiTWY7pY/arMQFjNwHQjVOZb6pQ9PrLjg==}
- peerDependencies:
- eslint: '>=9.0.0'
-
resolution: {integrity: sha512-zOIEYyv1TSn2izXkyg/yj0LXc4YBQI6pl3xIFWwMCcXt/dgQCz8dBqXiXFMoM3xc/GqZThAtaGYo8aPu/vBd+Q==}
engines: {node: '>=16.9.0'}
@@ -7875,10 +7749,6 @@ packages:
resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==}
engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0}
- resolution: {integrity: sha512-Uhdk5sfqcee/9H/rCOJikYz67o0a2Tw2hGRPOG2Y1R2dg7brRe1uG0yaNQDHu+TO/uQPF/5eCapvYSmHUjt7JQ==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
-
resolution: {integrity: sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
@@ -7893,10 +7763,6 @@ packages:
jiti:
optional: true
- resolution: {integrity: sha512-j6PAQ2uUr79PZhBjP5C5fhl8e39FmRnOjsD5lGnWrFU8i2G776tBK7+nP8KuQUTTyAZUwfQqXAgrVH5MbH9CYQ==}
- engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0}
-
resolution: {integrity: sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==}
engines: {node: ^20.19.0 || ^22.13.0 || >=24}
@@ -8082,9 +7948,6 @@ packages:
resolution: {integrity: sha512-GGToxJ/w1x32s/D2EKND7kTil4n8OVk/9mycTc4VDza13lOvpUZTGX3mFSCtV9ksdGBVzvsyAVLM6mHFThxXxw==}
- resolution: {integrity: sha512-WtySTkS4OKev5JtpHXnib4Gxiurzh5NCGvWrFaZ34m6JehfTUhKZvn9njTfw48t6JumVQOmrKqpmGcdwxnhqBQ==}
-
resolution: {integrity: sha512-cE1qsB/VwyQozZ+q1dGxR8LBYNZeofhEdUNGSMbQD3Gw2lAzX9Zb3uIU6Ebc/Fmyjo9AWWfnn0AUCHqtevs/8g==}
@@ -8196,10 +8059,6 @@ packages:
resolution: {integrity: sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==}
engines: {node: '>= 6'}
- resolution: {integrity: sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==}
- engines: {node: '>=0.4.x'}
-
resolution: {integrity: sha512-8e1++BCiTzUno9v5IZ2J6bv4RU+3UKDmqWUQD0MIMVCd9AdhWkO1gw57oo1mNEX1dMq2EGI+FbWz4B92pscSQg==}
engines: {node: '>= 18'}
@@ -8392,9 +8251,6 @@ packages:
resolution: {integrity: sha512-GvHTWcykIR/fP8cj8dMpuMMkvaeJfPvYnhq0oW+chSeIr+ldX21ifU2Ms6KBoyKZQZmVaUAAhQ2EZ68KJF8a7A==}
hasBin: true
- resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==}
-
resolution: {integrity: sha512-latSnyDNt/8zYUB6VIJ6PCh2jBjJX6gnDsoCZ7LyW7GkqrD51EWwa9qCoGixj8YqBtETQK/xY7OmpTF8xz1DdQ==}
@@ -9184,10 +9040,6 @@ packages:
resolution: {integrity: sha512-dayzUzKkJ1MkuUtZglSebU43utNXH0OWQByK9rKOOuYIO8M5TV1y+n8ALMdG0rdzBnfNkOmZEqrURepb0ejqBw==}
hasBin: true
- resolution: {integrity: sha512-Hicd6JK5Njt2QB6XYFS7ok9e37O8AYk3jTcppG4YVQnYjOemymvTcmc7OWsmq/Qqj5TdRFO5/x/tIPmBeRtGHg==}
- engines: {node: '>=12.0.0'}
-
resolution: {integrity: sha512-JQHfRGmmKmaZoUAvIgff5jjG/0SzTQlGz8c7t72KzBzo8ZULEjAjnYE0sNwBOUA4QtWwYE2xoYitg8NFsmiYxA==}
engines: {node: ^22.22.2 || ^24.15.0 || >=26.0.0}
@@ -9682,9 +9534,6 @@ packages:
resolution: {integrity: sha512-W4mAWTvSlKvf8L6J+VN9yLSqQ9AOAAvHuoDAmPkz4dHf553m5gVj2ejadHJhoJmcmxEnOv6Pa8XJhpxE93kb8Q==}
- resolution: {integrity: sha512-LRqI9+wdgC25P0URIJY9vwocIzCcksduHQ9OF2joxQoyTNVduwLAFUzjoopuRJbJAReaKrNQKAZKL3uCMugWJA==}
-
resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==}
@@ -9724,9 +9573,6 @@ packages:
resolution: {integrity: sha512-9Yubnt3e8A0OKwxYSXyhLymGW4sCufcLG6VdiDdUGVkPhpqLxlvP5vl1983gQjJl3tqbrM731mjaZaP68AgosQ==}
- resolution: {integrity: sha512-pVxQFCcaYUEAH853+v7yoI/qzhxXSq1bTb9obMYGYAN1c3Hen+XDCEvr296XhstrwlSTNgOR7mCSD4JPjbJe5A==}
-
resolution: {integrity: sha512-Lf+9+2r+Tdp5wXDXC4PcIBjTDtq4UKjCPMQhKIuzpJNW0b96kVqSwW0bT7FhRSfmAiFYgP+SCRvdrDozfh0U5w==}
@@ -9770,9 +9616,6 @@ packages:
resolution: {integrity: sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==}
- resolution: {integrity: sha512-C4AkuM3dA58cgZha7zVnuVxBhDsbttIMiytjgsM2XbHAB2faRVaHRle40558FBN+DJcrLNCoqG5mlrpdU4cRtg==}
-
resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==}
@@ -10575,10 +10418,6 @@ packages:
peerDependencies:
postcss: ^8.4.31
- resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==}
- engines: {node: '>=4'}
-
resolution: {integrity: sha512-HeP7D2wyhkR+XaK6v4W8oRF62Dsz4flyuczALJp61GckGm42u1saSSJ/0auvcBqxs3jMRFEcPK34At/0JBKdOg==}
engines: {node: '>=4'}
@@ -11012,10 +10851,6 @@ packages:
resolution: {integrity: sha512-kI5ffTiZWmJaS/huM8wZfEMer1eRd7oJQhDuxeCLe3t7N7mX3z94CN0xPxBQxFYQTSNz9T0i+v6inKqSdK8xrQ==}
- resolution: {integrity: sha512-OcXjMsGdhL4XnbShKpAcSqPMzQoYkYyhbEaeSko47MjRP9NfEQMhZkXL1DoFlt9LWQn4YttrdnV6X2OiyzBi+A==}
- engines: {node: '>=10'}
-
resolution: {integrity: sha512-TyeJ1zif53BPfHootBGwPRYT1RUt6oGWsaQr8UyZW/eAm9bKoijtvruSDEmZHm92CwS9nj7/fWttqPCgzep8CA==}
engines: {node: '>= 0.4'}
@@ -11552,27 +11387,6 @@ packages:
resolution: {integrity: sha512-i/n8VsZydrugj3Iuzll8+x/00GH2vnYsk1eomD8QiRrSAeW6ItbCQDtfXCeJHd0iwiNagqjQkvpvREEPtW3IoQ==}
- resolution: {integrity: sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg==}
-
- resolution: {integrity: sha512-3PCYpS/W5BEB3/G1uuyaK1TbpSgFcoeO/RNS801nDeswwhkUZwrzkfa3ToFdMWQ7jzKX0DVSg/vF0e068GTKTA==}
- engines: {node: '>=24.11.0'}
- peerDependencies:
- stylelint: '>=16.0.0'
-
- resolution: {integrity: sha512-4RSmPjQegF34wNcK1e1O3Uz91HN8P1aFdFzio90wNK9mjgAI19u5vsU868cVZboKzCaa5XbpvtTzAAGQAxpcXA==}
- engines: {node: '>=18.12.0'}
- peerDependencies:
- stylelint: ^16.16.0
-
- resolution: {integrity: sha512-mdSmNva8QgzUiFKCUOH2Ra5mcT+c5tZgB0jTUoheZVKzEWOfrJzgPYbRl5SxB0OdAFNgjSGjahdEnsDR7Lcvvw==}
- engines: {node: '>=24.11.0'}
- peerDependencies:
- stylelint: '>=16.0.0'
-
resolution: {integrity: sha512-xVQwyiuxALUBNB2fBe0tmNemg9KqLtdj3T64mioFDar79B2cU8LIyz+3KL6LdiHs9NkeNfwxpKSaIVOY8f112g==}
engines: {node: '>=20.19.0'}
@@ -11628,11 +11442,6 @@ packages:
resolution: {integrity: sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA==}
- resolution: {integrity: sha512-XDpWUOPC6FEibaLzjfe0ucaV0YrOjYotGJO1WpF0Zd+n6ZGEQUsSugaoLq9QkEZtAfQIxT42UChcssDVPP3+/w==}
- engines: {node: '>=16'}
- hasBin: true
-
resolution: {integrity: sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==}
@@ -12144,10 +11953,6 @@ packages:
resolution: {integrity: sha512-ti4wZj+0bQTiX2KmKWuwj7lhV+2n//uXEotUmGuQqrbVZSEGFMbI68+c6JCQ8aAmUWYvtHEz2A8K6wXvueR/6g==}
- resolution: {integrity: sha512-1uEe95xksV1O0CYKXo8vQvN1JEbtJp7lb7C5U9HMsIp6IVwntkH/oNUzyVNQSd4S1sYk2FpSSW44FqMc8qee5w==}
- engines: {node: '>=4'}
-
resolution: {integrity: sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==}
hasBin: true
@@ -12223,10 +12028,6 @@ packages:
resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==}
- resolution: {integrity: sha512-IUoow1YUtvoBBC06dXs8bR8B9vuA3aJfmQNKMoaPG/OFsPmoQvw8xh+6Ye25Gx9DQhoEom3Pcu9MKHerm/NpUQ==}
- engines: {node: ^18.17.0 || >=20.5.0}
-
resolution: {integrity: sha512-NOJ6JZCAWr0zlxZt+xqCHNTEKOsrks2HQd4MqhP1qy4z1SkbEP467eNx6TgDKXMvUOb+OENfJCZwM+16n7fRfw==}
@@ -12249,12 +12050,6 @@ packages:
peerDependencies:
vite: '>=7.3.2'
- resolution: {integrity: sha512-WaiOUlmt1fKw1w/WWJnx9gVk42D1BASKZmGCPpy6iTLE5iIemN2lim3MwI7Rffyt3aQnPrLfLSLnI8ZUJ9s49g==}
- peerDependencies:
- typescript: '>=4.9.4'
- vite: '>=7.3.2'
-
resolution: {integrity: sha512-IKSpYkzDBsKAxa05naRbj7GvNVMSdww/Z/E89oO3xndz+gWnOBOKOAbEXv7qDhktY/j3vHgJmoV1pPzqU2tx9g==}
peerDependencies:
@@ -13901,10 +13696,6 @@ snapshots:
'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])
'@csstools/css-tokenizer': 4.0.0
- '@csstools/[email protected](@csstools/[email protected])':
- dependencies:
- '@csstools/css-tokenizer': 3.0.4
-
'@csstools/[email protected](@csstools/[email protected])':
dependencies:
'@csstools/css-tokenizer': 4.0.0
@@ -13913,15 +13704,8 @@ snapshots:
optionalDependencies:
css-tree: 3.2.1
- '@csstools/[email protected]': {}
-
'@csstools/[email protected]': {}
- '@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':
- dependencies:
- '@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])
- '@csstools/css-tokenizer': 3.0.4
-
'@csstools/[email protected](@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])':
dependencies:
'@csstools/css-parser-algorithms': 4.0.0(@csstools/[email protected])
@@ -14402,14 +14186,6 @@ snapshots:
'@epic-web/[email protected]': {}
- '@es-joy/[email protected]':
- dependencies:
- '@types/estree': 1.0.9
- '@typescript-eslint/types': 8.65.0
- comment-parser: 1.4.1
- esquery: 1.7.0
- jsdoc-type-pratt-parser: 4.1.0
-
'@esbuild/[email protected]':
optional: true
@@ -14585,55 +14361,14 @@ snapshots:
dependencies:
'@eslint/core': 1.2.1
- '@eslint/[email protected]':
- dependencies:
- '@types/json-schema': 7.0.15
-
- '@eslint/[email protected]':
- dependencies:
- '@types/json-schema': 7.0.15
-
'@eslint/[email protected]':
dependencies:
'@types/json-schema': 7.0.15
- '@eslint/[email protected]':
- dependencies:
- mdn-data: 2.29.0
- source-map-js: 1.2.1
-
- '@eslint/[email protected]':
- dependencies:
- '@eslint/core': 1.2.1
- '@eslint/css-tree': 4.0.5
- '@eslint/plugin-kit': 0.7.2
-
- optionalDependencies:
-
'@eslint/[email protected]': {}
- dependencies:
- '@eslint/core': 0.14.0
- '@eslint/plugin-kit': 0.3.5
- github-slugger: 2.0.0
- mdast-util-from-markdown: 2.0.3([email protected])
- mdast-util-frontmatter: 2.0.1([email protected])
- mdast-util-gfm: 3.1.0([email protected])
- micromark-extension-frontmatter: 2.0.0
- micromark-extension-gfm: 3.0.0
- transitivePeerDependencies:
- - supports-color
-
'@eslint/[email protected]': {}
- '@eslint/[email protected]':
- dependencies:
- '@eslint/core': 0.15.2
- levn: 0.4.1
-
'@eslint/[email protected]':
dependencies:
'@eslint/core': 1.2.1
@@ -16754,30 +16489,6 @@ snapshots:
'@standard-schema/[email protected]': {}
- dependencies:
- eslint-visitor-keys: 4.2.1
- espree: 10.4.0
- estraverse: 5.3.0
- picomatch: 4.0.5
- transitivePeerDependencies:
- - supports-color
- - typescript
-
- dependencies:
- '@csstools/css-parser-algorithms': 3.0.5(@csstools/[email protected])
- '@csstools/css-tokenizer': 3.0.4
- '@csstools/media-query-list-parser': 3.0.1(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
- is-plain-object: 5.0.0
- postcss: 8.5.20
- postcss-selector-parser: 6.1.2
- postcss-value-parser: 4.2.0
- style-search: 0.1.0
- stylelint: 17.14.1([email protected])([email protected])
-
'@szmarczak/[email protected]':
dependencies:
defer-to-connect: 2.0.1
@@ -20039,8 +19750,6 @@ snapshots:
-
@@ -20229,6 +19938,7 @@ snapshots:
dependencies:
mdn-data: 2.0.28
source-map-js: 1.2.1
+ optional: true
dependencies:
@@ -20244,6 +19954,7 @@ snapshots:
dependencies:
css-tree: 2.2.1
+ optional: true
@@ -21073,21 +20784,6 @@ snapshots:
optionalDependencies:
source-map: 0.6.1
- dependencies:
- '@eslint/css': 1.4.0
- '@eslint/markdown': 6.6.0([email protected])
- eslint-plugin-ckeditor5-rules: 19.0.0
- globals: 16.5.0
- typescript: 6.0.3
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@babel/core': 7.29.0([email protected])
@@ -21103,16 +20799,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@es-joy/jsdoccomment': 0.50.2
- '@eslint/css-tree': 4.0.5
- enhanced-resolve: 5.24.3
- resolve.exports: 2.0.3
- upath: 2.0.1
- validate-npm-package-name: 6.0.2
- yaml: 2.9.0
-
dependencies:
'@mdn/browser-compat-data': 6.1.5
@@ -21124,12 +20810,6 @@ snapshots:
lodash.memoize: 4.1.2
semver: 7.8.0
- dependencies:
- '@eslint-community/eslint-utils': 4.10.1([email protected]([email protected])([email protected]))
- globals: 15.15.0
-
dependencies:
@@ -21181,8 +20861,6 @@ snapshots:
-
@@ -21222,12 +20900,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- acorn: 8.17.0
- acorn-jsx: 5.3.2([email protected])
- eslint-visitor-keys: 4.2.1
-
dependencies:
acorn: 8.17.0
@@ -21463,10 +21135,6 @@ snapshots:
dependencies:
reusify: 1.1.0
- dependencies:
- format: 0.2.2
-
dependencies:
pend: 1.2.0
@@ -21612,8 +21280,6 @@ snapshots:
hasown: 2.0.3
mime-types: 2.1.35
-
@@ -21826,8 +21492,6 @@ snapshots:
-
@@ -22689,8 +22353,6 @@ snapshots:
dependencies:
argparse: 2.0.1
-
dependencies:
'@asamuzakjp/css-color': 6.0.5
@@ -23193,17 +22855,6 @@ snapshots:
transitivePeerDependencies:
- supports-color
- dependencies:
- '@types/mdast': 4.0.4
- devlop: 1.1.0
- escape-string-regexp: 5.0.0
- mdast-util-from-markdown: 2.0.3([email protected])
- mdast-util-to-markdown: 2.1.2
- micromark-extension-frontmatter: 2.0.0
- transitivePeerDependencies:
- - supports-color
-
dependencies:
'@types/mdast': 4.0.4
@@ -23299,12 +22950,11 @@ snapshots:
dependencies:
'@types/mdast': 4.0.4
+ optional: true
-
@@ -23372,13 +23022,6 @@ snapshots:
micromark-util-symbol: 2.0.1
micromark-util-types: 2.0.2
- dependencies:
- fault: 2.0.1
- micromark-util-character: 2.1.1
- micromark-util-symbol: 2.0.1
- micromark-util-types: 2.0.2
-
dependencies:
micromark-util-character: 2.1.1
@@ -24255,11 +23898,6 @@ snapshots:
dependencies:
postcss: 8.5.20
- dependencies:
- cssesc: 3.0.0
- util-deprecate: 1.0.2
-
dependencies:
cssesc: 3.0.0
@@ -24762,8 +24400,6 @@ snapshots:
dependencies:
protocol-buffers-schema: 3.6.1
-
dependencies:
es-errors: 1.3.0
@@ -25437,23 +25073,6 @@ snapshots:
-
- dependencies:
- '@stylistic/stylelint-plugin': 3.1.3([email protected]([email protected])([email protected]))
- stylelint: 17.14.1([email protected])([email protected])
- stylelint-config-recommended: 16.0.0([email protected]([email protected])([email protected]))
- stylelint-plugin-ckeditor5-rules: 15.1.0([email protected]([email protected])([email protected]))
-
- dependencies:
- stylelint: 17.14.1([email protected])([email protected])
-
- dependencies:
- stylelint: 17.14.1([email protected])([email protected])
-
dependencies:
'@csstools/css-calc': 3.2.1(@csstools/[email protected](@csstools/[email protected]))(@csstools/[email protected])
@@ -25560,16 +25179,6 @@ snapshots:
- dependencies:
- commander: 11.1.0
- css-select: 5.2.2
- css-tree: 3.2.1
- css-what: 6.2.2
- csso: 5.0.5
- picocolors: 1.1.1
- sax: 1.6.1
-
@@ -26094,8 +25703,6 @@ snapshots:
readable-stream: 2.3.8
setimmediate: 1.0.5
-
dependencies:
browserslist: 4.28.2
@@ -26165,8 +25772,6 @@ snapshots:
spdx-correct: 3.2.0
spdx-expression-parse: 3.0.1
-
@@ -26191,12 +25796,6 @@ snapshots:
tinyglobby: 0.2.17
- dependencies:
- svgo: 4.0.1
- typescript: 6.0.3
-
dependencies:
kolorist: 1.8.0
diff --git a/tsconfig.json b/tsconfig.json
index 100e17b2b8..33e5f8cbc5 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -45,9 +45,6 @@
{
"path": "./packages/ckeditor5"
},
- {
- "path": "./packages/ckeditor5-math"
- },
{
"path": "./packages/codemirror"
},