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.
Files changed (42) hide show
  1. package/dist/api/ai/index.d.ts +12 -12
  2. package/dist/assets/index.css +1 -0
  3. package/dist/babel-19rkKi7e.js +7157 -0
  4. package/dist/components/FileUpload/InsertFileDialog.d.ts +0 -1
  5. package/dist/components/LinkPreviewHover/index.d.ts +0 -1
  6. package/dist/components/ScopedEditor.d.ts +0 -1
  7. package/dist/components/ui/dropdown-menu.d.ts +3 -3
  8. package/dist/components/ui/skeleton.d.ts +0 -1
  9. package/dist/context/ToolbarContext.d.ts +6 -2
  10. package/dist/estree-DmlwiAu4.js +4453 -0
  11. package/dist/hooks/useModal.d.ts +0 -1
  12. package/dist/html-DtcgJGeD.js +2760 -0
  13. package/dist/html2pdf.bundle-BP8K5ERw.js +32961 -0
  14. package/dist/html2pdf.bundle.min-BrDn1HSi.js +20244 -0
  15. package/dist/{index-e3302f38.js → index-CFq39nnT.js} +14402 -15220
  16. package/dist/{index-98d915c4.js → index-CnBHpreC.js} +347 -378
  17. package/dist/{index-8889e1ba.js → index-DnHnFalw.js} +8 -39
  18. package/dist/index.js +13 -47
  19. package/dist/markdown-C2JcxpgA.js +3163 -0
  20. package/dist/plugins/AutocompletePlugin.d.ts +0 -1
  21. package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRulePlugin.d.ts +0 -1
  22. package/dist/plugins/HtmlSyncPlugin.d.ts +0 -1
  23. package/dist/plugins/LinkPreviewPlugin/index.d.ts +0 -1
  24. package/dist/plugins/PasteOptionsPlugin/index.d.ts +0 -1
  25. package/dist/plugins/SignatureCanvasPlugin/SignatureCanvasPlugin.d.ts +0 -1
  26. package/dist/plugins/SlashCommandPlugin/index.d.ts +0 -1
  27. package/dist/plugins/UsageTrackingPlugin.d.ts +0 -1
  28. package/dist/plugins/VoiceTranscriptPlugin.d.ts +1 -1
  29. package/dist/postcss-Banlrd6S.js +4703 -0
  30. package/dist/standalone-JqHlnZSs.js +2429 -0
  31. package/dist/typescript-D_phonMq.js +12929 -0
  32. package/package.json +6 -6
  33. package/dist/assets/style.css +0 -1
  34. package/dist/babel-44680aef.js +0 -7744
  35. package/dist/estree-a7dc9ac5.js +0 -4647
  36. package/dist/html-f2fcab26.js +0 -2882
  37. package/dist/html2pdf.bundle-519d30c0.js +0 -34001
  38. package/dist/html2pdf.bundle.min-8451fd59.js +0 -21964
  39. package/dist/markdown-48d2f5f1.js +0 -3592
  40. package/dist/postcss-9ac167c3.js +0 -5172
  41. package/dist/standalone-2029bc8b.js +0 -2467
  42. 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-e3302f38.js";
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
- }, mt = ({ src: t, fileName: o, fileSize: n, nodeKey: s }) => {
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(","), m = e[0].match(/:(.*?);/), g = m ? m[1] : "application/octet-stream", p = atob(e[1]);
51
- let c = p.length;
52
- const u = new Uint8Array(c);
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
- u[c] = p.charCodeAt(c);
55
- const b = new Blob([u], { type: g }), h = URL.createObjectURL(b), d = document.createElement("a");
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
- mt as default
82
+ z as default
114
83
  };
package/dist/index.js CHANGED
@@ -1,49 +1,15 @@
1
- import { G as I, z as J, K as L, x as M, H as O, J as j, O as q, M as D, y as F, w as Q, N as S, I as T } from "./index-e3302f38.js";
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
- I as ConfigurableEditor,
38
- J as ConfigurableEditorWithAuth,
39
- L as ContentPreview,
40
- M as EditorProvider,
41
- O as HtmlViewProvider,
42
- j as LinkPreviewHover,
43
- q as defaultEditorConfig,
44
- D as isReactNativeWebView,
45
- F as useEditor,
46
- Q as useHtmlView,
47
- S as useReactNativeBridge,
48
- T as verifyApiKey
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
  };