erl-mathtextx-editor 0.1.6 → 0.1.8
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/README.md +61 -44
- package/dist/{CellPropertiesDialogImpl-CHemDwqM.js → CellPropertiesDialogImpl-DBgs-7H9.js} +1 -1
- package/dist/{ImageInsertDialog-CJPVdXtW.js → ImageInsertDialog-B24KHrgt.js} +1 -1
- package/dist/{InsertTableDialogImpl-65qn7ajF.js → InsertTableDialogImpl-B6_PRu5m.js} +1 -1
- package/dist/{LinkDialogImpl-BXNEtesu.js → LinkDialogImpl-BTA8u_qQ.js} +1 -1
- package/dist/TablePropertiesDialogImpl-CuRRWS4H.js +56 -0
- package/dist/{TableTemplatesDialogImpl-Djt0R6Hh.js → TableTemplatesDialogImpl-CU8seEdV.js} +1 -1
- package/dist/assets/erl-mathtextx-editor.css +1 -1
- package/dist/assets/viewer.css +1 -1
- package/dist/components/TablePropertiesDialog.d.ts +4 -0
- package/dist/components/TablePropertiesDialogImpl.d.ts +11 -0
- package/dist/core/extensions.d.ts +6 -0
- package/dist/erl-mathtextx-editor.js +13 -12
- package/dist/erl-mathtextx-editor.umd.cjs +160 -150
- package/dist/extensions/CustomIndent.d.ts +10 -0
- package/dist/extensions/IndentBackspace.d.ts +2 -0
- package/dist/extensions/SlashGraph.d.ts +2 -0
- package/dist/extensions/TableAlignPlugin.d.ts +7 -0
- package/dist/{index-CLGg8QXp.js → index-CB1g0gXh.js} +177 -199
- package/dist/index-UCSefQk0.js +53830 -0
- package/dist/index.d.ts +2 -0
- package/dist/{tiptap-Bc1mIOtx.js → tiptap-K3rU-Wjn.js} +4325 -3155
- package/dist/utils/logger.d.ts +1 -7
- package/package.json +119 -133
- package/dist/index-wMMXFiRr.js +0 -5305
package/dist/utils/logger.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Logger utility for the editor package.
|
|
3
|
-
* Logs only in development
|
|
3
|
+
* Logs only in development mode to avoid information disclosure in production.
|
|
4
4
|
* TODO: Add integration with error tracking service (Sentry, etc.) for production
|
|
5
5
|
*/
|
|
6
|
-
declare global {
|
|
7
|
-
interface Window {
|
|
8
|
-
__DEV__?: boolean;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
6
|
/**
|
|
12
7
|
* Logger object with methods for different log levels.
|
|
13
8
|
* In production, these are no-ops to prevent console noise and info disclosure.
|
|
14
|
-
* Note: Uses only console.warn and console.error to comply with ESLint rules.
|
|
15
9
|
*/
|
|
16
10
|
export declare const logger: {
|
|
17
11
|
/**
|
package/package.json
CHANGED
|
@@ -1,133 +1,119 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "erl-mathtextx-editor",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Visual math editor component for solutest.id — CKEditor replacement with zero-LaTeX approach",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dist/erl-mathtextx-editor.umd.cjs",
|
|
7
|
-
"module": "./dist/erl-mathtextx-editor.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"exports": {
|
|
10
|
-
".": {
|
|
11
|
-
"import": "./dist/erl-mathtextx-editor.js",
|
|
12
|
-
"require": "./dist/erl-mathtextx-editor.umd.cjs",
|
|
13
|
-
"types": "./dist/index.d.ts"
|
|
14
|
-
},
|
|
15
|
-
"./viewer": {
|
|
16
|
-
"import": "./dist/viewer.js",
|
|
17
|
-
"types": "./dist/viewer.d.ts"
|
|
18
|
-
},
|
|
19
|
-
"./styles": "./dist/assets/erl-mathtextx-editor.css",
|
|
20
|
-
"./viewer/styles": "./dist/viewer-styles.js"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"dist"
|
|
24
|
-
],
|
|
25
|
-
"scripts": {
|
|
26
|
-
"dev": "vite",
|
|
27
|
-
"build": "tsc && vite build && vite build --config vite.config.umd.ts",
|
|
28
|
-
"preview": "vite preview",
|
|
29
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
30
|
-
"test": "vitest",
|
|
31
|
-
"test:run": "vitest run",
|
|
32
|
-
"test:coverage": "vitest run --coverage"
|
|
33
|
-
},
|
|
34
|
-
"peerDependencies": {
|
|
35
|
-
"react": "^18.0.0 || ^19.0.0",
|
|
36
|
-
"react-dom": "^18.0.0 || ^19.0.0"
|
|
37
|
-
},
|
|
38
|
-
"dependencies": {
|
|
39
|
-
"@tiptap/core": "^2.11.0",
|
|
40
|
-
"@tiptap/extension-
|
|
41
|
-
"@tiptap/extension-
|
|
42
|
-
"@tiptap/extension-
|
|
43
|
-
"@tiptap/extension-
|
|
44
|
-
"@tiptap/extension-
|
|
45
|
-
"@tiptap/extension-
|
|
46
|
-
"@tiptap/extension-
|
|
47
|
-
"@tiptap/extension-
|
|
48
|
-
"@tiptap/extension-
|
|
49
|
-
"@tiptap/extension-
|
|
50
|
-
"@tiptap/extension-
|
|
51
|
-
"@tiptap/extension-
|
|
52
|
-
"@tiptap/extension-
|
|
53
|
-
"@tiptap/extension-
|
|
54
|
-
"@tiptap/extension-
|
|
55
|
-
"@tiptap/extension-
|
|
56
|
-
"@tiptap/extension-
|
|
57
|
-
"@tiptap/extension-
|
|
58
|
-
"@tiptap/extension-
|
|
59
|
-
"@tiptap/
|
|
60
|
-
"@tiptap/
|
|
61
|
-
"@tiptap/
|
|
62
|
-
"@tiptap
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"@
|
|
73
|
-
"@
|
|
74
|
-
"@
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
"
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
},
|
|
110
|
-
"
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"publishConfig": {
|
|
121
|
-
"access": "public",
|
|
122
|
-
"registry": "https://registry.npmjs.org/"
|
|
123
|
-
},
|
|
124
|
-
"keywords": [
|
|
125
|
-
"math-editor",
|
|
126
|
-
"tiptap",
|
|
127
|
-
"mathlive",
|
|
128
|
-
"wysiwyg",
|
|
129
|
-
"ckeditor-replacement",
|
|
130
|
-
"solutest",
|
|
131
|
-
"react"
|
|
132
|
-
]
|
|
133
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "erl-mathtextx-editor",
|
|
3
|
+
"version": "0.1.8",
|
|
4
|
+
"description": "Visual math editor component for solutest.id — CKEditor replacement with zero-LaTeX approach",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/erl-mathtextx-editor.umd.cjs",
|
|
7
|
+
"module": "./dist/erl-mathtextx-editor.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": "./dist/erl-mathtextx-editor.js",
|
|
12
|
+
"require": "./dist/erl-mathtextx-editor.umd.cjs",
|
|
13
|
+
"types": "./dist/index.d.ts"
|
|
14
|
+
},
|
|
15
|
+
"./viewer": {
|
|
16
|
+
"import": "./dist/viewer.js",
|
|
17
|
+
"types": "./dist/viewer.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./styles": "./dist/assets/erl-mathtextx-editor.css",
|
|
20
|
+
"./viewer/styles": "./dist/viewer-styles.js"
|
|
21
|
+
},
|
|
22
|
+
"files": [
|
|
23
|
+
"dist"
|
|
24
|
+
],
|
|
25
|
+
"scripts": {
|
|
26
|
+
"dev": "vite",
|
|
27
|
+
"build": "tsc && vite build && vite build --config vite.config.umd.ts",
|
|
28
|
+
"preview": "vite preview",
|
|
29
|
+
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
30
|
+
"test": "vitest",
|
|
31
|
+
"test:run": "vitest run",
|
|
32
|
+
"test:coverage": "vitest run --coverage"
|
|
33
|
+
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
36
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@tiptap/core": "^2.11.0",
|
|
40
|
+
"@tiptap/extension-code-block-lowlight": "^2.11.0",
|
|
41
|
+
"@tiptap/extension-color": "^2.27.2",
|
|
42
|
+
"@tiptap/extension-font-family": "^2.27.2",
|
|
43
|
+
"@tiptap/extension-highlight": "^2.27.2",
|
|
44
|
+
"@tiptap/extension-image": "^2.11.0",
|
|
45
|
+
"@tiptap/extension-link": "^2.11.0",
|
|
46
|
+
"@tiptap/extension-placeholder": "^2.11.0",
|
|
47
|
+
"@tiptap/extension-subscript": "^2.11.0",
|
|
48
|
+
"@tiptap/extension-superscript": "^2.11.0",
|
|
49
|
+
"@tiptap/extension-table": "^2.11.0",
|
|
50
|
+
"@tiptap/extension-table-cell": "^2.11.0",
|
|
51
|
+
"@tiptap/extension-table-header": "^2.11.0",
|
|
52
|
+
"@tiptap/extension-table-row": "^2.11.0",
|
|
53
|
+
"@tiptap/extension-task-item": "^2.11.0",
|
|
54
|
+
"@tiptap/extension-task-list": "^2.11.0",
|
|
55
|
+
"@tiptap/extension-text-align": "^2.27.2",
|
|
56
|
+
"@tiptap/extension-text-style": "^2.27.2",
|
|
57
|
+
"@tiptap/extension-typography": "^2.27.2",
|
|
58
|
+
"@tiptap/extension-underline": "^2.11.0",
|
|
59
|
+
"@tiptap/pm": "^2.11.0",
|
|
60
|
+
"@tiptap/react": "^2.11.0",
|
|
61
|
+
"@tiptap/starter-kit": "^2.11.0",
|
|
62
|
+
"@weiruo/tiptap-extension-indent": "^2.0.4-1",
|
|
63
|
+
"dompurify": "^3.3.1",
|
|
64
|
+
"function-plot": "^1.25.3",
|
|
65
|
+
"html2canvas": "^1.4.1",
|
|
66
|
+
"jspdf": "^4.1.0",
|
|
67
|
+
"katex": "^0.16.33",
|
|
68
|
+
"lowlight": "^3.3.0",
|
|
69
|
+
"mathlive": "^0.101.0"
|
|
70
|
+
},
|
|
71
|
+
"devDependencies": {
|
|
72
|
+
"@eslint/js": "^9.39.2",
|
|
73
|
+
"@fullhuman/postcss-purgecss": "^8.0.0",
|
|
74
|
+
"@types/dompurify": "^3.0.5",
|
|
75
|
+
"@types/react": "^18.2.0",
|
|
76
|
+
"@types/react-dom": "^18.2.0",
|
|
77
|
+
"@typescript-eslint/eslint-plugin": "^8.56.0",
|
|
78
|
+
"@typescript-eslint/parser": "^8.56.0",
|
|
79
|
+
"@vitejs/plugin-react": "^4.3.0",
|
|
80
|
+
"@vitest/coverage-v8": "^2.1.9",
|
|
81
|
+
"eslint": "^9.39.2",
|
|
82
|
+
"eslint-plugin-react": "^7.37.5",
|
|
83
|
+
"eslint-plugin-react-hooks": "^7.0.1",
|
|
84
|
+
"eslint-plugin-react-refresh": "^0.5.0",
|
|
85
|
+
"globals": "^17.3.0",
|
|
86
|
+
"jsdom": "^24.1.3",
|
|
87
|
+
"react": "^18.2.0",
|
|
88
|
+
"react-dom": "^18.2.0",
|
|
89
|
+
"typescript": "^5.5.0",
|
|
90
|
+
"typescript-eslint": "^8.57.0",
|
|
91
|
+
"vite": "^5.4.0",
|
|
92
|
+
"vite-plugin-css-injected-by-js": "^3.5.0",
|
|
93
|
+
"vite-plugin-dts": "^4.0.0",
|
|
94
|
+
"vitest": "^2.1.9"
|
|
95
|
+
},
|
|
96
|
+
"license": "MIT",
|
|
97
|
+
"author": "Erlangga Team",
|
|
98
|
+
"repository": {
|
|
99
|
+
"type": "git",
|
|
100
|
+
"url": "git+https://github.com/erlangga/richtext-editor-research.git"
|
|
101
|
+
},
|
|
102
|
+
"homepage": "https://github.com/erlangga/richtext-editor-research#readme",
|
|
103
|
+
"bugs": {
|
|
104
|
+
"url": "https://github.com/erlangga/richtext-editor-research/issues"
|
|
105
|
+
},
|
|
106
|
+
"publishConfig": {
|
|
107
|
+
"access": "public",
|
|
108
|
+
"registry": "https://registry.npmjs.org/"
|
|
109
|
+
},
|
|
110
|
+
"keywords": [
|
|
111
|
+
"math-editor",
|
|
112
|
+
"tiptap",
|
|
113
|
+
"mathlive",
|
|
114
|
+
"wysiwyg",
|
|
115
|
+
"ckeditor-replacement",
|
|
116
|
+
"solutest",
|
|
117
|
+
"react"
|
|
118
|
+
]
|
|
119
|
+
}
|