eddyter 1.3.78 → 1.3.80

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.
@@ -16,7 +16,7 @@ import { useLexicalNodeSelection as $e } from "@lexical/react/useLexicalNodeSele
16
16
  import { mergeRegister as _e } from "@lexical/utils";
17
17
  import { RootNode as qt, TextNode as Vt, LineBreakNode as Jt, ParagraphNode as Qt, $getSelection as st, $isNodeSelection as dt, $isParagraphNode as Et, $setSelection as bt, $isRangeSelection as Te, SELECTION_CHANGE_COMMAND as We, COMMAND_PRIORITY_LOW as U, CLICK_COMMAND as Ye, DRAGSTART_COMMAND as je, KEY_DELETE_COMMAND as Oe, KEY_BACKSPACE_COMMAND as He, KEY_ENTER_COMMAND as Fe, KEY_ESCAPE_COMMAND as Xe, $getNodeByKey as ct, createCommand as Be } from "lexical";
18
18
  import mt, { useState as P, useRef as G, useMemo as $t, useCallback as S, useEffect as q, useLayoutEffect as Ke, Suspense as Ue } from "react";
19
- import { a as gt, D as Zt, b as te, d as ee, e as re, f as oe, h as ae, B as _t, L as ie, i as ne, C as yt, I as Ge, u as qe, $ as tt, t as z, j as Ve, k as Je, W as Qe, l as Ze, A as tr, m as er, n as rr, T as or, o as ar, S as ir, E as nr, p as sr, q as dr, r as cr, s as lr } from "./index-BDzAe_Dw.js";
19
+ import { a as gt, D as Zt, b as te, d as ee, e as re, f as oe, h as ae, B as _t, L as ie, i as ne, C as yt, I as Ge, u as qe, $ as tt, t as z, j as Ve, k as Je, W as Qe, l as Ze, A as tr, m as er, n as rr, T as or, o as ar, S as ir, E as nr, p as sr, q as dr, r as cr, s as lr } from "./index-BiGNE0nG.js";
20
20
  import "react-dom";
21
21
  const se = gt("Crop", [
22
22
  ["path", { d: "M6 2v14a2 2 0 0 0 2 2h14", key: "ron5a4" }],
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { J as a, K as r, M as t, N as s, O as o, P as d, Q as v, R as u, U as f, V as n, X as l, Y as w } from "./index-BDzAe_Dw.js";
1
+ import { J as a, K as r, M as t, N as s, O as o, P as d, Q as v, R as u, U as f, V as n, X as l, Y as w } from "./index-BiGNE0nG.js";
2
2
  export {
3
3
  a as ConfigurableEditor,
4
4
  r as ConfigurableEditorWithAuth,
@@ -0,0 +1,7 @@
1
+ interface InlineAutocompletePluginProps {
2
+ apiKey?: string;
3
+ debounceDelay?: number;
4
+ minContextLength?: number;
5
+ }
6
+ export default function InlineAutocompletePlugin({ apiKey, debounceDelay, minContextLength, }: InlineAutocompletePluginProps): JSX.Element | null;
7
+ export {};
package/dist/types.d.ts CHANGED
@@ -74,6 +74,8 @@ export interface ColorPickerProps {
74
74
  bgClassName?: string;
75
75
  onOpenChange?: (open: boolean) => void;
76
76
  isActive?: boolean;
77
+ /** Optional class for the trigger button (e.g. cteditor-w-7 cteditor-h-7 to match swatches) */
78
+ triggerClassName?: string;
77
79
  }
78
80
  export interface BlockFormatMenuProps {
79
81
  blockType: keyof typeof blockTypeToBlockName;
@@ -191,6 +193,11 @@ export interface EditorConfigTypes {
191
193
  minMatchLength?: number;
192
194
  maxSuggestions?: number;
193
195
  };
196
+ enableInlineAutocomplete?: boolean;
197
+ inlineAutocompleteOptions?: {
198
+ debounceDelay?: number;
199
+ minContextLength?: number;
200
+ };
194
201
  }
195
202
  export type EditorActionType = "insert_text" | "create_table" | "change_font" | "apply_formatting" | "change_block_type" | "change_alignment" | "unknown";
196
203
  export type FormattingOptions = "bold" | "italic" | "strikethrough" | "underline" | "code" | "highlight" | "subscript" | "superscript" | "bullet" | "number" | "check" | "quote" | "codeBlock";
@@ -83,4 +83,5 @@ declare const WrapTextRightIcon: () => import("react/jsx-runtime").JSX.Element;
83
83
  declare const BugIcon: () => import("react/jsx-runtime").JSX.Element;
84
84
  declare const LockIcon: () => import("react/jsx-runtime").JSX.Element;
85
85
  declare const AiSparkle: () => import("react/jsx-runtime").JSX.Element;
86
- export { AddCommentIcon, AddImageIcon, AdjustToneIcon, AIChatIcon, AIIcon, AlignBottomIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignMiddleIcon, AlignRightIcon, AlignTopIcon, BoldIcon, BugIcon, BulletListIcon, ChartBarIcon, CheckBoxIcon, CheckIcon, ChevronDownIcon, CodeIcon, CompleteSentenceIcon, DisableIcon, EmojifyIcon, FaceSmileIcon, FileIcon, FixGrammarIcon, GenerateImageIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, HorizontalRuleIcon, HtmlViewIcon, ImageIcon, ItalicIcon, LinkIcon, LockIcon, MagicoonIcon, MakeLongerIcon, MakeShorterIcon, MenuAltIcon, MessageEditIcon, MicrophoneIcon, NoteIcon, NumberListIcon, PauseCircleIcon, ParagraphIcon, PenLineIcon, PerspectiveIcon, PlayCircleIcon, PlusIcon, QuoteIcon, RecordingIcon, RedoIcon, SearchTextIcon, SearchTextIcon2, SendIcon, SignatureIcon, SimplifyIcon, SparkleIcon, StopCircleIcon, StrikethroughIcon, SubscriptIcon, SuperscriptIcon, TodoIcon, TranslateIcon, TypeCapitalizeIcon, TypeLowercaseIcon, TypeUppercaseIcon, UnderlineIcon, UndoIcon, UploadIcon, TableIcon, HighlighterIcon, LightbulbIcon, ClearFormattingIcon, CrossIcon, DownloadIcon, TrashIcon, ExternalLinkIcon, WrapTextLeftIcon, WrapTextRightIcon, AiSparkle };
86
+ declare const CodeSquare: () => import("react/jsx-runtime").JSX.Element;
87
+ export { AddCommentIcon, AddImageIcon, AdjustToneIcon, AIChatIcon, AIIcon, AlignBottomIcon, AlignCenterIcon, AlignJustifyIcon, AlignLeftIcon, AlignMiddleIcon, AlignRightIcon, AlignTopIcon, BoldIcon, BugIcon, BulletListIcon, ChartBarIcon, CheckBoxIcon, CheckIcon, ChevronDownIcon, CodeIcon, CompleteSentenceIcon, DisableIcon, EmojifyIcon, FaceSmileIcon, FileIcon, FixGrammarIcon, GenerateImageIcon, Heading1Icon, Heading2Icon, Heading3Icon, Heading4Icon, Heading5Icon, Heading6Icon, HorizontalRuleIcon, HtmlViewIcon, ImageIcon, ItalicIcon, LinkIcon, LockIcon, MagicoonIcon, MakeLongerIcon, MakeShorterIcon, MenuAltIcon, MessageEditIcon, MicrophoneIcon, NoteIcon, NumberListIcon, PauseCircleIcon, ParagraphIcon, PenLineIcon, PerspectiveIcon, PlayCircleIcon, PlusIcon, QuoteIcon, RecordingIcon, RedoIcon, SearchTextIcon, SearchTextIcon2, SendIcon, SignatureIcon, SimplifyIcon, SparkleIcon, StopCircleIcon, StrikethroughIcon, SubscriptIcon, SuperscriptIcon, TodoIcon, TranslateIcon, TypeCapitalizeIcon, TypeLowercaseIcon, TypeUppercaseIcon, UnderlineIcon, UndoIcon, UploadIcon, TableIcon, HighlighterIcon, LightbulbIcon, ClearFormattingIcon, CrossIcon, DownloadIcon, TrashIcon, ExternalLinkIcon, WrapTextLeftIcon, WrapTextRightIcon, AiSparkle, CodeSquare };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eddyter",
3
3
  "private": false,
4
- "version": "1.3.78",
4
+ "version": "1.3.80",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@9.0.0",
7
7
  "keywords": [