@barocss/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.
- package/ADAPTERS.md +170 -0
- package/CHANGELOG.md +13 -0
- package/EMBEDDING.md +95 -0
- package/IMPLEMENTATION.md +111 -0
- package/LATEX-SCOPE.md +7 -0
- package/LICENSE +23 -0
- package/LOCALIZATION.md +97 -0
- package/README.md +151 -0
- package/RELEASING.md +31 -0
- package/ROADMAP.md +102 -0
- package/SUPPORT.md +160 -0
- package/SYMBOLS.md +96 -0
- package/VALIDATION.md +85 -0
- package/dist/core.d.ts +11 -0
- package/dist/core.d.ts.map +1 -0
- package/dist/core.js +11 -0
- package/dist/core.js.map +1 -0
- package/dist/dom/elements.d.ts +3 -0
- package/dist/dom/elements.d.ts.map +1 -0
- package/dist/dom/elements.js +9 -0
- package/dist/dom/elements.js.map +1 -0
- package/dist/dom/toolbar.d.ts +11 -0
- package/dist/dom/toolbar.d.ts.map +1 -0
- package/dist/dom/toolbar.js +46 -0
- package/dist/dom/toolbar.js.map +1 -0
- package/dist/dom.d.ts +32 -0
- package/dist/dom.d.ts.map +1 -0
- package/dist/dom.js +581 -0
- package/dist/dom.js.map +1 -0
- package/dist/editor-labels.d.ts +9 -0
- package/dist/editor-labels.d.ts.map +1 -0
- package/dist/editor-labels.js +31 -0
- package/dist/editor-labels.js.map +1 -0
- package/dist/enter-policy.d.ts +11 -0
- package/dist/enter-policy.d.ts.map +1 -0
- package/dist/enter-policy.js +13 -0
- package/dist/enter-policy.js.map +1 -0
- package/dist/i18n.d.ts +20 -0
- package/dist/i18n.d.ts.map +1 -0
- package/dist/i18n.js +58 -0
- package/dist/i18n.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/dist/lines.d.ts +7 -0
- package/dist/lines.d.ts.map +1 -0
- package/dist/lines.js +51 -0
- package/dist/lines.js.map +1 -0
- package/dist/locales/en.js +214 -0
- package/dist/locales/en.json +213 -0
- package/dist/locales/ko.js +214 -0
- package/dist/locales/ko.json +213 -0
- package/dist/math-editor-toolbar.d.ts +24 -0
- package/dist/math-editor-toolbar.d.ts.map +1 -0
- package/dist/math-editor-toolbar.js +21 -0
- package/dist/math-editor-toolbar.js.map +1 -0
- package/dist/math-editor.d.ts +23 -0
- package/dist/math-editor.d.ts.map +1 -0
- package/dist/math-editor.js +692 -0
- package/dist/math-editor.js.map +1 -0
- package/dist/matrix.d.ts +29 -0
- package/dist/matrix.d.ts.map +1 -0
- package/dist/matrix.js +125 -0
- package/dist/matrix.js.map +1 -0
- package/dist/model.d.ts +74 -0
- package/dist/model.d.ts.map +1 -0
- package/dist/model.js +262 -0
- package/dist/model.js.map +1 -0
- package/dist/outputs.d.ts +13 -0
- package/dist/outputs.d.ts.map +1 -0
- package/dist/outputs.js +61 -0
- package/dist/outputs.js.map +1 -0
- package/dist/range.d.ts +30 -0
- package/dist/range.d.ts.map +1 -0
- package/dist/range.js +275 -0
- package/dist/range.js.map +1 -0
- package/dist/react.d.ts +11 -0
- package/dist/react.d.ts.map +1 -0
- package/dist/react.js +20 -0
- package/dist/react.js.map +1 -0
- package/dist/session.d.ts +50 -0
- package/dist/session.d.ts.map +1 -0
- package/dist/session.js +116 -0
- package/dist/session.js.map +1 -0
- package/dist/solid.d.ts +12 -0
- package/dist/solid.d.ts.map +1 -0
- package/dist/solid.js +9 -0
- package/dist/solid.js.map +1 -0
- package/dist/suggestions.d.ts +27 -0
- package/dist/suggestions.d.ts.map +1 -0
- package/dist/suggestions.js +125 -0
- package/dist/suggestions.js.map +1 -0
- package/dist/svelte.d.ts +5 -0
- package/dist/svelte.d.ts.map +1 -0
- package/dist/svelte.js +14 -0
- package/dist/svelte.js.map +1 -0
- package/dist/symbol-browser.d.ts +8 -0
- package/dist/symbol-browser.d.ts.map +1 -0
- package/dist/symbol-browser.js +32 -0
- package/dist/symbol-browser.js.map +1 -0
- package/dist/symbols.d.ts +3 -0
- package/dist/symbols.d.ts.map +1 -0
- package/dist/symbols.js +94 -0
- package/dist/symbols.js.map +1 -0
- package/dist/templates.d.ts +16 -0
- package/dist/templates.d.ts.map +1 -0
- package/dist/templates.js +86 -0
- package/dist/templates.js.map +1 -0
- package/dist/tokens.d.ts +11 -0
- package/dist/tokens.d.ts.map +1 -0
- package/dist/tokens.js +24 -0
- package/dist/tokens.js.map +1 -0
- package/dist/vue.d.ts +5 -0
- package/dist/vue.d.ts.map +1 -0
- package/dist/vue.js +16 -0
- package/dist/vue.js.map +1 -0
- package/dist/web-component.d.ts +10 -0
- package/dist/web-component.d.ts.map +1 -0
- package/dist/web-component.js +67 -0
- package/dist/web-component.js.map +1 -0
- package/package.json +124 -0
- package/src/style.css +781 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue.d.ts","sourceRoot":"","sources":["../src/vue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,KAAK,CAAC;AAC3C,OAAO,EAAuC,KAAK,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAE1F,iEAAiE;AACjE,eAAO,MAAM,WAAW,EAAE,eAAe,CAAC,WAAW,EAAE,oBAAoB,CAW1E,CAAC"}
|
package/dist/vue.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { mountMathEditor } from './dom.js';
|
|
2
|
+
const instances = new WeakMap();
|
|
3
|
+
/** Use as v-math-editor. session/defaultValue are mount-only. */
|
|
4
|
+
export const vMathEditor = {
|
|
5
|
+
mounted(host, binding) {
|
|
6
|
+
instances.set(host, mountMathEditor(host, binding.value));
|
|
7
|
+
},
|
|
8
|
+
updated(host, binding) {
|
|
9
|
+
instances.get(host)?.update(binding.value);
|
|
10
|
+
},
|
|
11
|
+
unmounted(host) {
|
|
12
|
+
instances.get(host)?.destroy();
|
|
13
|
+
instances.delete(host);
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=vue.js.map
|
package/dist/vue.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vue.js","sourceRoot":"","sources":["../src/vue.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAiD,MAAM,UAAU,CAAC;AAC1F,MAAM,SAAS,GAAG,IAAI,OAAO,EAA8B,CAAC;AAC5D,iEAAiE;AACjE,MAAM,CAAC,MAAM,WAAW,GAAuD;IAC7E,OAAO,CAAC,IAAI,EAAE,OAAO;QACnB,SAAS,CAAC,GAAG,CAAC,IAAI,EAAE,eAAe,CAAC,IAAI,EAAE,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5D,CAAC;IACD,OAAO,CAAC,IAAI,EAAE,OAAO;QACnB,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;IAC7C,CAAC;IACD,SAAS,CAAC,IAAI;QACZ,SAAS,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,CAAC;QAC/B,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACzB,CAAC;CACF,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type MathSession } from './session.js';
|
|
2
|
+
import type { MathDocument } from './model.js';
|
|
3
|
+
export interface MathEditorElement extends HTMLElement {
|
|
4
|
+
readonly session: MathSession;
|
|
5
|
+
value: MathDocument;
|
|
6
|
+
focusEditor(): void;
|
|
7
|
+
}
|
|
8
|
+
/** Explicit registration; importing this module is safe without a browser. Uses light DOM. */
|
|
9
|
+
export declare function defineMathEditor(tagName?: string): CustomElementConstructor;
|
|
10
|
+
//# sourceMappingURL=web-component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-component.d.ts","sourceRoot":"","sources":["../src/web-component.ts"],"names":[],"mappings":"AACA,OAAO,EAAqB,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AACnE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,MAAM,WAAW,iBAAkB,SAAQ,WAAW;IACpD,QAAQ,CAAC,OAAO,EAAE,WAAW,CAAC;IAC9B,KAAK,EAAE,YAAY,CAAC;IACpB,WAAW,IAAI,IAAI,CAAC;CACrB;AACD,8FAA8F;AAC9F,wBAAgB,gBAAgB,CAAC,OAAO,SAAwB,GAAG,wBAAwB,CAwE1F"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { mountMathEditor } from './dom.js';
|
|
2
|
+
import { createMathSession } from './session.js';
|
|
3
|
+
/** Explicit registration; importing this module is safe without a browser. Uses light DOM. */
|
|
4
|
+
export function defineMathEditor(tagName = 'barocss-math-editor') {
|
|
5
|
+
const existing = customElements.get(tagName);
|
|
6
|
+
if (existing)
|
|
7
|
+
return existing;
|
|
8
|
+
class EditorElement extends HTMLElement {
|
|
9
|
+
static observedAttributes = ['locale', 'mode', 'toolbar', 'line-numbers', 'enter-behavior'];
|
|
10
|
+
session = createMathSession();
|
|
11
|
+
editor;
|
|
12
|
+
get value() {
|
|
13
|
+
return this.session.getSnapshot().state.document;
|
|
14
|
+
}
|
|
15
|
+
set value(document) {
|
|
16
|
+
this.session.load(document);
|
|
17
|
+
}
|
|
18
|
+
options() {
|
|
19
|
+
return {
|
|
20
|
+
locale: this.getAttribute('locale') ?? 'ko',
|
|
21
|
+
mode: this.getAttribute('mode') === 'inline' ? 'inline' : 'block',
|
|
22
|
+
toolbar: this.hasAttribute('toolbar')
|
|
23
|
+
? this.getAttribute('toolbar') !== 'false'
|
|
24
|
+
: this.getAttribute('mode') !== 'inline',
|
|
25
|
+
enterBehavior: this.getAttribute('enter-behavior') === 'commit' ? 'commit' : undefined,
|
|
26
|
+
onCancel: () => this.dispatchEvent(new CustomEvent('math-cancel', { bubbles: true, composed: true })),
|
|
27
|
+
onCommit: (snapshot) => this.dispatchEvent(new CustomEvent('math-commit', { detail: snapshot, bubbles: true, composed: true })),
|
|
28
|
+
showLineNumbers: this.getAttribute('line-numbers') !== 'false',
|
|
29
|
+
onChange: (document, latex) => this.dispatchEvent(new CustomEvent('math-change', {
|
|
30
|
+
detail: { document, latex },
|
|
31
|
+
bubbles: true,
|
|
32
|
+
composed: true,
|
|
33
|
+
})),
|
|
34
|
+
onExit: (direction) => this.dispatchEvent(new CustomEvent('math-exit', {
|
|
35
|
+
detail: { direction },
|
|
36
|
+
bubbles: true,
|
|
37
|
+
composed: true,
|
|
38
|
+
})),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
connectedCallback() {
|
|
42
|
+
// Upgrade a value assigned before customElements.define().
|
|
43
|
+
if (Object.prototype.hasOwnProperty.call(this, 'value')) {
|
|
44
|
+
const value = this.value;
|
|
45
|
+
delete this.value;
|
|
46
|
+
this.value = value;
|
|
47
|
+
}
|
|
48
|
+
this.editor = mountMathEditor(this, {
|
|
49
|
+
...this.options(),
|
|
50
|
+
session: this.session,
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
disconnectedCallback() {
|
|
54
|
+
this.editor?.destroy();
|
|
55
|
+
this.editor = undefined;
|
|
56
|
+
}
|
|
57
|
+
attributeChangedCallback() {
|
|
58
|
+
this.editor?.update(this.options());
|
|
59
|
+
}
|
|
60
|
+
focusEditor() {
|
|
61
|
+
this.editor?.focus();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
customElements.define(tagName, EditorElement);
|
|
65
|
+
return EditorElement;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=web-component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"web-component.js","sourceRoot":"","sources":["../src/web-component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAsB,MAAM,UAAU,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAoB,MAAM,cAAc,CAAC;AAOnE,8FAA8F;AAC9F,MAAM,UAAU,gBAAgB,CAA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,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;QAC1B,CAAC;QACD,wBAAwB;YACtB,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC;QACtC,CAAC;QACD,WAAW;YACT,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,CAAC;QACvB,CAAC;;IAEH,cAAc,CAAC,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC;IAC9C,OAAO,aAAa,CAAC;AACvB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@barocss/math-editor",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"types": "./dist/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
|
+
"import": "./dist/index.js"
|
|
11
|
+
},
|
|
12
|
+
"./core": {
|
|
13
|
+
"types": "./dist/core.d.ts",
|
|
14
|
+
"import": "./dist/core.js"
|
|
15
|
+
},
|
|
16
|
+
"./style.css": "./src/style.css",
|
|
17
|
+
"./dom": {
|
|
18
|
+
"types": "./dist/dom.d.ts",
|
|
19
|
+
"import": "./dist/dom.js"
|
|
20
|
+
},
|
|
21
|
+
"./web-component": {
|
|
22
|
+
"types": "./dist/web-component.d.ts",
|
|
23
|
+
"import": "./dist/web-component.js"
|
|
24
|
+
},
|
|
25
|
+
"./react": {
|
|
26
|
+
"types": "./dist/react.d.ts",
|
|
27
|
+
"import": "./dist/react.js"
|
|
28
|
+
},
|
|
29
|
+
"./vue": {
|
|
30
|
+
"types": "./dist/vue.d.ts",
|
|
31
|
+
"import": "./dist/vue.js"
|
|
32
|
+
},
|
|
33
|
+
"./svelte": {
|
|
34
|
+
"types": "./dist/svelte.d.ts",
|
|
35
|
+
"import": "./dist/svelte.js"
|
|
36
|
+
},
|
|
37
|
+
"./solid": {
|
|
38
|
+
"types": "./dist/solid.d.ts",
|
|
39
|
+
"import": "./dist/solid.js"
|
|
40
|
+
},
|
|
41
|
+
"./locales/en.json": "./dist/locales/en.json",
|
|
42
|
+
"./locales/ko.json": "./dist/locales/ko.json"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"dist",
|
|
46
|
+
"src/style.css",
|
|
47
|
+
"*.md",
|
|
48
|
+
"LICENSE"
|
|
49
|
+
],
|
|
50
|
+
"peerDependencies": {
|
|
51
|
+
"react": ">=18",
|
|
52
|
+
"react-dom": ">=18",
|
|
53
|
+
"vue": ">=3",
|
|
54
|
+
"svelte": ">=4",
|
|
55
|
+
"solid-js": ">=1.9"
|
|
56
|
+
},
|
|
57
|
+
"devDependencies": {
|
|
58
|
+
"@types/katex": "0.16.8",
|
|
59
|
+
"@types/react": "^19.0.0",
|
|
60
|
+
"@types/react-dom": "^19.0.0",
|
|
61
|
+
"katex": "0.16.28",
|
|
62
|
+
"react": "^19.2.8",
|
|
63
|
+
"react-dom": "^19.2.8",
|
|
64
|
+
"solid-js": "^1.9",
|
|
65
|
+
"svelte": "^5",
|
|
66
|
+
"typescript": "^5.9.3",
|
|
67
|
+
"vitest": "^4.0.7",
|
|
68
|
+
"vue": "^3.5"
|
|
69
|
+
},
|
|
70
|
+
"peerDependenciesMeta": {
|
|
71
|
+
"react": {
|
|
72
|
+
"optional": true
|
|
73
|
+
},
|
|
74
|
+
"react-dom": {
|
|
75
|
+
"optional": true
|
|
76
|
+
},
|
|
77
|
+
"vue": {
|
|
78
|
+
"optional": true
|
|
79
|
+
},
|
|
80
|
+
"svelte": {
|
|
81
|
+
"optional": true
|
|
82
|
+
},
|
|
83
|
+
"solid-js": {
|
|
84
|
+
"optional": true
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"sideEffects": [
|
|
88
|
+
"**/*.css"
|
|
89
|
+
],
|
|
90
|
+
"description": "Embeddable math editor with a framework-independent model, React UI, and native DOM adapters.",
|
|
91
|
+
"license": "MIT",
|
|
92
|
+
"homepage": "https://math-editor.barocss.com",
|
|
93
|
+
"repository": {
|
|
94
|
+
"type": "git",
|
|
95
|
+
"url": "git+https://github.com/barocss/barocss-editor.git",
|
|
96
|
+
"directory": "packages/math-editor"
|
|
97
|
+
},
|
|
98
|
+
"bugs": {
|
|
99
|
+
"url": "https://github.com/barocss/barocss-editor/issues"
|
|
100
|
+
},
|
|
101
|
+
"keywords": [
|
|
102
|
+
"math",
|
|
103
|
+
"math-editor",
|
|
104
|
+
"latex",
|
|
105
|
+
"react",
|
|
106
|
+
"web-components",
|
|
107
|
+
"vue",
|
|
108
|
+
"svelte",
|
|
109
|
+
"solid"
|
|
110
|
+
],
|
|
111
|
+
"publishConfig": {
|
|
112
|
+
"access": "public",
|
|
113
|
+
"registry": "https://registry.npmjs.org/",
|
|
114
|
+
"tag": "latest"
|
|
115
|
+
},
|
|
116
|
+
"scripts": {
|
|
117
|
+
"build": "node scripts/clean.mjs && tsc -p tsconfig.build.json && node scripts/build-locales.mjs",
|
|
118
|
+
"type-check": "tsc --noEmit",
|
|
119
|
+
"test": "vitest run",
|
|
120
|
+
"test:run": "vitest run",
|
|
121
|
+
"format": "prettier --write src test \"examples/*.ts\" scripts",
|
|
122
|
+
"format:check": "prettier --check src test \"examples/*.ts\" scripts"
|
|
123
|
+
}
|
|
124
|
+
}
|