eddyter 1.4.18 → 1.4.19

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 (60) hide show
  1. package/dist/AIChatPlugin-BUWq8ixX.js +1042 -0
  2. package/dist/{CombinedAutocompletGrammarPlugin-BXOz6IRb.js → CombinedAutocompletGrammarPlugin-Dq25w8tq.js} +388 -337
  3. package/dist/{CommentBubblePlugin-kiMehQkL.js → CommentBubblePlugin-B77d3Qq6.js} +4 -4
  4. package/dist/CommentPlugin-BJQyKmrN.js +212 -0
  5. package/dist/{NotePanelPlugin-FirMseLu.js → NotePanelPlugin-BqOdcg07.js} +3 -3
  6. package/dist/{TextEnhancePlugin-oXbL_F1i.js → TextEnhancePlugin-BnmdRgUu.js} +2 -2
  7. package/dist/assets/style.css +1 -1
  8. package/dist/components/AnimatedPlaceholderText.d.ts +2 -0
  9. package/dist/components/DividerPicker/DividerPicker.d.ts +17 -0
  10. package/dist/components/EditorialDivider/EditorialDividerView.d.ts +23 -0
  11. package/dist/components/EmojiPickerWidget/EmojiPickerWidget.d.ts +1 -1
  12. package/dist/components/LockedFeature/LockedFeature.d.ts +4 -0
  13. package/dist/components/Toolbar/styles.d.ts +19 -1
  14. package/dist/components/UnifiedColorPicker/UnifiedColorPicker.d.ts +1 -0
  15. package/dist/components/ui/button.d.ts +1 -1
  16. package/dist/components/ui/separator.d.ts +4 -1
  17. package/dist/constants.d.ts +12 -1
  18. package/dist/editorConfig.d.ts +7 -0
  19. package/dist/{generateDocxThumbnail-RE7yNAXP.js → generateDocxThumbnail-DBMxjZ83.js} +1 -1
  20. package/dist/{generatePdfThumbnail-CnldK2yE.js → generatePdfThumbnail-Cv2-ZCzh.js} +4 -4
  21. package/dist/{generateXlsxThumbnail-BpBB4ePK.js → generateXlsxThumbnail-UHmNc7Fa.js} +1 -1
  22. package/dist/hooks/useEditorToolbar.d.ts +1 -1
  23. package/dist/{index-CL0adQ5R.js → index-BaWQzoL2.js} +11 -11
  24. package/dist/{index-CXyZgoBl.js → index-Bex3G_eE.js} +18704 -15777
  25. package/dist/index-C_mjLQUF.js +796 -0
  26. package/dist/{index-C8ZUqYRj.js → index-ChSepytp.js} +26 -26
  27. package/dist/index-Cl_A9eof.js +1508 -0
  28. package/dist/{index-B4W_mfNI.js → index-DcHU8PlQ.js} +120 -123
  29. package/dist/{index-CKRp6axU.js → index-q_TW8dU1.js} +19 -19
  30. package/dist/index.js +7 -7
  31. package/dist/nodes/AsterismNode.d.ts +22 -0
  32. package/dist/nodes/ButtonNode.d.ts +37 -0
  33. package/dist/nodes/ColumnNode.d.ts +44 -0
  34. package/dist/nodes/ColumnsNode.d.ts +45 -0
  35. package/dist/nodes/EditorialFieldNode.d.ts +32 -0
  36. package/dist/nodes/FaqNode.d.ts +28 -0
  37. package/dist/nodes/ImagePlaceholderNode.d.ts +15 -0
  38. package/dist/nodes/LabeledRuleNode.d.ts +33 -0
  39. package/dist/nodes/OrnamentDividerNode.d.ts +22 -0
  40. package/dist/nodes/PullQuoteRulesNode.d.ts +32 -0
  41. package/dist/nodes/SectionNumberHeadingNode.d.ts +42 -0
  42. package/dist/plugins/BlockLayoutPlugin.d.ts +29 -0
  43. package/dist/plugins/ColumnAddButtonPlugin.d.ts +12 -0
  44. package/dist/plugins/CommentPlugin.commands.d.ts +1 -0
  45. package/dist/plugins/CustomHorizontalRulePlugin/CustomHorizontalRuleNode.d.ts +12 -2
  46. package/dist/plugins/CustomHorizontalRulePlugin/HorizontalRuleCustomizationDialog.d.ts +2 -1
  47. package/dist/plugins/CustomHorizontalRulePlugin/styles.d.ts +38 -0
  48. package/dist/plugins/EditorialFloatingToolbarPlugin.d.ts +8 -0
  49. package/dist/plugins/EditorialTypographyPlugin.d.ts +18 -0
  50. package/dist/plugins/PatternsPlugin.d.ts +12 -0
  51. package/dist/{sparkles-CTAYmQOE.js → sparkles-C-XoMho5.js} +1 -1
  52. package/dist/types.d.ts +11 -0
  53. package/dist/ui/Icons.d.ts +34 -9
  54. package/dist/{useVoiceToText-U0yKgS5Q.js → useVoiceToText-BzaLSbRi.js} +17 -17
  55. package/package.json +1 -1
  56. package/dist/AIChatPlugin-DsUPycjT.js +0 -872
  57. package/dist/CommentPlugin-DIuM-Jao.js +0 -154
  58. package/dist/index-DZAvLKar.js +0 -1431
  59. package/dist/index-F2-F96Nx.js +0 -720
  60. package/dist/square-CupR-YWR.js +0 -7
@@ -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 pt } from "@lexical/react/useLexicalNodeSelection";
15
15
  import { mergeRegister as ht } from "@lexical/utils";
16
- import { $getSelection as L, $isNodeSelection as p, $setSelection as W, 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 kt, LineBreakNode as At, ParagraphNode as St, $getNodeByKey as k, $isParagraphNode as T } from "lexical";
17
- import { useRef as P, useState as w, useCallback as x, useEffect as Dt } from "react";
18
- import { aL as v, ae as Lt, af as Pt, ag as Mt, ah as _t, ai as $t, aE as It, ak as zt, aH as Ot, aI as Wt } from "./index-CXyZgoBl.js";
16
+ import { $getSelection as P, $isNodeSelection as p, $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 kt, LineBreakNode as At, ParagraphNode as St, $getNodeByKey as k, $isParagraphNode as T } from "lexical";
17
+ import { useRef as L, useState as w, useCallback as x, useEffect as Dt } from "react";
18
+ import { aW as v, ap as Pt, aq as Lt, ar as Mt, as as _t, at as $t, aP as zt, av as It, aS as Wt, aT as Ot } from "./index-Bex3G_eE.js";
19
19
  function ie({
20
20
  src: j,
21
21
  nodeKey: g,
@@ -29,9 +29,9 @@ function ie({
29
29
  controls: V = !0,
30
30
  position: n = "none"
31
31
  }) {
32
- const l = P(null), S = P(null), [a, d, C] = pt(g), [s, M] = w(!1), [o] = at(), [y, H] = w(null), _ = P(null), K = mt(), D = x(
32
+ const l = L(null), S = L(null), [a, d, C] = pt(g), [s, M] = w(!1), [o] = at(), [y, H] = w(null), _ = L(null), K = mt(), D = x(
33
33
  (t) => {
34
- const r = L();
34
+ const r = P();
35
35
  return a && p(r) && (t.preventDefault(), o.update(() => {
36
36
  r.getNodes().forEach((c) => {
37
37
  v(c) && c.remove();
@@ -41,24 +41,24 @@ function ie({
41
41
  [o, a]
42
42
  ), $ = x(
43
43
  (t) => {
44
- const r = L(), e = S.current;
44
+ const r = P(), e = S.current;
45
45
  if (a && p(r) && r.getNodes().length === 1) {
46
46
  if (E)
47
- return W(null), t.preventDefault(), b.focus(), !0;
47
+ return O(null), t.preventDefault(), b.focus(), !0;
48
48
  if (e !== null && e !== document.activeElement)
49
49
  return t.preventDefault(), e.focus(), !0;
50
50
  }
51
51
  return !1;
52
52
  },
53
53
  [b, a, E]
54
- ), I = x(
55
- (t) => _.current === b || S.current === t.target ? (W(null), o.update(() => {
54
+ ), z = x(
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
- ), z = x(
61
+ ), I = x(
62
62
  (t) => {
63
63
  const r = t;
64
64
  if (s)
@@ -80,7 +80,7 @@ function ie({
80
80
  let t = !0;
81
81
  const r = ht(
82
82
  o.registerUpdateListener(({ editorState: e }) => {
83
- t && H(e.read(() => L()));
83
+ t && H(e.read(() => P()));
84
84
  }),
85
85
  o.registerCommand(
86
86
  bt,
@@ -89,7 +89,7 @@ function ie({
89
89
  ),
90
90
  o.registerCommand(
91
91
  Ct,
92
- z,
92
+ I,
93
93
  f
94
94
  ),
95
95
  o.registerCommand(
@@ -110,7 +110,7 @@ function ie({
110
110
  o.registerCommand(Et, $, f),
111
111
  o.registerCommand(
112
112
  yt,
113
- I,
113
+ z,
114
114
  f
115
115
  )
116
116
  );
@@ -125,8 +125,8 @@ function ie({
125
125
  g,
126
126
  D,
127
127
  $,
128
- I,
129
128
  z,
129
+ I,
130
130
  d
131
131
  ]);
132
132
  const X = () => {
@@ -141,9 +141,9 @@ function ie({
141
141
  const e = k(g);
142
142
  v(e) && e.setWidthAndHeight(t, r);
143
143
  });
144
- }, U = () => {
144
+ }, q = () => {
145
145
  M(!0);
146
- }, q = (t) => {
146
+ }, U = (t) => {
147
147
  t.preventDefault(), t.stopPropagation(), o.update(() => {
148
148
  const r = k(g);
149
149
  if (v(r)) {
@@ -173,7 +173,7 @@ function ie({
173
173
  !e && !c || (t.stopPropagation(), t.shiftKey ? d(!a) : (C(), d(!0)));
174
174
  },
175
175
  [s, a, d, C]
176
- ), Q = a && p(y) && !s, O = (a || s) && K, Z = typeof h == "number" && typeof A == "number", tt = typeof h == "number" ? h : "auto", et = typeof A == "number" ? A : "auto";
176
+ ), Q = a && p(y) && !s, W = (a || s) && K, Z = typeof h == "number" && typeof A == "number", tt = typeof h == "number" ? h : "auto", et = typeof A == "number" ? A : "auto";
177
177
  return /* @__PURE__ */ N(rt, { children: [
178
178
  /* @__PURE__ */ N(
179
179
  "div",
@@ -216,7 +216,7 @@ function ie({
216
216
  src: j,
217
217
  controls: V,
218
218
  preload: "metadata",
219
- className: O ? `focused ${p(y) ? "draggable" : ""}` : void 0,
219
+ className: W ? `focused ${p(y) ? "draggable" : ""}` : void 0,
220
220
  style: Z ? {
221
221
  width: tt,
222
222
  height: et,
@@ -238,7 +238,7 @@ function ie({
238
238
  className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-accent cteditor-transition-colors ${n === "left" ? "cteditor-bg-accent" : ""}`,
239
239
  "aria-label": "Wrap text left",
240
240
  title: "Wrap text left",
241
- children: /* @__PURE__ */ i(Lt, {})
241
+ children: /* @__PURE__ */ i(Pt, {})
242
242
  }
243
243
  ),
244
244
  /* @__PURE__ */ i(
@@ -249,7 +249,7 @@ function ie({
249
249
  className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-accent cteditor-transition-colors ${n === "right" ? "cteditor-bg-accent" : ""}`,
250
250
  "aria-label": "Wrap text right",
251
251
  title: "Wrap text right",
252
- children: /* @__PURE__ */ i(Pt, {})
252
+ children: /* @__PURE__ */ i(Lt, {})
253
253
  }
254
254
  ),
255
255
  /* @__PURE__ */ i("div", { className: "cteditor-w-px cteditor-h-5 cteditor-bg-border cteditor-mx-0.5" }),
@@ -295,7 +295,7 @@ function ie({
295
295
  className: `cteditor-size-6 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded hover:cteditor-bg-accent cteditor-transition-colors ${n === "none" ? "cteditor-bg-accent" : ""}`,
296
296
  "aria-label": "Inline",
297
297
  title: "Inline with text",
298
- children: /* @__PURE__ */ i(It, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-foreground" })
298
+ children: /* @__PURE__ */ i(zt, { className: "cteditor-w-4 cteditor-h-4 cteditor-text-foreground" })
299
299
  }
300
300
  )
301
301
  ] }),
@@ -304,16 +304,16 @@ function ie({
304
304
  {
305
305
  type: "button",
306
306
  onClick: (t) => {
307
- t.stopPropagation(), q(t);
307
+ t.stopPropagation(), U(t);
308
308
  },
309
309
  className: "cteditor-size-8 cteditor-flex cteditor-items-center cteditor-justify-center cteditor-rounded-md cteditor-bg-background/80 hover:cteditor-bg-destructive hover:cteditor-text-destructive-foreground cteditor-transition-colors cteditor-shadow-md cteditor-border cteditor-border-border",
310
310
  "aria-label": "Delete video",
311
311
  title: "Delete video",
312
- children: /* @__PURE__ */ i(zt, { className: "cteditor-w-4 cteditor-h-4" })
312
+ children: /* @__PURE__ */ i(It, { className: "cteditor-w-4 cteditor-h-4" })
313
313
  }
314
314
  )
315
315
  ] }),
316
- Y && p(y) && O && /* @__PURE__ */ i(
316
+ Y && p(y) && W && /* @__PURE__ */ i(
317
317
  it,
318
318
  {
319
319
  showCaption: E,
@@ -322,7 +322,7 @@ function ie({
322
322
  buttonRef: S,
323
323
  imageRef: l,
324
324
  maxWidth: B,
325
- onResizeStart: U,
325
+ onResizeStart: q,
326
326
  onResizeEnd: G,
327
327
  captionsEnabled: F
328
328
  }
@@ -375,7 +375,7 @@ function ie({
375
375
  }
376
376
  ),
377
377
  /* @__PURE__ */ i(st, {}),
378
- /* @__PURE__ */ i(Ot, { namespace: Wt.namespace })
378
+ /* @__PURE__ */ i(Wt, { namespace: Ot.namespace })
379
379
  ]
380
380
  }
381
381
  )