eddyter 1.3.81 → 1.4.0

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 (28) hide show
  1. package/README.md +14 -0
  2. package/dist/api/ai/aiAgentService.d.ts +2 -0
  3. package/dist/assets/style.css +1 -1
  4. package/dist/components/ConfigurableEditorWithAuth.d.ts +2 -0
  5. package/dist/context/EditorThemeContext.d.ts +8 -0
  6. package/dist/context/HtmlViewContext.d.ts +2 -0
  7. package/dist/context/VoiceRecordingContext.d.ts +30 -0
  8. package/dist/editor/components/FloatingToolbarManager.d.ts +8 -0
  9. package/dist/editor/components/FloatingToolbarPortal.d.ts +6 -0
  10. package/dist/editor/components/ToolbarMount.d.ts +9 -0
  11. package/dist/editor/hooks/useFloatingToolbar.d.ts +7 -0
  12. package/dist/{generateDocxThumbnail-DCh0DpQm.js → generateDocxThumbnail-Bh5xHzEB.js} +1 -1
  13. package/dist/{generatePdfThumbnail-D8k_mO4q.js → generatePdfThumbnail-Dlhq91Bf.js} +1 -1
  14. package/dist/{generateXlsxThumbnail-Db5nhXLN.js → generateXlsxThumbnail-DSRkPI7J.js} +1 -1
  15. package/dist/hooks/useVoiceRecording.d.ts +15 -0
  16. package/dist/{html2pdf.bundle.min-CYrTiP9i.js → html2pdf.bundle.min-9HpAwgiB.js} +1 -1
  17. package/dist/index-BO5Zqvun.js +87321 -0
  18. package/dist/{index-CQWxSXxG.js → index-CUZB8Gle.js} +23 -23
  19. package/dist/{index-Bgccl9jH.js → index-CYT6zzrr.js} +538 -502
  20. package/dist/{index-DYduXrLZ.js → index-y3tqAwBk.js} +4 -4
  21. package/dist/index.js +1 -1
  22. package/dist/pages/ConfigurableEditor/ConfigurableEditor.d.ts +1 -0
  23. package/dist/plugins/VoiceTranscriptPlugin.d.ts +2 -16
  24. package/dist/ui/Icons.d.ts +2 -1
  25. package/dist/utils/fontLoader.d.ts +1 -1
  26. package/dist/utils/htmlFormat.d.ts +5 -3
  27. package/package.json +4 -1
  28. package/dist/index-20I04v1t.js +0 -41317
@@ -1,4 +1,4 @@
1
- import { jsxs as x, Fragment as rt, jsx as i } from "react/jsx-runtime";
1
+ import { jsxs as N, Fragment as rt, jsx as i } from "react/jsx-runtime";
2
2
  import { I as it } from "./ImageResizer-Bt7kgv0a.js";
3
3
  import { CodeNode as ot } from "@lexical/code";
4
4
  import { LinkNode as nt } from "@lexical/link";
@@ -13,9 +13,9 @@ import { RichTextPlugin as gt } from "@lexical/react/LexicalRichTextPlugin";
13
13
  import { useLexicalEditable as mt } from "@lexical/react/useLexicalEditable";
14
14
  import { useLexicalNodeSelection as ht } from "@lexical/react/useLexicalNodeSelection";
15
15
  import { mergeRegister as pt } from "@lexical/utils";
16
- import { $getSelection as L, $isNodeSelection as h, $setSelection as O, SELECTION_CHANGE_COMMAND as bt, COMMAND_PRIORITY_LOW as f, CLICK_COMMAND as Ct, DRAGSTART_COMMAND as xt, KEY_DELETE_COMMAND as Nt, KEY_BACKSPACE_COMMAND as vt, KEY_ENTER_COMMAND as Et, KEY_ESCAPE_COMMAND as Rt, RootNode as yt, TextNode as At, LineBreakNode as kt, ParagraphNode as St, $getNodeByKey as A, $isParagraphNode as T } from "lexical";
17
- import { useRef as P, useState as w, useCallback as N, useEffect as Dt } from "react";
18
- import { G as v, W as Lt, l as Pt, A as Mt, m as _t, n as $t, T as zt, x as It, L as Wt, i as Ot } from "./index-20I04v1t.js";
16
+ import { $getSelection as L, $isNodeSelection as h, $setSelection as O, SELECTION_CHANGE_COMMAND as bt, COMMAND_PRIORITY_LOW as f, CLICK_COMMAND as Ct, DRAGSTART_COMMAND as Nt, KEY_DELETE_COMMAND as xt, KEY_BACKSPACE_COMMAND as vt, KEY_ENTER_COMMAND as Et, KEY_ESCAPE_COMMAND as yt, RootNode as Rt, TextNode as At, LineBreakNode as kt, ParagraphNode as St, $getNodeByKey as A, $isParagraphNode as T } from "lexical";
17
+ import { useRef as P, useState as w, useCallback as x, useEffect as Dt } from "react";
18
+ import { H as v, W as Lt, l as Pt, A as Mt, m as _t, n as $t, T as zt, y as It, L as Wt, i as Ot } from "./index-BO5Zqvun.js";
19
19
  function ie({
20
20
  src: j,
21
21
  nodeKey: g,
@@ -29,7 +29,7 @@ function ie({
29
29
  controls: V = !0,
30
30
  position: n = "none"
31
31
  }) {
32
- const a = P(null), S = P(null), [l, d, C] = ht(g), [s, M] = w(!1), [o] = lt(), [R, H] = w(null), _ = P(null), K = mt(), D = N(
32
+ const a = P(null), S = P(null), [l, d, C] = ht(g), [s, M] = w(!1), [o] = lt(), [y, H] = w(null), _ = P(null), K = mt(), D = x(
33
33
  (t) => {
34
34
  const r = L();
35
35
  return l && h(r) && (t.preventDefault(), o.update(() => {
@@ -39,7 +39,7 @@ function ie({
39
39
  })), !1;
40
40
  },
41
41
  [o, l]
42
- ), $ = N(
42
+ ), $ = x(
43
43
  (t) => {
44
44
  const r = L(), e = S.current;
45
45
  if (l && h(r) && r.getNodes().length === 1) {
@@ -51,14 +51,14 @@ function ie({
51
51
  return !1;
52
52
  },
53
53
  [b, l, E]
54
- ), z = N(
54
+ ), z = x(
55
55
  (t) => _.current === b || S.current === t.target ? (O(null), o.update(() => {
56
56
  d(!0);
57
57
  const r = o.getRootElement();
58
58
  r !== null && r.focus();
59
59
  }), !0) : !1,
60
60
  [b, o, d]
61
- ), I = N(
61
+ ), I = x(
62
62
  (t) => {
63
63
  const r = t;
64
64
  if (s)
@@ -69,8 +69,8 @@ function ie({
69
69
  const c = e === a.current;
70
70
  let u = !1;
71
71
  if (!c && a.current) {
72
- const y = a.current.getBoundingClientRect();
73
- u = r.clientX >= y.left && r.clientX <= y.right && r.clientY >= y.top && r.clientY <= y.bottom;
72
+ const R = a.current.getBoundingClientRect();
73
+ u = r.clientX >= R.left && r.clientX <= R.right && r.clientY >= R.top && r.clientY <= R.bottom;
74
74
  }
75
75
  return c || u ? (r.shiftKey ? d(!l) : (C(), d(!0)), !0) : !1;
76
76
  },
@@ -93,12 +93,12 @@ function ie({
93
93
  f
94
94
  ),
95
95
  o.registerCommand(
96
- xt,
96
+ Nt,
97
97
  (e) => e.target === a.current ? (e.preventDefault(), !0) : !1,
98
98
  f
99
99
  ),
100
100
  o.registerCommand(
101
- Nt,
101
+ xt,
102
102
  D,
103
103
  f
104
104
  ),
@@ -109,7 +109,7 @@ function ie({
109
109
  ),
110
110
  o.registerCommand(Et, $, f),
111
111
  o.registerCommand(
112
- Rt,
112
+ yt,
113
113
  z,
114
114
  f
115
115
  )
@@ -160,7 +160,7 @@ function ie({
160
160
  c && T(c) && (r === "left" ? c.setFormat("left") : r === "right" ? c.setFormat("right") : c.setFormat(""));
161
161
  }
162
162
  });
163
- }, J = N(
163
+ }, J = x(
164
164
  (t) => {
165
165
  if (s || t.target.closest("button"))
166
166
  return;
@@ -173,9 +173,9 @@ function ie({
173
173
  !e && !c || (t.stopPropagation(), t.shiftKey ? d(!l) : (C(), d(!0)));
174
174
  },
175
175
  [s, l, d, C]
176
- ), Q = l && h(R) && !s, W = (l || s) && K, Z = typeof p == "number" && typeof k == "number", tt = typeof p == "number" ? p : "auto", et = typeof k == "number" ? k : "auto";
177
- return /* @__PURE__ */ x(rt, { children: [
178
- /* @__PURE__ */ x(
176
+ ), Q = l && h(y) && !s, W = (l || s) && K, Z = typeof p == "number" && typeof k == "number", tt = typeof p == "number" ? p : "auto", et = typeof k == "number" ? k : "auto";
177
+ return /* @__PURE__ */ N(rt, { children: [
178
+ /* @__PURE__ */ N(
179
179
  "div",
180
180
  {
181
181
  draggable: Q,
@@ -216,7 +216,7 @@ function ie({
216
216
  src: j,
217
217
  controls: V,
218
218
  preload: "metadata",
219
- className: W ? `focused ${h(R) ? "draggable" : ""}` : void 0,
219
+ className: W ? `focused ${h(y) ? "draggable" : ""}` : void 0,
220
220
  style: Z ? {
221
221
  width: tt,
222
222
  height: et,
@@ -228,8 +228,8 @@ function ie({
228
228
  draggable: "false"
229
229
  }
230
230
  ),
231
- l && h(R) && /* @__PURE__ */ x("div", { className: "cteditor-absolute cteditor-top-2 cteditor-right-2 cteditor-flex cteditor-gap-1 cteditor-z-10", children: [
232
- /* @__PURE__ */ x("div", { className: "cteditor-flex cteditor-items-center cteditor-gap-0.5 cteditor-bg-background/80 cteditor-rounded-md cteditor-shadow-md cteditor-border cteditor-border-border cteditor-p-0.5", children: [
231
+ l && h(y) && /* @__PURE__ */ N("div", { className: "cteditor-absolute cteditor-top-2 cteditor-right-2 cteditor-flex cteditor-gap-1 cteditor-z-10", children: [
232
+ /* @__PURE__ */ N("div", { className: "cteditor-flex cteditor-items-center cteditor-gap-0.5 cteditor-bg-background/80 cteditor-rounded-md cteditor-shadow-md cteditor-border cteditor-border-border cteditor-p-0.5", children: [
233
233
  /* @__PURE__ */ i(
234
234
  "button",
235
235
  {
@@ -306,7 +306,7 @@ function ie({
306
306
  }
307
307
  )
308
308
  ] }),
309
- Y && h(R) && W && /* @__PURE__ */ i(
309
+ Y && h(y) && W && /* @__PURE__ */ i(
310
310
  it,
311
311
  {
312
312
  showCaption: E,
@@ -332,12 +332,12 @@ function ie({
332
332
  maxWidth: "100%",
333
333
  ...n === "inline-center" || n === "full" ? { margin: "0 auto" } : n === "inline-right" ? { marginLeft: "auto" } : n === "left" ? { float: "left", clear: "left" } : n === "right" ? { float: "right", clear: "right" } : {}
334
334
  },
335
- children: /* @__PURE__ */ x(
335
+ children: /* @__PURE__ */ N(
336
336
  ut,
337
337
  {
338
338
  initialEditor: b,
339
339
  initialNodes: [
340
- yt,
340
+ Rt,
341
341
  At,
342
342
  kt,
343
343
  St,