eddyter 1.4.12 → 1.4.13

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 (41) hide show
  1. package/README.md +3 -2
  2. package/dist/CommentBubblePlugin-DDCERFQO.js +29 -0
  3. package/dist/{LazyCodeMirror-CcceEUqu.js → LazyCodeMirror-C1bW4mVF.js} +941 -1484
  4. package/dist/{LazySignatureCanvas-Cck44R9l.js → LazySignatureCanvas-D5P1189T.js} +21 -38
  5. package/dist/Provider/EditorProvider.d.ts +2 -0
  6. package/dist/api/auth.d.ts +4 -0
  7. package/dist/assets/style.css +1 -1
  8. package/dist/{babel-CCPWkrf4.js → babel-B9hn44Wo.js} +726 -1302
  9. package/dist/components/ColorPicker/LazyHexColorPicker.d.ts +2 -0
  10. package/dist/components/CommentToggle/CommentToggle.d.ts +2 -2
  11. package/dist/components/ConfigurableEditorWithAuth.d.ts +2 -2
  12. package/dist/components/EmojiPickerWidget/LazyEmojiPicker.d.ts +4 -0
  13. package/dist/components/LockedFeature/FeatureLockCard.d.ts +22 -0
  14. package/dist/components/LockedFeature/FeatureLockTooltipContent.d.ts +12 -0
  15. package/dist/components/LockedFeature/LockedFeature.d.ts +6 -1
  16. package/dist/components/LockedFeature/lockedFeatureMetadata.d.ts +7 -0
  17. package/dist/components/Toolbar/styles.d.ts +5 -5
  18. package/dist/components/ui/tooltip.d.ts +2 -1
  19. package/dist/{estree-CxUPh9wa.js → estree-CocPn_Md.js} +529 -917
  20. package/dist/{generateDocxThumbnail-DGj_L73_.js → generateDocxThumbnail-BVFpoKUP.js} +762 -1118
  21. package/dist/{generatePdfThumbnail-D1ui86rp.js → generatePdfThumbnail-Pvt57kGy.js} +13 -19
  22. package/dist/{generateXlsxThumbnail-CbJOr-_6.js → generateXlsxThumbnail-DRggrLYK.js} +3322 -3508
  23. package/dist/{html-CmniStvG.js → html-CxCicOef.js} +350 -589
  24. package/dist/{html2canvas.esm-C2wu93Kq.js → html2canvas.esm-BD_Vwvv8.js} +139 -204
  25. package/dist/{html2pdf.bundle.min-CN_w9Sxu.js → html2pdf.bundle.min-DElEIEzd.js} +3405 -5221
  26. package/dist/{index-DiSjJC3k.js → index-C9Dld3-L.js} +13 -13
  27. package/dist/{index-CuwrKBfY.js → index-Cojy1w7r.js} +194 -217
  28. package/dist/index-D11sRTul.js +147 -0
  29. package/dist/{index-Dh0oRk6u.js → index-DFEFJp4J.js} +37294 -41489
  30. package/dist/index-D_izLqTY.js +552 -0
  31. package/dist/{index-hrDzgkRb.js → index-ZBDns08-.js} +81 -80
  32. package/dist/index-rm00T8b9.js +166 -0
  33. package/dist/index.js +2 -2
  34. package/dist/{markdown-B0mEGGfQ.js → markdown-BUjgWFLu.js} +578 -1015
  35. package/dist/{objectWithoutPropertiesLoose-DO0w4vQT.js → objectWithoutPropertiesLoose-DiWPeE4c.js} +6 -10
  36. package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -1
  37. package/dist/plugins/LocalStoragePlugin.d.ts +0 -2
  38. package/dist/{postcss-B0bxXf7u.js → postcss-CGIcwj_g.js} +615 -1065
  39. package/dist/{standalone-DmuJV5rn.js → standalone-C0qguT38.js} +350 -596
  40. package/dist/{typescript-DZlC_9M8.js → typescript-BM7wk6k-.js} +1114 -1806
  41. package/package.json +8 -1
@@ -1,30 +1,30 @@
1
1
  import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
- import { useLexicalComposerContext as $ } from "@lexical/react/LexicalComposerContext";
2
+ import { useLexicalComposerContext as T } from "@lexical/react/LexicalComposerContext";
3
3
  import { $getNodeByKey as g } from "lexical";
4
- import { useState as j, useEffect as D } from "react";
5
- import { $ as k, D as y, T as B, F as h, a as E, b as I } from "./index-Dh0oRk6u.js";
6
- function W(e, t) {
4
+ import { useState as B, useEffect as D } from "react";
5
+ import { j as k, D as y, T as E, F as h, k as I, l as W } from "./index-DFEFJp4J.js";
6
+ function $(e, t) {
7
7
  const d = e.split(".").pop()?.toLowerCase();
8
8
  return d === "pdf" || t.startsWith("data:application/pdf") ? "pdf" : d === "docx" || t.startsWith("data:application/vnd.openxmlformats") && e.toLowerCase().endsWith(".docx") ? "docx" : d === "xlsx" || d === "xls" || t.startsWith("data:application/vnd.openxmlformats-officedocument.spreadsheetml") || t.startsWith("data:application/vnd.ms-excel") ? "xlsx" : null;
9
9
  }
10
10
  function z(e, t) {
11
- const [d, n] = j(null);
11
+ const [d, n] = B(null);
12
12
  return D(() => {
13
- const c = e && t ? W(t, e) : null;
13
+ const c = e && t ? $(t, e) : null;
14
14
  if (!e || !t || !c) {
15
15
  n(null);
16
16
  return;
17
17
  }
18
18
  let l = !1;
19
- return c === "pdf" ? import("./generatePdfThumbnail-D1ui86rp.js").then(({ generatePdfThumbnail: o }) => o(e)).then((o) => {
19
+ return c === "pdf" ? import("./generatePdfThumbnail-Pvt57kGy.js").then(({ generatePdfThumbnail: o }) => o(e)).then((o) => {
20
20
  l || n(o);
21
21
  }).catch(() => {
22
22
  l || n(null);
23
- }) : c === "docx" ? import("./generateDocxThumbnail-DGj_L73_.js").then(({ generateDocxThumbnail: o }) => o(e)).then((o) => {
23
+ }) : c === "docx" ? import("./generateDocxThumbnail-BVFpoKUP.js").then(({ generateDocxThumbnail: o }) => o(e)).then((o) => {
24
24
  l || n(o);
25
25
  }).catch(() => {
26
26
  l || n(null);
27
- }) : c === "xlsx" && import("./generateXlsxThumbnail-CbJOr-_6.js").then(({ generateXlsxThumbnail: o }) => o(e)).then((o) => {
27
+ }) : c === "xlsx" && import("./generateXlsxThumbnail-DRggrLYK.js").then(({ generateXlsxThumbnail: o }) => o(e)).then((o) => {
28
28
  l || n(o);
29
29
  }).catch(() => {
30
30
  l || n(null);
@@ -41,7 +41,7 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
41
41
  return t === "pdf" || t === "docx" || t === "xlsx" || t === "xls";
42
42
  }, C = (e) => {
43
43
  const t = N(e);
44
- return ["pdf", "doc", "docx", "txt", "odt"].includes(t) ? /* @__PURE__ */ r(h, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-blue-600" }) : ["xls", "xlsx", "csv"].includes(t) ? /* @__PURE__ */ r(h, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-green-600" }) : ["ppt", "pptx"].includes(t) ? /* @__PURE__ */ r(h, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-red-600" }) : ["zip", "rar", "7z", "tar", "gz"].includes(t) ? /* @__PURE__ */ r(E, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-orange-500" }) : /* @__PURE__ */ r(I, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-gray-500" });
44
+ return ["pdf", "doc", "docx", "txt", "odt"].includes(t) ? /* @__PURE__ */ r(h, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-blue-600" }) : ["xls", "xlsx", "csv"].includes(t) ? /* @__PURE__ */ r(h, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-green-600" }) : ["ppt", "pptx"].includes(t) ? /* @__PURE__ */ r(h, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-red-600" }) : ["zip", "rar", "7z", "tar", "gz"].includes(t) ? /* @__PURE__ */ r(I, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-orange-500" }) : /* @__PURE__ */ r(W, { className: "cteditor-w-8 cteditor-h-8 cteditor-text-gray-500" });
45
45
  }, H = ({
46
46
  src: e,
47
47
  fileName: t,
@@ -49,7 +49,7 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
49
49
  displayType: n = "card",
50
50
  nodeKey: c
51
51
  }) => {
52
- const l = n === "inline" ? "inline" : "card", [o] = $(), u = z(F(t) ? e : void 0, t);
52
+ const l = n === "inline" ? "inline" : "card", [o] = T(), u = z(F(t) ? e : void 0, t);
53
53
  if (D(() => {
54
54
  u && o.update(() => {
55
55
  const a = g(c);
@@ -66,7 +66,7 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
66
66
  const w = new Uint8Array(x);
67
67
  for (; x--; )
68
68
  w[x] = b.charCodeAt(x);
69
- const T = new Blob([w], { type: L }), v = URL.createObjectURL(T), s = document.createElement("a");
69
+ const j = new Blob([w], { type: L }), v = URL.createObjectURL(j), s = document.createElement("a");
70
70
  s.href = v, s.download = t, s.style.display = "none", document.body.appendChild(s), s.click(), document.body.removeChild(s), setTimeout(() => URL.revokeObjectURL(v), 100);
71
71
  } else {
72
72
  const i = document.createElement("a");
@@ -145,7 +145,7 @@ const R = (e) => e ? e < 1024 ? `${e} B` : e < 1024 * 1024 ? `${(e / 1024).toFix
145
145
  className: "cteditor-p-1 cteditor-rounded-md cteditor-text-black/80 hover:cteditor-bg-black/10 cteditor-transition-colors",
146
146
  "aria-label": "Delete file",
147
147
  title: "Delete file",
148
- children: /* @__PURE__ */ r(B, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-current" })
148
+ children: /* @__PURE__ */ r(E, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-current" })
149
149
  }
150
150
  )
151
151
  ] })