erl-mathtextx-editor 0.1.7 → 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 +268 -253
- package/dist/{CellPropertiesDialogImpl-HPT77uxM.js → CellPropertiesDialogImpl-DBgs-7H9.js} +1 -1
- package/dist/{ContentViewer-CWZ30KYR.js → ContentViewer-CsFSAN_B.js} +15 -15
- package/dist/ImageInsertDialog-B24KHrgt.js +238 -0
- package/dist/{InsertTableDialogImpl-DZrLgDKN.js → InsertTableDialogImpl-B6_PRu5m.js} +1 -1
- package/dist/{LinkDialogImpl-DTHugWZM.js → LinkDialogImpl-BTA8u_qQ.js} +60 -45
- package/dist/TablePropertiesDialogImpl-CuRRWS4H.js +56 -0
- package/dist/{TableTemplatesDialogImpl-D0sFSAKl.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 +14 -13
- package/dist/erl-mathtextx-editor.umd.cjs +163 -153
- 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/math/MathFieldView.d.ts +5 -0
- package/dist/{tiptap-Bc1mIOtx.js → tiptap-K3rU-Wjn.js} +4325 -3155
- package/dist/utils/logger.d.ts +40 -0
- package/dist/viewer.js +1 -1
- package/package.json +3 -17
- package/dist/ImageInsertDialog-DzLFhSDK.js +0 -217
- package/dist/index-Ci20X1Rj.js +0 -5281
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TablePropertiesData, TablePropertiesDialogProps } from './TablePropertiesDialogImpl';
|
|
3
|
+
export declare const TablePropertiesDialog: React.NamedExoticComponent<TablePropertiesDialogProps>;
|
|
4
|
+
export type { TablePropertiesDialogProps, TablePropertiesData };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
export interface TablePropertiesData {
|
|
3
|
+
align?: 'left' | 'center' | 'right';
|
|
4
|
+
}
|
|
5
|
+
export interface TablePropertiesDialogProps {
|
|
6
|
+
isOpen: boolean;
|
|
7
|
+
initialData?: TablePropertiesData;
|
|
8
|
+
onSave: (data: TablePropertiesData) => void;
|
|
9
|
+
onClose: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const TablePropertiesDialogImpl: React.MemoExoticComponent<({ isOpen, initialData, onSave, onClose, }: TablePropertiesDialogProps) => import("react/jsx-runtime").JSX.Element | null>;
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import { TableView } from '@tiptap/extension-table';
|
|
1
2
|
import { Extensions } from '@tiptap/core';
|
|
2
3
|
export interface ExtensionsConfig {
|
|
3
4
|
placeholder?: string;
|
|
4
5
|
}
|
|
6
|
+
export declare class CustomTableView extends TableView {
|
|
7
|
+
constructor(node: any, cellMinWidth: number);
|
|
8
|
+
update(node: any): boolean;
|
|
9
|
+
updateAttributes(node: any): void;
|
|
10
|
+
}
|
|
5
11
|
/**
|
|
6
12
|
* Creates the default set of TipTap extensions for MathTextX editor.
|
|
7
13
|
* Includes text formatting, lists, tables, images, links, and more.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as t, I as s,
|
|
2
|
-
import { C as H } from "./ContentViewer-
|
|
1
|
+
import { C as t, I as s, b as o, L as l, M as i, d as r, e as T, f as g, h as n, i as m, S as p, T as M, j as C, k as b, l as d, W as h, m as y, n as D, o as L, p as c, q as x, r as u, s as E, t as I, v as P, w as S, x as f, y as k } from "./index-UCSefQk0.js";
|
|
2
|
+
import { C as H } from "./ContentViewer-CsFSAN_B.js";
|
|
3
3
|
export {
|
|
4
4
|
t as CellPropertiesDialog,
|
|
5
5
|
H as ContentViewer,
|
|
@@ -14,18 +14,19 @@ export {
|
|
|
14
14
|
m as MathTypeDialog,
|
|
15
15
|
p as SymbolPalette,
|
|
16
16
|
M as TableMenu,
|
|
17
|
-
C as
|
|
18
|
-
b as
|
|
19
|
-
d as
|
|
20
|
-
h as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
17
|
+
C as TablePropertiesDialog,
|
|
18
|
+
b as TableTemplatesDialog,
|
|
19
|
+
d as TemplatePanel,
|
|
20
|
+
h as WordCount,
|
|
21
|
+
y as countCharacters,
|
|
22
|
+
D as countWords,
|
|
23
|
+
L as createExtensions,
|
|
24
|
+
c as getHTML,
|
|
25
|
+
x as getJSON,
|
|
25
26
|
u as getTemplateCategories,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
E as getTemplateStyles,
|
|
28
|
+
I as getTemplatesByCategory,
|
|
29
|
+
P as getTemplatesByLevel,
|
|
29
30
|
S as mathTemplates,
|
|
30
31
|
f as sanitizeCKEditorHTML,
|
|
31
32
|
k as toCompatibleHTML
|