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.
- package/dist/app/HomeClient.d.ts +1 -0
- package/dist/app/layout.d.ts +7 -0
- package/dist/app/page.d.ts +1 -0
- package/dist/app/view/page.d.ts +1 -0
- package/dist/chunk-EO6RXFIC.mjs +79 -0
- package/dist/components/Editor/AIModal.d.ts +8 -0
- package/dist/components/Editor/Editor.d.ts +3 -0
- package/dist/components/Editor/LinkPreviewPopup.d.ts +14 -0
- package/dist/components/Editor/TetronsEditor.d.ts +8 -0
- package/dist/components/Editor/config/versionConfig.d.ts +3 -0
- package/dist/components/Editor/toolbar/BasicToolbar.d.ts +12 -0
- package/dist/components/Editor/toolbar/CodeEditor.d.ts +13 -0
- package/dist/components/Editor/toolbar/Converter.d.ts +3 -0
- package/dist/components/Editor/toolbar/FaqSection.d.ts +2 -0
- package/dist/components/Editor/toolbar/FindReplaceModal.d.ts +9 -0
- package/dist/components/Editor/toolbar/HelpModal.d.ts +8 -0
- package/dist/components/Editor/toolbar/ImageToTextModal.d.ts +7 -0
- package/dist/components/Editor/toolbar/MathEquation.d.ts +10 -0
- package/dist/components/Editor/toolbar/SecondRow.d.ts +18 -0
- package/dist/components/Editor/toolbar/ShareEmailModal.d.ts +5 -0
- package/dist/components/Editor/toolbar/ShareLinkModal.d.ts +7 -0
- package/dist/components/Editor/toolbar/Tabs.d.ts +6 -0
- package/dist/components/Editor/toolbar/ThirdRow.d.ts +9 -0
- package/dist/components/Editor/toolbar/TopMenu.d.ts +24 -0
- package/dist/components/Editor/toolbar/Translator.d.ts +3 -0
- package/dist/components/Editor/toolbar/UserGuideSection.d.ts +2 -0
- package/dist/components/Editor/toolbar/VersionDiffModal.d.ts +6 -0
- package/dist/components/Editor/toolbar/VersionHistoryModal.d.ts +12 -0
- package/dist/components/Editor/toolbar/VersionInfoSection.d.ts +2 -0
- package/dist/components/Editor/toolbar/VersionRollbackModal.d.ts +6 -0
- package/dist/components/Editor/toolbar/VirtualKeyboard.d.ts +11 -0
- package/dist/components/Editor/toolbar/VoiceModal.d.ts +7 -0
- package/dist/components/Editor/toolbar/extensions/Audio.d.ts +2 -0
- package/dist/components/Editor/toolbar/extensions/BetterListItem.d.ts +1 -0
- package/dist/components/Editor/toolbar/extensions/Comment.d.ts +17 -0
- package/dist/components/Editor/toolbar/extensions/Embed.d.ts +7 -0
- package/dist/components/Editor/toolbar/extensions/FontFamily.d.ts +10 -0
- package/dist/components/Editor/toolbar/extensions/FontSize.d.ts +10 -0
- package/dist/components/Editor/toolbar/extensions/FontStyleCommands.d.ts +2 -0
- package/dist/components/Editor/toolbar/extensions/LineHeightExtension.d.ts +2 -0
- package/dist/components/Editor/toolbar/extensions/MathBlock.d.ts +12 -0
- package/dist/components/Editor/toolbar/extensions/MathBlockView.d.ts +3 -0
- package/dist/components/Editor/toolbar/extensions/MathNode.d.ts +10 -0
- package/dist/components/Editor/toolbar/extensions/ResizableEmbed.d.ts +9 -0
- package/dist/components/Editor/toolbar/extensions/ResizableImage.d.ts +2 -0
- package/dist/components/Editor/toolbar/extensions/ResizableVideo.d.ts +2 -0
- package/dist/components/Editor/toolbar/extensions/WordCount.d.ts +2 -0
- package/dist/components/Editor/toolbar/groups/AlignGroup.d.ts +8 -0
- package/dist/components/Editor/toolbar/groups/ClipboardGroup.d.ts +8 -0
- package/dist/components/Editor/toolbar/groups/ColorGroup.d.ts +8 -0
- package/dist/components/Editor/toolbar/groups/FileGroup.d.ts +12 -0
- package/dist/components/Editor/toolbar/groups/InsertGroup.d.ts +6 -0
- package/dist/components/Editor/toolbar/groups/ListGroup.d.ts +8 -0
- package/dist/components/Editor/toolbar/groups/PlatinumGroup.d.ts +19 -0
- package/dist/components/Editor/toolbar/groups/PreviewModal.d.ts +8 -0
- package/dist/components/Editor/toolbar/groups/TextFormattingGroup.d.ts +8 -0
- package/dist/components/Editor/toolbar/groups/UtilityGroup.d.ts +10 -0
- package/dist/components/Editor/toolbar/useFileActions.d.ts +6 -0
- package/dist/components/Editor/toolbar/useUtilityActions.d.ts +8 -0
- package/dist/components/Editor/types/TetronsEditorProps.d.ts +100 -0
- package/dist/components/Editor/types/ValidationResponse.d.ts +10 -0
- package/dist/components/ui/Button.d.ts +12 -0
- package/dist/components/ui/ConfirmModal.d.ts +10 -0
- package/dist/components/ui/Dropdown.d.ts +14 -0
- package/dist/index.css +4888 -0
- package/dist/index.d.ts +6 -16
- package/dist/index.mjs +14802 -14936
- package/dist/lib/indianKeyboardLayouts.d.ts +1 -0
- package/dist/lib/languages.d.ts +1 -0
- package/dist/server/dictionary.d.ts +1 -0
- package/dist/tiptap/extensions/SpellCheck.d.ts +2 -0
- package/dist/types/VersionEntry.d.ts +6 -0
- package/dist/typescript-A2I22B6E.mjs +210768 -0
- package/package.json +88 -109
- package/dist/app/api/ai-action/route.cjs +0 -61
- package/dist/app/api/ai-action/route.d.mts +0 -9
- package/dist/app/api/ai-action/route.d.ts +0 -9
- package/dist/app/api/ai-action/route.mjs +0 -36
- package/dist/app/api/execute/route.cjs +0 -55
- package/dist/app/api/execute/route.d.mts +0 -8
- package/dist/app/api/execute/route.d.ts +0 -8
- package/dist/app/api/execute/route.mjs +0 -30
- package/dist/app/api/export/route.cjs +0 -33
- package/dist/app/api/export/route.d.mts +0 -3
- package/dist/app/api/export/route.d.ts +0 -3
- package/dist/app/api/export/route.mjs +0 -8
- package/dist/app/api/register/route.cjs +0 -120
- package/dist/app/api/register/route.d.mts +0 -10
- package/dist/app/api/register/route.d.ts +0 -10
- package/dist/app/api/register/route.mjs +0 -85
- package/dist/app/api/save/route.cjs +0 -53
- package/dist/app/api/save/route.d.mts +0 -9
- package/dist/app/api/save/route.d.ts +0 -9
- package/dist/app/api/save/route.mjs +0 -18
- package/dist/app/api/transcribe/route.cjs +0 -72
- package/dist/app/api/transcribe/route.d.mts +0 -10
- package/dist/app/api/transcribe/route.d.ts +0 -10
- package/dist/app/api/transcribe/route.mjs +0 -46
- package/dist/app/api/validate/route.cjs +0 -143
- package/dist/app/api/validate/route.d.mts +0 -13
- package/dist/app/api/validate/route.d.ts +0 -13
- package/dist/app/api/validate/route.mjs +0 -107
- package/dist/components/UI/Dropdown.tsx +0 -0
- package/dist/components/tetrons/EditorContent.tsx +0 -272
- package/dist/components/tetrons/ResizableImageComponent.tsx +0 -112
- package/dist/components/tetrons/ResizableVideoComponent.tsx +0 -56
- package/dist/dictionaries/index.aff +0 -205
- package/dist/dictionaries/index.dic +0 -49569
- package/dist/index.cjs +0 -17652
- package/dist/index.d.mts +0 -16
- package/dist/styles/tetrons.css +0 -981
- package/public/dictionaries/index.aff +0 -205
- package/public/dictionaries/index.dic +0 -49569
- /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,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,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,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,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,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,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 @@
|
|
|
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,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,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,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,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,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 { 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,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
|
+
};
|