tetrons 2.3.98 → 2.3.100

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 (114) hide show
  1. package/dist/app/HomeClient.d.ts +1 -0
  2. package/dist/app/layout.d.ts +7 -0
  3. package/dist/app/page.d.ts +1 -0
  4. package/dist/app/view/page.d.ts +1 -0
  5. package/dist/chunk-EO6RXFIC.mjs +79 -0
  6. package/dist/components/Editor/AIModal.d.ts +8 -0
  7. package/dist/components/Editor/Editor.d.ts +3 -0
  8. package/dist/components/Editor/LinkPreviewPopup.d.ts +14 -0
  9. package/dist/components/Editor/TetronsEditor.d.ts +8 -0
  10. package/dist/components/Editor/config/versionConfig.d.ts +3 -0
  11. package/dist/components/Editor/toolbar/BasicToolbar.d.ts +12 -0
  12. package/dist/components/Editor/toolbar/CodeEditor.d.ts +13 -0
  13. package/dist/components/Editor/toolbar/Converter.d.ts +3 -0
  14. package/dist/components/Editor/toolbar/FaqSection.d.ts +2 -0
  15. package/dist/components/Editor/toolbar/FindReplaceModal.d.ts +9 -0
  16. package/dist/components/Editor/toolbar/HelpModal.d.ts +8 -0
  17. package/dist/components/Editor/toolbar/ImageToTextModal.d.ts +7 -0
  18. package/dist/components/Editor/toolbar/MathEquation.d.ts +10 -0
  19. package/dist/components/Editor/toolbar/SecondRow.d.ts +18 -0
  20. package/dist/components/Editor/toolbar/ShareEmailModal.d.ts +5 -0
  21. package/dist/components/Editor/toolbar/ShareLinkModal.d.ts +7 -0
  22. package/dist/components/Editor/toolbar/Tabs.d.ts +6 -0
  23. package/dist/components/Editor/toolbar/ThirdRow.d.ts +9 -0
  24. package/dist/components/Editor/toolbar/TopMenu.d.ts +24 -0
  25. package/dist/components/Editor/toolbar/Translator.d.ts +3 -0
  26. package/dist/components/Editor/toolbar/UserGuideSection.d.ts +2 -0
  27. package/dist/components/Editor/toolbar/VersionDiffModal.d.ts +6 -0
  28. package/dist/components/Editor/toolbar/VersionHistoryModal.d.ts +12 -0
  29. package/dist/components/Editor/toolbar/VersionInfoSection.d.ts +2 -0
  30. package/dist/components/Editor/toolbar/VersionRollbackModal.d.ts +6 -0
  31. package/dist/components/Editor/toolbar/VirtualKeyboard.d.ts +11 -0
  32. package/dist/components/Editor/toolbar/VoiceModal.d.ts +7 -0
  33. package/dist/components/Editor/toolbar/extensions/Audio.d.ts +2 -0
  34. package/dist/components/Editor/toolbar/extensions/BetterListItem.d.ts +1 -0
  35. package/dist/components/Editor/toolbar/extensions/Comment.d.ts +17 -0
  36. package/dist/components/Editor/toolbar/extensions/Embed.d.ts +7 -0
  37. package/dist/components/Editor/toolbar/extensions/FontFamily.d.ts +10 -0
  38. package/dist/components/Editor/toolbar/extensions/FontSize.d.ts +10 -0
  39. package/dist/components/Editor/toolbar/extensions/FontStyleCommands.d.ts +2 -0
  40. package/dist/components/Editor/toolbar/extensions/LineHeightExtension.d.ts +2 -0
  41. package/dist/components/Editor/toolbar/extensions/MathBlock.d.ts +12 -0
  42. package/dist/components/Editor/toolbar/extensions/MathBlockView.d.ts +3 -0
  43. package/dist/components/Editor/toolbar/extensions/MathNode.d.ts +10 -0
  44. package/dist/components/Editor/toolbar/extensions/ResizableEmbed.d.ts +9 -0
  45. package/dist/components/Editor/toolbar/extensions/ResizableImage.d.ts +2 -0
  46. package/dist/components/Editor/toolbar/extensions/ResizableVideo.d.ts +2 -0
  47. package/dist/components/Editor/toolbar/extensions/WordCount.d.ts +2 -0
  48. package/dist/components/Editor/toolbar/groups/AlignGroup.d.ts +8 -0
  49. package/dist/components/Editor/toolbar/groups/ClipboardGroup.d.ts +8 -0
  50. package/dist/components/Editor/toolbar/groups/ColorGroup.d.ts +8 -0
  51. package/dist/components/Editor/toolbar/groups/FileGroup.d.ts +12 -0
  52. package/dist/components/Editor/toolbar/groups/InsertGroup.d.ts +6 -0
  53. package/dist/components/Editor/toolbar/groups/ListGroup.d.ts +8 -0
  54. package/dist/components/Editor/toolbar/groups/PlatinumGroup.d.ts +19 -0
  55. package/dist/components/Editor/toolbar/groups/PreviewModal.d.ts +8 -0
  56. package/dist/components/Editor/toolbar/groups/TextFormattingGroup.d.ts +8 -0
  57. package/dist/components/Editor/toolbar/groups/UtilityGroup.d.ts +10 -0
  58. package/dist/components/Editor/toolbar/useFileActions.d.ts +6 -0
  59. package/dist/components/Editor/toolbar/useUtilityActions.d.ts +8 -0
  60. package/dist/components/Editor/types/TetronsEditorProps.d.ts +100 -0
  61. package/dist/components/Editor/types/ValidationResponse.d.ts +10 -0
  62. package/dist/components/ui/Button.d.ts +12 -0
  63. package/dist/components/ui/ConfirmModal.d.ts +10 -0
  64. package/dist/components/ui/Dropdown.d.ts +14 -0
  65. package/dist/index.css +4888 -0
  66. package/dist/index.d.ts +6 -16
  67. package/dist/index.mjs +14802 -14936
  68. package/dist/lib/indianKeyboardLayouts.d.ts +1 -0
  69. package/dist/lib/languages.d.ts +1 -0
  70. package/dist/server/dictionary.d.ts +1 -0
  71. package/dist/tiptap/extensions/SpellCheck.d.ts +2 -0
  72. package/dist/types/VersionEntry.d.ts +6 -0
  73. package/dist/typescript-A2I22B6E.mjs +210768 -0
  74. package/package.json +88 -109
  75. package/dist/app/api/ai-action/route.cjs +0 -61
  76. package/dist/app/api/ai-action/route.d.mts +0 -9
  77. package/dist/app/api/ai-action/route.d.ts +0 -9
  78. package/dist/app/api/ai-action/route.mjs +0 -36
  79. package/dist/app/api/execute/route.cjs +0 -55
  80. package/dist/app/api/execute/route.d.mts +0 -8
  81. package/dist/app/api/execute/route.d.ts +0 -8
  82. package/dist/app/api/execute/route.mjs +0 -30
  83. package/dist/app/api/export/route.cjs +0 -33
  84. package/dist/app/api/export/route.d.mts +0 -3
  85. package/dist/app/api/export/route.d.ts +0 -3
  86. package/dist/app/api/export/route.mjs +0 -8
  87. package/dist/app/api/register/route.cjs +0 -120
  88. package/dist/app/api/register/route.d.mts +0 -10
  89. package/dist/app/api/register/route.d.ts +0 -10
  90. package/dist/app/api/register/route.mjs +0 -85
  91. package/dist/app/api/save/route.cjs +0 -53
  92. package/dist/app/api/save/route.d.mts +0 -9
  93. package/dist/app/api/save/route.d.ts +0 -9
  94. package/dist/app/api/save/route.mjs +0 -18
  95. package/dist/app/api/transcribe/route.cjs +0 -72
  96. package/dist/app/api/transcribe/route.d.mts +0 -10
  97. package/dist/app/api/transcribe/route.d.ts +0 -10
  98. package/dist/app/api/transcribe/route.mjs +0 -46
  99. package/dist/app/api/validate/route.cjs +0 -143
  100. package/dist/app/api/validate/route.d.mts +0 -13
  101. package/dist/app/api/validate/route.d.ts +0 -13
  102. package/dist/app/api/validate/route.mjs +0 -107
  103. package/dist/components/UI/Dropdown.tsx +0 -0
  104. package/dist/components/tetrons/EditorContent.tsx +0 -272
  105. package/dist/components/tetrons/ResizableImageComponent.tsx +0 -112
  106. package/dist/components/tetrons/ResizableVideoComponent.tsx +0 -56
  107. package/dist/dictionaries/index.aff +0 -205
  108. package/dist/dictionaries/index.dic +0 -49569
  109. package/dist/index.cjs +0 -17652
  110. package/dist/index.d.mts +0 -16
  111. package/dist/styles/tetrons.css +0 -981
  112. package/public/dictionaries/index.aff +0 -205
  113. package/public/dictionaries/index.dic +0 -49569
  114. /package/dist/components/{UI/Button.tsx → Editor/config/featureConfig.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ export default function HomeClient(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import type { Metadata } from "next";
2
+ import "./globals.css";
3
+ import "../styles/tetrons.css";
4
+ export declare const metadata: Metadata;
5
+ export default function RootLayout({ children, }: Readonly<{
6
+ children: React.ReactNode;
7
+ }>): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Home(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function ViewDocument(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,79 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __defProps = Object.defineProperties;
3
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
+ var __knownSymbol = (name, symbol) => (symbol = Symbol[name]) ? symbol : /* @__PURE__ */ Symbol.for("Symbol." + name);
9
+ var __typeError = (msg) => {
10
+ throw TypeError(msg);
11
+ };
12
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
+ var __spreadValues = (a, b) => {
14
+ for (var prop in b || (b = {}))
15
+ if (__hasOwnProp.call(b, prop))
16
+ __defNormalProp(a, prop, b[prop]);
17
+ if (__getOwnPropSymbols)
18
+ for (var prop of __getOwnPropSymbols(b)) {
19
+ if (__propIsEnum.call(b, prop))
20
+ __defNormalProp(a, prop, b[prop]);
21
+ }
22
+ return a;
23
+ };
24
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
26
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
27
+ }) : x)(function(x) {
28
+ if (typeof require !== "undefined") return require.apply(this, arguments);
29
+ throw Error('Dynamic require of "' + x + '" is not supported');
30
+ });
31
+ var __objRest = (source, exclude) => {
32
+ var target = {};
33
+ for (var prop in source)
34
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
35
+ target[prop] = source[prop];
36
+ if (source != null && __getOwnPropSymbols)
37
+ for (var prop of __getOwnPropSymbols(source)) {
38
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
39
+ target[prop] = source[prop];
40
+ }
41
+ return target;
42
+ };
43
+ var __commonJS = (cb, mod) => function __require2() {
44
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
45
+ };
46
+ var __await = function(promise, isYieldStar) {
47
+ this[0] = promise;
48
+ this[1] = isYieldStar;
49
+ };
50
+ var __yieldStar = (value) => {
51
+ var obj = value[__knownSymbol("asyncIterator")], isAwait = false, method, it = {};
52
+ if (obj == null) {
53
+ obj = value[__knownSymbol("iterator")]();
54
+ method = (k) => it[k] = (x) => obj[k](x);
55
+ } else {
56
+ obj = obj.call(value);
57
+ method = (k) => it[k] = (v) => {
58
+ if (isAwait) {
59
+ isAwait = false;
60
+ if (k === "throw") throw v;
61
+ return v;
62
+ }
63
+ isAwait = true;
64
+ return {
65
+ done: false,
66
+ value: new __await(new Promise((resolve) => {
67
+ var x = obj[k](v);
68
+ if (!(x instanceof Object)) __typeError("Object expected");
69
+ resolve(x);
70
+ }), 1)
71
+ };
72
+ };
73
+ }
74
+ return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
75
+ throw x;
76
+ }, "return" in obj && method("return"), it;
77
+ };
78
+
79
+ export { __commonJS, __objRest, __require, __spreadProps, __spreadValues, __yieldStar };
@@ -0,0 +1,8 @@
1
+ interface AIModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ onSubmit: (prompt: string) => void;
5
+ loading: boolean;
6
+ }
7
+ export default function AIModal({ open, onClose, onSubmit, loading, }: AIModalProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { TetronsEditorProps } from "./types/TetronsEditorProps";
2
+ import "katex/dist/katex.min.css";
3
+ export default function Editor(props: TetronsEditorProps): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,14 @@
1
+ export interface LinkPreviewData {
2
+ title?: string;
3
+ description?: string;
4
+ image?: string | null;
5
+ url?: string;
6
+ }
7
+ interface LinkPreviewPopupProps {
8
+ visible: boolean;
9
+ x: number;
10
+ y: number;
11
+ data: LinkPreviewData | null;
12
+ }
13
+ export default function LinkPreviewPopup({ visible, x, y, data, }: LinkPreviewPopupProps): import("react/jsx-runtime").JSX.Element | null;
14
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { ValidationResponse } from "./types/ValidationResponse";
2
+ interface TetronsEditorProps {
3
+ apiKey: string;
4
+ onError?: (msg: string) => void;
5
+ onSuccess?: (details: ValidationResponse) => void;
6
+ }
7
+ export default function TetronsEditor({ apiKey, onError, onSuccess, }: TetronsEditorProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export {};
@@ -0,0 +1,3 @@
1
+ import { TetronsEditorProps } from "../types/TetronsEditorProps";
2
+ export type ProductVersion = "Free" | "Pro" | "Premium" | "Platinum";
3
+ export declare const VERSION_FEATURES: Record<ProductVersion, Partial<TetronsEditorProps>>;
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { Editor } from "@tiptap/react";
3
+ import { FeatureFlags } from "../types/TetronsEditorProps";
4
+ import type { VersionEntry } from "../../../types/VersionEntry";
5
+ interface BasicToolbarProps {
6
+ editor: Editor;
7
+ features?: FeatureFlags;
8
+ versions: VersionEntry[];
9
+ setVersions: React.Dispatch<React.SetStateAction<VersionEntry[]>>;
10
+ }
11
+ declare const BasicToolbar: React.FC<BasicToolbarProps>;
12
+ export default BasicToolbar;
@@ -0,0 +1,13 @@
1
+ export type SupportedLanguage = "javascript" | "typescript" | "python" | "java" | "cpp" | "c" | "go" | "rust" | "php" | "sql" | "html" | "css" | "json";
2
+ interface CodeEditorProps {
3
+ defaultLanguage?: SupportedLanguage;
4
+ defaultCode?: string;
5
+ onClose?: () => void;
6
+ onSubmitSnippet?: (code: string) => void;
7
+ onSubmitSnippetWithOutput?: (snippet: {
8
+ code: string;
9
+ output: string;
10
+ }) => void;
11
+ }
12
+ export default function CodeEditor({ defaultLanguage, defaultCode, onClose, onSubmitSnippet, onSubmitSnippetWithOutput, }: CodeEditorProps): import("react/jsx-runtime").JSX.Element;
13
+ export {};
@@ -0,0 +1,3 @@
1
+ export default function Converter({ onResult, }: {
2
+ onResult?: (output: string) => void;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare function FaqSection(): import("react/jsx-runtime").JSX.Element;
2
+ export default FaqSection;
@@ -0,0 +1,9 @@
1
+ interface FindReplaceModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ onFind: (query: string) => void;
5
+ onReplace: (query: string, replacement: string) => void;
6
+ onReplaceAll: (query: string, replacement: string) => void;
7
+ }
8
+ export default function FindReplaceModal({ open, onClose, onFind, onReplace, onReplaceAll, }: FindReplaceModalProps): import("react/jsx-runtime").JSX.Element | null;
9
+ export {};
@@ -0,0 +1,8 @@
1
+ interface HelpModalProps {
2
+ open: boolean;
3
+ activeTab: string;
4
+ onClose: () => void;
5
+ onSelectTab: (id: string) => void;
6
+ }
7
+ export default function HelpModal({ open, activeTab, onClose, onSelectTab, }: HelpModalProps): import("react/jsx-runtime").JSX.Element | null;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ interface ImageToTextModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ onResult: (text: string) => void;
5
+ }
6
+ export default function ImageToTextModal({ open, onClose, onResult, }: ImageToTextModalProps): import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
@@ -0,0 +1,10 @@
1
+ import "katex/dist/katex.min.css";
2
+ interface MathEquationProps {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ onInsert: (latex: string) => void;
6
+ onUpdate?: (latex: string) => void;
7
+ existingLatex?: string;
8
+ }
9
+ export default function MathEquation({ open, onClose, onInsert, onUpdate, existingLatex, }: MathEquationProps): import("react/jsx-runtime").JSX.Element | null;
10
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { JSONContent } from "@tiptap/core";
3
+ interface VersionEntry {
4
+ content: JSONContent;
5
+ timestamp: string;
6
+ note?: string;
7
+ }
8
+ interface SecondRowProps {
9
+ autoSave?: boolean;
10
+ showVersions?: boolean;
11
+ onSaveVersion?: () => void;
12
+ versions?: VersionEntry[];
13
+ currentVersionIndex?: number | null;
14
+ onRestoreVersion?: (index: number) => void;
15
+ onToggleAutoSave?: (enabled: boolean) => void;
16
+ }
17
+ declare const SecondRow: React.FC<SecondRowProps>;
18
+ export default SecondRow;
@@ -0,0 +1,5 @@
1
+ export default function ShareEmailModal({ open, onClose, defaultBody, }: {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ defaultBody: string;
5
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,7 @@
1
+ interface ShareLinkModalProps {
2
+ open: boolean;
3
+ link: string;
4
+ onClose: () => void;
5
+ }
6
+ export default function ShareLinkModal({ open, link, onClose, }: ShareLinkModalProps): import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ interface TabsProps {
2
+ onResult?: (output: string) => void;
3
+ onClose?: () => void;
4
+ }
5
+ export default function Tabs({ onResult, onClose }: TabsProps): import("react/jsx-runtime").JSX.Element;
6
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { useEditor } from "@tiptap/react";
2
+ interface ThirdRowProps {
3
+ showParagraphDropdown?: boolean;
4
+ showFontDropdown?: boolean;
5
+ showFontSizeDropdown?: boolean;
6
+ editor: ReturnType<typeof useEditor>;
7
+ }
8
+ declare const ThirdRow: React.FC<ThirdRowProps>;
9
+ export default ThirdRow;
@@ -0,0 +1,24 @@
1
+ import React from "react";
2
+ import { Editor } from "@tiptap/react";
3
+ import { FeatureFlags, ProductVersion } from "../types/TetronsEditorProps";
4
+ interface TopMenuProps {
5
+ editor: Editor | null;
6
+ version: ProductVersion;
7
+ features?: Partial<FeatureFlags>;
8
+ fileActions: {
9
+ newFile: () => void;
10
+ openFile: () => void;
11
+ saveFile: () => void;
12
+ saveAs?: () => void;
13
+ closeFile?: () => void;
14
+ };
15
+ utilityActions: {
16
+ print: () => void;
17
+ exportFile: (type: "html" | "pdf" | "docx") => void;
18
+ zoomIn?: () => void;
19
+ zoomOut?: () => void;
20
+ zoomReset?: () => void;
21
+ };
22
+ }
23
+ declare const TopMenu: React.FC<TopMenuProps>;
24
+ export default TopMenu;
@@ -0,0 +1,3 @@
1
+ export default function Translator({ onResult, }: {
2
+ onResult?: (output: string) => void;
3
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ declare function UserGuideSection(): import("react/jsx-runtime").JSX.Element;
2
+ export default UserGuideSection;
@@ -0,0 +1,6 @@
1
+ export default function VersionDiffModal({ open, before, after, onClose, }: {
2
+ open: boolean;
3
+ before: string;
4
+ after: string;
5
+ onClose: () => void;
6
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,12 @@
1
+ import type { VersionEntry } from "../../../types/VersionEntry";
2
+ interface VersionHistoryModalProps {
3
+ open: boolean;
4
+ versions: VersionEntry[];
5
+ onClose: () => void;
6
+ onRestore: (index: number) => void;
7
+ onCompare: (index: number) => void;
8
+ onDelete: (index: number) => void;
9
+ onEditNote: (index: number, note: string) => void;
10
+ }
11
+ export default function VersionHistoryModal({ open, versions, onClose, onRestore, onCompare, onDelete, onEditNote, }: VersionHistoryModalProps): import("react/jsx-runtime").JSX.Element | null;
12
+ export {};
@@ -0,0 +1,2 @@
1
+ declare function VersionInfoSection(): import("react/jsx-runtime").JSX.Element;
2
+ export default VersionInfoSection;
@@ -0,0 +1,6 @@
1
+ export default function VersionRollbackModal({ open, versionIndex, onConfirm, onCancel, }: {
2
+ open: boolean;
3
+ versionIndex: number | null;
4
+ onConfirm: () => void;
5
+ onCancel: () => void;
6
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import { Editor } from "@tiptap/react";
3
+ interface VirtualKeyboardProps {
4
+ editor: Editor;
5
+ language?: string;
6
+ onClose?: () => void;
7
+ }
8
+ export declare const inherentVowels: Record<string, string>;
9
+ export declare const vowels: Record<string, string[]>;
10
+ declare const VirtualKeyboard: React.FC<VirtualKeyboardProps>;
11
+ export default VirtualKeyboard;
@@ -0,0 +1,7 @@
1
+ interface VoiceModalProps {
2
+ open: boolean;
3
+ onClose: () => void;
4
+ onResult: (text: string) => void;
5
+ }
6
+ export default function VoiceModal({ open, onClose, onResult, }: VoiceModalProps): import("react/jsx-runtime").JSX.Element | null;
7
+ export {};
@@ -0,0 +1,2 @@
1
+ import { Node } from "@tiptap/core";
2
+ export declare const Audio: Node<any, any>;
@@ -0,0 +1 @@
1
+ export declare const BetterListItem: import("@tiptap/core").Node<import("@tiptap/extension-list").ListItemOptions, any>;
@@ -0,0 +1,17 @@
1
+ import { Mark } from "@tiptap/core";
2
+ export interface CommentOptions {
3
+ HTMLAttributes: {
4
+ class?: string;
5
+ style?: string;
6
+ [key: string]: unknown;
7
+ };
8
+ }
9
+ declare module "@tiptap/core" {
10
+ interface Commands<ReturnType> {
11
+ comment: {
12
+ setComment: (comment: string) => ReturnType;
13
+ unsetComment: () => ReturnType;
14
+ };
15
+ }
16
+ }
17
+ export declare const Comment: Mark<CommentOptions, any>;
@@ -0,0 +1,7 @@
1
+ import { Node } from "@tiptap/core";
2
+ export interface EmbedOptions {
3
+ src: string;
4
+ width?: number;
5
+ height?: number;
6
+ }
7
+ export declare const Embed: Node<any, any>;
@@ -0,0 +1,10 @@
1
+ import { Mark } from '@tiptap/core';
2
+ declare module "@tiptap/core" {
3
+ interface Commands<ReturnType> {
4
+ fontFamily: {
5
+ setFontFamily: (fontFamily: string) => ReturnType;
6
+ unsetFontFamily: () => ReturnType;
7
+ };
8
+ }
9
+ }
10
+ export declare const FontFamily: Mark<any, any>;
@@ -0,0 +1,10 @@
1
+ import { Mark } from "@tiptap/core";
2
+ declare module "@tiptap/core" {
3
+ interface Commands<ReturnType> {
4
+ fontSize: {
5
+ setFontSize: (fontSize: string) => ReturnType;
6
+ unsetFontSize: () => ReturnType;
7
+ };
8
+ }
9
+ }
10
+ export declare const FontSize: Mark<any, any>;
@@ -0,0 +1,2 @@
1
+ import { Extension } from "@tiptap/core";
2
+ export declare const FontStyleCommands: Extension<any, any>;
@@ -0,0 +1,2 @@
1
+ import { Extension } from "@tiptap/core";
2
+ export declare const LineHeightExtension: Extension<any, any>;
@@ -0,0 +1,12 @@
1
+ import { Node } from "@tiptap/core";
2
+ export interface MathInlineOptions {
3
+ HTMLAttributes: Record<string, string | number | boolean>;
4
+ }
5
+ declare module "@tiptap/core" {
6
+ interface Commands<ReturnType> {
7
+ mathInline: {
8
+ insertMathInline: (latex: string) => ReturnType;
9
+ };
10
+ }
11
+ }
12
+ export declare const MathInline: Node<MathInlineOptions, any>;
@@ -0,0 +1,3 @@
1
+ import { NodeViewProps } from "@tiptap/react";
2
+ import "katex/dist/katex.min.css";
3
+ export default function MathBlockView({ node }: NodeViewProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,10 @@
1
+ import { Node } from "@tiptap/core";
2
+ declare module "@tiptap/core" {
3
+ interface Commands<ReturnType> {
4
+ math: {
5
+ insertMath: (latex: string) => ReturnType;
6
+ updateMath: (pos: number, latex: string) => ReturnType;
7
+ };
8
+ }
9
+ }
10
+ export declare const MathNode: Node<any, any>;
@@ -0,0 +1,9 @@
1
+ import { Node } from "@tiptap/core";
2
+ export interface EmbedAttrs {
3
+ src: string;
4
+ width?: number;
5
+ height?: number;
6
+ x?: number;
7
+ y?: number;
8
+ }
9
+ export declare const ResizableEmbed: Node<any, any>;
@@ -0,0 +1,2 @@
1
+ import { Node } from "@tiptap/core";
2
+ export declare const ResizableImage: Node<any, any>;
@@ -0,0 +1,2 @@
1
+ import { Node } from "@tiptap/core";
2
+ export declare const ResizableVideo: Node<any, any>;
@@ -0,0 +1,2 @@
1
+ import { Extension } from "@tiptap/core";
2
+ export declare const WordCount: Extension<any, any>;
@@ -0,0 +1,8 @@
1
+ import { FeatureFlags } from "../../types/TetronsEditorProps";
2
+ import { Editor } from "@tiptap/react";
3
+ interface AlignGroupProps {
4
+ features: FeatureFlags;
5
+ editor: Editor;
6
+ }
7
+ declare const AlignGroup: React.FC<AlignGroupProps>;
8
+ export default AlignGroup;
@@ -0,0 +1,8 @@
1
+ import { FeatureFlags } from "../../types/TetronsEditorProps";
2
+ import { Editor } from "@tiptap/react";
3
+ interface ClipboardGroupProps {
4
+ features: FeatureFlags;
5
+ editor: Editor;
6
+ }
7
+ declare const ClipboardGroup: React.FC<ClipboardGroupProps>;
8
+ export default ClipboardGroup;
@@ -0,0 +1,8 @@
1
+ import { Editor } from "@tiptap/react";
2
+ import { FeatureFlags } from "../../types/TetronsEditorProps";
3
+ interface ColorGroupProps {
4
+ features: FeatureFlags;
5
+ editor: Editor;
6
+ }
7
+ export default function ColorGroup({ features, editor }: ColorGroupProps): import("react/jsx-runtime").JSX.Element;
8
+ export {};
@@ -0,0 +1,12 @@
1
+ import React from "react";
2
+ import { FeatureFlags } from "../../types/TetronsEditorProps";
3
+ import { Editor } from "@tiptap/react";
4
+ import type { VersionEntry } from "../../../../types/VersionEntry";
5
+ interface FileGroupProps {
6
+ features: FeatureFlags;
7
+ editor: Editor | null;
8
+ versions: VersionEntry[];
9
+ onLoadVersions?: (versions: VersionEntry[]) => void;
10
+ }
11
+ declare const FileGroup: React.FC<FileGroupProps>;
12
+ export default FileGroup;
@@ -0,0 +1,6 @@
1
+ import { PremiumFeatureFlags } from "../../types/TetronsEditorProps";
2
+ import { Editor } from "@tiptap/react";
3
+ export default function InsertGroup({ editor, features, }: {
4
+ editor: Editor;
5
+ features: PremiumFeatureFlags;
6
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,8 @@
1
+ import { FeatureFlags } from "../../types/TetronsEditorProps";
2
+ import { Editor } from "@tiptap/react";
3
+ interface ListGroupProps {
4
+ features: FeatureFlags;
5
+ editor: Editor;
6
+ }
7
+ declare const ListGroup: React.FC<ListGroupProps>;
8
+ export default ListGroup;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { Editor } from "@tiptap/react";
3
+ import { PlatinumOnlyFeatureFlags } from "../../types/TetronsEditorProps";
4
+ interface PlatinumGroupProps {
5
+ editor: Editor;
6
+ features?: PlatinumOnlyFeatureFlags;
7
+ onAIClick?: () => void;
8
+ onPreviewClick?: () => void;
9
+ onToggleSpellCheck?: () => void;
10
+ spellCheckEnabled?: boolean;
11
+ onLangClick?: () => void;
12
+ onVoiceClick?: () => void;
13
+ onVirtualKeyboardClick?: () => void;
14
+ onCodeEditorClick?: () => void;
15
+ showMathEquationModal?: () => void;
16
+ onGetContentFromImage?: () => void;
17
+ }
18
+ declare const PlatinumGroup: React.FC<PlatinumGroupProps>;
19
+ export default PlatinumGroup;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ interface PreviewModalProps {
3
+ open: boolean;
4
+ onClose: () => void;
5
+ html: string;
6
+ }
7
+ declare const PreviewModal: React.FC<PreviewModalProps>;
8
+ export default PreviewModal;
@@ -0,0 +1,8 @@
1
+ import { FeatureFlags } from "../../types/TetronsEditorProps";
2
+ import { Editor } from "@tiptap/react";
3
+ interface TextFormattingGroupProps {
4
+ features: FeatureFlags;
5
+ editor: Editor;
6
+ }
7
+ declare const TextFormattingGroup: React.FC<TextFormattingGroupProps>;
8
+ export default TextFormattingGroup;
@@ -0,0 +1,10 @@
1
+ import { PremiumFeatureFlags } from "../../types/TetronsEditorProps";
2
+ import { Editor } from "@tiptap/react";
3
+ interface UtilityGroupProps {
4
+ features: PremiumFeatureFlags;
5
+ editor: Editor | null;
6
+ zoom: number;
7
+ setZoom: (z: number) => void;
8
+ }
9
+ declare const UtilityGroup: ({ features, editor, zoom, setZoom, }: UtilityGroupProps) => import("react/jsx-runtime").JSX.Element | null;
10
+ export default UtilityGroup;
@@ -0,0 +1,6 @@
1
+ import { Editor } from "@tiptap/react";
2
+ export declare function useFileActions(editor: Editor | null): {
3
+ newFile: () => void;
4
+ openFile: () => Promise<void>;
5
+ saveFile: () => Promise<void>;
6
+ };
@@ -0,0 +1,8 @@
1
+ import { Editor } from "@tiptap/react";
2
+ export declare function useUtilityActions(editor: Editor | null, setZoom?: (z: number | ((prev: number) => number)) => void): {
3
+ print: () => void;
4
+ exportFile: (type: "html" | "pdf" | "docx") => Promise<void>;
5
+ zoomIn: () => void | undefined;
6
+ zoomOut: () => void | undefined;
7
+ zoomReset: () => void | undefined;
8
+ };