eddyter 1.3.60 → 1.3.61
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/api/ai/index.d.ts +12 -12
- package/dist/assets/index.css +1 -0
- package/dist/babel-19rkKi7e.js +7157 -0
- package/dist/components/FileUpload/InsertFileDialog.d.ts +0 -1
- package/dist/components/LinkPreviewHover/index.d.ts +0 -1
- package/dist/components/ScopedEditor.d.ts +0 -1
- package/dist/components/ui/dropdown-menu.d.ts +3 -3
- package/dist/components/ui/skeleton.d.ts +0 -1
- package/dist/context/ToolbarContext.d.ts +6 -2
- package/dist/estree-DmlwiAu4.js +4453 -0
- package/dist/hooks/useModal.d.ts +0 -1
- package/dist/html-DtcgJGeD.js +2760 -0
- package/dist/html2pdf.bundle-BP8K5ERw.js +32961 -0
- package/dist/html2pdf.bundle.min-BrDn1HSi.js +20244 -0
- package/dist/{index-e3302f38.js → index-CFq39nnT.js} +14402 -15220
- package/dist/{index-98d915c4.js → index-CnBHpreC.js} +347 -378
- package/dist/{index-8889e1ba.js → index-DnHnFalw.js} +8 -39
- package/dist/index.js +13 -47
- package/dist/markdown-C2JcxpgA.js +3163 -0
- package/dist/plugins/AutocompletePlugin.d.ts +0 -1
- package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRulePlugin.d.ts +0 -1
- package/dist/plugins/HtmlSyncPlugin.d.ts +0 -1
- package/dist/plugins/LinkPreviewPlugin/index.d.ts +0 -1
- package/dist/plugins/PasteOptionsPlugin/index.d.ts +0 -1
- package/dist/plugins/SignatureCanvasPlugin/SignatureCanvasPlugin.d.ts +0 -1
- package/dist/plugins/SlashCommandPlugin/index.d.ts +0 -1
- package/dist/plugins/UsageTrackingPlugin.d.ts +0 -1
- package/dist/plugins/VoiceTranscriptPlugin.d.ts +1 -1
- package/dist/postcss-Banlrd6S.js +4703 -0
- package/dist/standalone-JqHlnZSs.js +2429 -0
- package/dist/typescript-D_phonMq.js +12929 -0
- package/package.json +6 -6
- package/dist/assets/style.css +0 -1
- package/dist/babel-44680aef.js +0 -7744
- package/dist/estree-a7dc9ac5.js +0 -4647
- package/dist/html-f2fcab26.js +0 -2882
- package/dist/html2pdf.bundle-519d30c0.js +0 -34001
- package/dist/html2pdf.bundle.min-8451fd59.js +0 -21964
- package/dist/markdown-48d2f5f1.js +0 -3592
- package/dist/postcss-9ac167c3.js +0 -5172
- package/dist/standalone-2029bc8b.js +0 -2467
- package/dist/typescript-bd1bb88f.js +0 -13632
|
@@ -1,45 +1,14 @@
|
|
|
1
1
|
import { jsx as r, jsxs as a } from "react/jsx-runtime";
|
|
2
2
|
import { useLexicalComposerContext as v } from "@lexical/react/LexicalComposerContext";
|
|
3
3
|
import { $getNodeByKey as w } from "lexical";
|
|
4
|
-
import { q as k, r as F, F as y, s as N, u as C, v as D } from "./index-
|
|
5
|
-
import "react";
|
|
6
|
-
import "axios";
|
|
7
|
-
import "react-dom";
|
|
8
|
-
import "@emotion/styled";
|
|
9
|
-
import "@lexical/html";
|
|
10
|
-
import "@lexical/react/LexicalCheckListPlugin";
|
|
11
|
-
import "@lexical/react/LexicalComposer";
|
|
12
|
-
import "@lexical/react/LexicalContentEditable";
|
|
13
|
-
import "@lexical/react/LexicalErrorBoundary";
|
|
14
|
-
import "@lexical/react/LexicalHistoryPlugin";
|
|
15
|
-
import "@lexical/react/LexicalHorizontalRulePlugin";
|
|
16
|
-
import "@lexical/react/LexicalListPlugin";
|
|
17
|
-
import "@lexical/react/LexicalOnChangePlugin";
|
|
18
|
-
import "@lexical/react/LexicalRichTextPlugin";
|
|
19
|
-
import "@lexical/react/LexicalTablePlugin";
|
|
20
|
-
import "@lexical/table";
|
|
21
|
-
import "@lexical/utils";
|
|
22
|
-
import "@lexical/markdown";
|
|
23
|
-
import "@lexical/code";
|
|
24
|
-
import "@lexical/link";
|
|
25
|
-
import "@lexical/list";
|
|
26
|
-
import "@lexical/rich-text";
|
|
27
|
-
import "@lexical/selection";
|
|
28
|
-
import "@lexical/react/LexicalHorizontalRuleNode";
|
|
29
|
-
import "@lexical/react/useLexicalNodeSelection";
|
|
30
|
-
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
31
|
-
import "emoji-picker-react";
|
|
32
|
-
import "@lexical/react/LexicalLinkPlugin";
|
|
33
|
-
import "@lexical/react/LexicalTypeaheadMenuPlugin";
|
|
34
|
-
import "@lexical/react/useLexicalEditable";
|
|
35
|
-
import "@lexical/react/LexicalDraggableBlockPlugin";
|
|
4
|
+
import { q as k, r as F, F as y, s as N, u as C, v as D } from "./index-CFq39nnT.js";
|
|
36
5
|
const B = (t) => t ? t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFixed(1)} KB` : t < 1024 * 1024 * 1024 ? `${(t / (1024 * 1024)).toFixed(1)} MB` : `${(t / (1024 * 1024 * 1024)).toFixed(1)} GB` : "", E = (t) => {
|
|
37
6
|
const o = t.split(".");
|
|
38
7
|
return o.length > 1 ? o[o.length - 1].toLowerCase() : "";
|
|
39
8
|
}, L = (t) => {
|
|
40
9
|
const o = E(t);
|
|
41
10
|
return ["pdf", "doc", "docx", "txt", "odt"].includes(o) ? /* @__PURE__ */ r(y, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-blue-500" }) : ["zip", "rar", "7z", "tar", "gz"].includes(o) ? /* @__PURE__ */ r(N, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-orange-500" }) : /* @__PURE__ */ r(C, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-gray-500" });
|
|
42
|
-
},
|
|
11
|
+
}, z = ({ src: t, fileName: o, fileSize: n, nodeKey: s }) => {
|
|
43
12
|
const [x] = v();
|
|
44
13
|
if (!t || !o)
|
|
45
14
|
return console.error("FileView: Missing required props", { src: t, fileName: o, fileSize: n, nodeKey: s }), /* @__PURE__ */ r("div", { className: "cteditor-inline-flex cteditor-items-center cteditor-gap-3 cteditor-px-4 cteditor-py-3 cteditor-my-2 cteditor-border cteditor-border-destructive cteditor-rounded-lg cteditor-bg-destructive/10", children: /* @__PURE__ */ r("div", { className: "cteditor-text-sm cteditor-text-destructive", children: "Error loading file" }) });
|
|
@@ -47,12 +16,12 @@ const B = (t) => t ? t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFix
|
|
|
47
16
|
i.preventDefault(), i.stopPropagation();
|
|
48
17
|
try {
|
|
49
18
|
if (t.startsWith("data:")) {
|
|
50
|
-
const e = t.split(","),
|
|
51
|
-
let c =
|
|
52
|
-
const
|
|
19
|
+
const e = t.split(","), u = e[0].match(/:(.*?);/), g = u ? u[1] : "application/octet-stream", m = atob(e[1]);
|
|
20
|
+
let c = m.length;
|
|
21
|
+
const p = new Uint8Array(c);
|
|
53
22
|
for (; c--; )
|
|
54
|
-
|
|
55
|
-
const b = new Blob([
|
|
23
|
+
p[c] = m.charCodeAt(c);
|
|
24
|
+
const b = new Blob([p], { type: g }), h = URL.createObjectURL(b), d = document.createElement("a");
|
|
56
25
|
d.href = h, d.download = o, d.style.display = "none", document.body.appendChild(d), d.click(), document.body.removeChild(d), setTimeout(() => URL.revokeObjectURL(h), 100);
|
|
57
26
|
} else {
|
|
58
27
|
const e = document.createElement("a");
|
|
@@ -110,5 +79,5 @@ const B = (t) => t ? t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFix
|
|
|
110
79
|
);
|
|
111
80
|
};
|
|
112
81
|
export {
|
|
113
|
-
|
|
82
|
+
z as default
|
|
114
83
|
};
|
package/dist/index.js
CHANGED
|
@@ -1,49 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "react/jsx-runtime";
|
|
3
|
-
import "react";
|
|
4
|
-
import "axios";
|
|
5
|
-
import "react-dom";
|
|
6
|
-
import "@emotion/styled";
|
|
7
|
-
import "@lexical/html";
|
|
8
|
-
import "@lexical/react/LexicalCheckListPlugin";
|
|
9
|
-
import "@lexical/react/LexicalComposer";
|
|
10
|
-
import "@lexical/react/LexicalComposerContext";
|
|
11
|
-
import "@lexical/react/LexicalContentEditable";
|
|
12
|
-
import "@lexical/react/LexicalErrorBoundary";
|
|
13
|
-
import "@lexical/react/LexicalHistoryPlugin";
|
|
14
|
-
import "@lexical/react/LexicalHorizontalRulePlugin";
|
|
15
|
-
import "@lexical/react/LexicalListPlugin";
|
|
16
|
-
import "@lexical/react/LexicalOnChangePlugin";
|
|
17
|
-
import "@lexical/react/LexicalRichTextPlugin";
|
|
18
|
-
import "@lexical/react/LexicalTablePlugin";
|
|
19
|
-
import "@lexical/table";
|
|
20
|
-
import "@lexical/utils";
|
|
21
|
-
import "lexical";
|
|
22
|
-
import "@lexical/markdown";
|
|
23
|
-
import "@lexical/code";
|
|
24
|
-
import "@lexical/link";
|
|
25
|
-
import "@lexical/list";
|
|
26
|
-
import "@lexical/rich-text";
|
|
27
|
-
import "@lexical/selection";
|
|
28
|
-
import "@lexical/react/LexicalHorizontalRuleNode";
|
|
29
|
-
import "@lexical/react/useLexicalNodeSelection";
|
|
30
|
-
import "@lexical/react/LexicalDecoratorBlockNode";
|
|
31
|
-
import "emoji-picker-react";
|
|
32
|
-
import "@lexical/react/LexicalLinkPlugin";
|
|
33
|
-
import "@lexical/react/LexicalTypeaheadMenuPlugin";
|
|
34
|
-
import "@lexical/react/useLexicalEditable";
|
|
35
|
-
import "@lexical/react/LexicalDraggableBlockPlugin";
|
|
1
|
+
import { w as a, x as r, y as t, z as s, H as o, G as d, I as v, J as u, K as f, M as n, N as w, O as l } from "./index-CFq39nnT.js";
|
|
36
2
|
export {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
3
|
+
a as ConfigurableEditor,
|
|
4
|
+
r as ConfigurableEditorWithAuth,
|
|
5
|
+
t as ContentPreview,
|
|
6
|
+
s as EditorProvider,
|
|
7
|
+
o as HtmlViewProvider,
|
|
8
|
+
d as LinkPreviewHover,
|
|
9
|
+
v as defaultEditorConfig,
|
|
10
|
+
u as isReactNativeWebView,
|
|
11
|
+
f as useEditor,
|
|
12
|
+
n as useHtmlView,
|
|
13
|
+
w as useReactNativeBridge,
|
|
14
|
+
l as verifyApiKey
|
|
49
15
|
};
|