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.
Files changed (29) hide show
  1. package/README.md +268 -253
  2. package/dist/{CellPropertiesDialogImpl-HPT77uxM.js → CellPropertiesDialogImpl-DBgs-7H9.js} +1 -1
  3. package/dist/{ContentViewer-CWZ30KYR.js → ContentViewer-CsFSAN_B.js} +15 -15
  4. package/dist/ImageInsertDialog-B24KHrgt.js +238 -0
  5. package/dist/{InsertTableDialogImpl-DZrLgDKN.js → InsertTableDialogImpl-B6_PRu5m.js} +1 -1
  6. package/dist/{LinkDialogImpl-DTHugWZM.js → LinkDialogImpl-BTA8u_qQ.js} +60 -45
  7. package/dist/TablePropertiesDialogImpl-CuRRWS4H.js +56 -0
  8. package/dist/{TableTemplatesDialogImpl-D0sFSAKl.js → TableTemplatesDialogImpl-CU8seEdV.js} +1 -1
  9. package/dist/assets/erl-mathtextx-editor.css +1 -1
  10. package/dist/assets/viewer.css +1 -1
  11. package/dist/components/TablePropertiesDialog.d.ts +4 -0
  12. package/dist/components/TablePropertiesDialogImpl.d.ts +11 -0
  13. package/dist/core/extensions.d.ts +6 -0
  14. package/dist/erl-mathtextx-editor.js +14 -13
  15. package/dist/erl-mathtextx-editor.umd.cjs +163 -153
  16. package/dist/extensions/CustomIndent.d.ts +10 -0
  17. package/dist/extensions/IndentBackspace.d.ts +2 -0
  18. package/dist/extensions/SlashGraph.d.ts +2 -0
  19. package/dist/extensions/TableAlignPlugin.d.ts +7 -0
  20. package/dist/{index-CLGg8QXp.js → index-CB1g0gXh.js} +177 -199
  21. package/dist/index-UCSefQk0.js +53830 -0
  22. package/dist/index.d.ts +2 -0
  23. package/dist/math/MathFieldView.d.ts +5 -0
  24. package/dist/{tiptap-Bc1mIOtx.js → tiptap-K3rU-Wjn.js} +4325 -3155
  25. package/dist/utils/logger.d.ts +40 -0
  26. package/dist/viewer.js +1 -1
  27. package/package.json +3 -17
  28. package/dist/ImageInsertDialog-DzLFhSDK.js +0 -217
  29. 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, a as o, L as l, M as i, b as r, c as T, d as g, e as n, f as m, S as p, T as M, g as C, h as b, W as d, i as h, j as c, k as y, l as D, m as L, n as u, o as x, p as E, q as I, r as S, s as f, t as k } from "./index-Ci20X1Rj.js";
2
- import { C as H } from "./ContentViewer-CWZ30KYR.js";
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 TableTemplatesDialog,
18
- b as TemplatePanel,
19
- d as WordCount,
20
- h as countCharacters,
21
- c as countWords,
22
- y as createExtensions,
23
- D as getHTML,
24
- L as getJSON,
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
- x as getTemplateStyles,
27
- E as getTemplatesByCategory,
28
- I as getTemplatesByLevel,
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