vue3-math-editor 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (73) hide show
  1. package/README.md +93 -0
  2. package/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  3. package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  4. package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  5. package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  6. package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  7. package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  8. package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  9. package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  10. package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  11. package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  12. package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  13. package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  14. package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  15. package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  16. package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  17. package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  18. package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  19. package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  20. package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  21. package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  22. package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  23. package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  24. package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  25. package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  26. package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  27. package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  28. package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  29. package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  30. package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  31. package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  32. package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  33. package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  34. package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  35. package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  36. package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  37. package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  38. package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  39. package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  40. package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  41. package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  42. package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  43. package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  44. package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  45. package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  46. package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  47. package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  48. package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  49. package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  50. package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  51. package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  52. package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  53. package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  54. package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  55. package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  56. package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  57. package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  58. package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  59. package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  60. package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  61. package/dist/assets/__vite-browser-external-DRLrqNA5.js +1 -0
  62. package/dist/assets/index--yUMU8pB.js +1685 -0
  63. package/dist/assets/index-C7cJKUIb.css +1 -0
  64. package/dist/assets/libcellml-D9ZPw9_t.wasm +0 -0
  65. package/dist/assets/primeicons-C6QP2o4f.woff2 +0 -0
  66. package/dist/assets/primeicons-DMOk5skT.eot +0 -0
  67. package/dist/assets/primeicons-Dr5RGzOO.svg +345 -0
  68. package/dist/assets/primeicons-MpK4pl85.ttf +0 -0
  69. package/dist/assets/primeicons-WjwUDZjB.woff +0 -0
  70. package/dist/assets/vue3-libcellml-4ponBlEP.js +8 -0
  71. package/dist/favicon.ico +0 -0
  72. package/dist/index.html +14 -0
  73. package/package.json +100 -0
package/README.md ADDED
@@ -0,0 +1,93 @@
1
+ # vue3-math-editor
2
+
3
+ A semantic equation editor for Vue 3: equations are edited WYSIWYG, rendered with KaTeX,
4
+ and exported as MathJSON, Content MathML (optionally ready for CellML 2.0) and LaTeX.
5
+
6
+ ## Documentation
7
+
8
+ See [docs/](docs/README.md):
9
+
10
+ - [Writing equations](docs/writing-equations.md): how to use the editor, and how input is
11
+ interpreted.
12
+ - [Equation editor design](docs/design.md): how it works inside.
13
+ - [Component interface](docs/component-interface.md): using the editor in an application,
14
+ and checking units with libCellML.
15
+
16
+ The demo (`yarn dev`) checks units with libCellML through the
17
+ [vue3-libcellml.js](https://github.com/hsorby/vue3-libcellml.js) plugin: load a CellML
18
+ units file (or press Example), give the variables units, and problems are underlined as
19
+ you type. Open it with `?nolibcellml` to run it without the plugin, and `?cellml` for
20
+ CellML-mode MathML.
21
+
22
+ ## Recommended IDE Setup
23
+
24
+ [VS Code](https://code.visualstudio.com/) + [Vue (Official)](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
25
+
26
+ ## Recommended Browser Setup
27
+
28
+ - Chromium-based browsers (Chrome, Edge, Brave, etc.):
29
+ - [Vue.js devtools](https://chromewebstore.google.com/detail/vuejs-devtools/nhdogjmejiglipccpnnnanhbledajbpd)
30
+ - [Turn on Custom Object Formatter in Chrome DevTools](http://bit.ly/object-formatters)
31
+ - Firefox:
32
+ - [Vue.js devtools](https://addons.mozilla.org/en-US/firefox/addon/vue-js-devtools/)
33
+ - [Turn on Custom Object Formatter in Firefox DevTools](https://fxdx.dev/firefox-devtools-custom-object-formatters/)
34
+
35
+ ## Customize configuration
36
+
37
+ See [Vite Configuration Reference](https://vite.dev/config/).
38
+
39
+ ## Using it in an application
40
+
41
+ ```sh
42
+ yarn add vue3-math-editor vue primevue katex primeicons
43
+ ```
44
+
45
+ ```ts
46
+ // main.ts: install PrimeVue with a theme, and import the styles
47
+ import 'katex/dist/katex.min.css'
48
+ import 'primeicons/primeicons.css'
49
+ import 'vue3-math-editor/style.css'
50
+ ```
51
+
52
+ ```vue
53
+ <script setup lang="ts">
54
+ import { EquationWorkbench, type EquationLine } from 'vue3-math-editor'
55
+ </script>
56
+ ```
57
+
58
+ See [Component interface](docs/component-interface.md) for the props, events and the
59
+ units checker.
60
+
61
+ ## Project Setup
62
+
63
+ ```sh
64
+ corepack enable # once: yarn comes from package.json's packageManager
65
+ yarn install
66
+ yarn playwright install chromium # once, for the browser tests
67
+ ```
68
+
69
+ ### Compile and Hot-Reload for Development
70
+
71
+ ```sh
72
+ yarn dev
73
+ ```
74
+
75
+ ### Build
76
+
77
+ ```sh
78
+ yarn build # the library, into dist/ (what is published to npm)
79
+ yarn build:demo # the demo application, into dist-demo/
80
+ ```
81
+
82
+ ### Run the Tests
83
+
84
+ ```sh
85
+ yarn test # unit tests (Vitest)
86
+ yarn test:e2e # browser tests (Playwright)
87
+ ```
88
+
89
+ ### Lint with [ESLint](https://eslint.org/)
90
+
91
+ ```sh
92
+ yarn lint
93
+ ```
@@ -0,0 +1 @@
1
+ import{t as e}from"./vue3-libcellml-4ponBlEP.js";var t=e(((e,t)=>{t.exports={}}));export default t();