eddyter 1.3.59 → 1.3.60

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.
@@ -1,7 +1,7 @@
1
1
  var Gu = Object.defineProperty;
2
2
  var zu = (fo, ho, qi) => ho in fo ? Gu(fo, ho, { enumerable: !0, configurable: !0, writable: !0, value: qi }) : fo[ho] = qi;
3
3
  var fn = (fo, ho, qi) => (zu(fo, typeof ho != "symbol" ? ho + "" : ho, qi), qi);
4
- import { g as Wu, c as ql } from "./index-25fd6b76.js";
4
+ import { g as Wu, c as ql } from "./index-e3302f38.js";
5
5
  function Xu(fo, ho) {
6
6
  for (var qi = 0; qi < ho.length; qi++) {
7
7
  const Ko = ho[qi];
@@ -1,7 +1,7 @@
1
1
  var tc = Object.defineProperty;
2
2
  var ec = (Si, Li, Gs) => Li in Si ? tc(Si, Li, { enumerable: !0, configurable: !0, writable: !0, value: Gs }) : Si[Li] = Gs;
3
3
  var en = (Si, Li, Gs) => (ec(Si, typeof Li != "symbol" ? Li + "" : Li, Gs), Gs);
4
- import { g as Ac, c as Ma } from "./index-25fd6b76.js";
4
+ import { g as Ac, c as Ma } from "./index-e3302f38.js";
5
5
  function rc(Si, Li) {
6
6
  for (var Gs = 0; Gs < Li.length; Gs++) {
7
7
  const qs = Li[Gs];
@@ -1,7 +1,7 @@
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-25fd6b76.js";
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
5
  import "react";
6
6
  import "axios";
7
7
  import "react-dom";
@@ -19,6 +19,7 @@ import "@lexical/react/LexicalRichTextPlugin";
19
19
  import "@lexical/react/LexicalTablePlugin";
20
20
  import "@lexical/table";
21
21
  import "@lexical/utils";
22
+ import "@lexical/markdown";
22
23
  import "@lexical/code";
23
24
  import "@lexical/link";
24
25
  import "@lexical/list";
@@ -38,7 +39,7 @@ const B = (t) => t ? t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFix
38
39
  }, L = (t) => {
39
40
  const o = E(t);
40
41
  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" });
41
- }, st = ({ src: t, fileName: o, fileSize: n, nodeKey: s }) => {
42
+ }, mt = ({ src: t, fileName: o, fileSize: n, nodeKey: s }) => {
42
43
  const [x] = v();
43
44
  if (!t || !o)
44
45
  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" }) });
@@ -109,5 +110,5 @@ const B = (t) => t ? t < 1024 ? `${t} B` : t < 1024 * 1024 ? `${(t / 1024).toFix
109
110
  );
110
111
  };
111
112
  export {
112
- st as default
113
+ mt as default
113
114
  };
@@ -15,7 +15,7 @@ import { useLexicalNodeSelection as st } from "@lexical/react/useLexicalNodeSele
15
15
  import { calculateZoomLevel as xe, mergeRegister as dt } from "@lexical/utils";
16
16
  import { RootNode as Se, TextNode as Le, LineBreakNode as We, ParagraphNode as Ae, $getSelection as J, $isNodeSelection as X, $isParagraphNode as we, $setSelection as ce, $isRangeSelection as lt, SELECTION_CHANGE_COMMAND as mt, COMMAND_PRIORITY_LOW as M, CLICK_COMMAND as ut, DRAGSTART_COMMAND as gt, KEY_DELETE_COMMAND as ht, KEY_BACKSPACE_COMMAND as pt, KEY_ENTER_COMMAND as ft, KEY_ESCAPE_COMMAND as bt, createCommand as yt, $getNodeByKey as U } from "lexical";
17
17
  import { useRef as T, useState as R, useEffect as ae, useCallback as W, Suspense as xt } from "react";
18
- import { a as wt, D as Ct, b as Nt, d as vt, e as kt, f as Et, h as It, B as Ce, L as Me, i as $e, $ as F, W as Pt, j as Rt, A as Dt, k as zt, l as St, T as Lt, m as Wt, S as At, E as Mt, n as $t, t as $, o as _t, p as Ot, C as Ht } from "./index-25fd6b76.js";
18
+ import { a as wt, D as Ct, b as Nt, d as vt, e as kt, f as Et, h as It, B as Ce, L as Me, i as $e, $ as F, W as Pt, j as Rt, A as Dt, k as zt, l as St, T as Lt, m as Wt, S as At, E as Mt, n as $t, t as $, o as _t, p as Ot, C as Ht } from "./index-e3302f38.js";
19
19
  import "axios";
20
20
  import "react-dom";
21
21
  import "@emotion/styled";
@@ -26,6 +26,7 @@ import "@lexical/react/LexicalHorizontalRulePlugin";
26
26
  import "@lexical/react/LexicalListPlugin";
27
27
  import "@lexical/react/LexicalTablePlugin";
28
28
  import "@lexical/table";
29
+ import "@lexical/markdown";
29
30
  import "@lexical/list";
30
31
  import "@lexical/rich-text";
31
32
  import "@lexical/selection";
@@ -401,7 +402,7 @@ function Ft() {
401
402
  }
402
403
  );
403
404
  }
404
- function Sr({
405
+ function Lr({
405
406
  src: u,
406
407
  altText: f,
407
408
  nodeKey: b,
@@ -1011,5 +1012,5 @@ function Sr({
1011
1012
  }
1012
1013
  export {
1013
1014
  Ne as RIGHT_CLICK_IMAGE_COMMAND,
1014
- Sr as default
1015
+ Lr as default
1015
1016
  };