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
@@ -0,0 +1,2 @@
1
+ import { default as React } from 'react';
2
+ export declare const AnimatedPlaceholderText: React.MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
@@ -0,0 +1,17 @@
1
+ import { BaseSelection, LexicalCommand, LexicalEditor } from '../../../node_modules/lexical';
2
+ import { default as React } from 'react';
3
+ /** Opens the divider picker (e.g. from the `/divider` slash command). */
4
+ export declare const OPEN_DIVIDER_PICKER_COMMAND: LexicalCommand<void>;
5
+ interface DividerPickerProps {
6
+ activeEditor: LexicalEditor;
7
+ savedSelection: BaseSelection | null;
8
+ onClose: () => void;
9
+ }
10
+ declare const DividerPicker: React.FC<DividerPickerProps>;
11
+ /**
12
+ * Host plugin — listens for OPEN_DIVIDER_PICKER_COMMAND, captures the current
13
+ * selection so insertion can target the original cursor position, and renders
14
+ * the picker dialog.
15
+ */
16
+ export declare const DividerPickerPlugin: React.FC;
17
+ export default DividerPicker;
@@ -0,0 +1,23 @@
1
+ import { NodeKey } from '../../../node_modules/lexical';
2
+ import { default as React } from 'react';
3
+ /**
4
+ * Shared, selection-aware view for the non-editable editorial divider blocks
5
+ * (ornament divider, asterism). Handles click-to-select and delete-on-keypress,
6
+ * matching the pattern used by HtmlCanvasComponent / ImageView.
7
+ *
8
+ * The actual glyphs and spacing come from the CSS in
9
+ * src/styles/editorial-typography.css (class `ed-<kind>-divider`).
10
+ */
11
+ export interface EditorialDividerViewProps {
12
+ nodeKey: NodeKey;
13
+ /** Block kind — drives the base CSS class, e.g. "ornament" | "asterism". */
14
+ kind: string;
15
+ /** Variant key — appended as a modifier class, e.g. "star", "triple-star". */
16
+ variant: string;
17
+ /** The literal text to render (already-spaced glyphs). */
18
+ display: string;
19
+ /** Accessible label announced by screen readers. */
20
+ ariaLabel: string;
21
+ }
22
+ declare const EditorialDividerView: React.FC<EditorialDividerViewProps>;
23
+ export default EditorialDividerView;
@@ -1,4 +1,4 @@
1
1
  import { default as React } from 'react';
2
2
  import { EmojiPluginProps } from '../../types';
3
- declare const EmojiPickerWidget: React.ForwardRefExoticComponent<EmojiPluginProps & React.RefAttributes<HTMLDivElement>>;
3
+ declare const EmojiPickerWidget: React.ForwardRefExoticComponent<EmojiPluginProps & Omit<React.HTMLAttributes<HTMLButtonElement>, "onChange"> & React.RefAttributes<HTMLDivElement>>;
4
4
  export default EmojiPickerWidget;
@@ -22,6 +22,10 @@ export interface LockedFeatureProps {
22
22
  * Omit to use the resolved key from featureName.
23
23
  */
24
24
  planUnlockCatalogKey?: string;
25
+ /**
26
+ * Optional custom class for the lock icon itself
27
+ */
28
+ lockIconClassName?: string;
25
29
  }
26
30
  /**
27
31
  * LockedFeature - A wrapper component that shows a lock/disabled overlay on disabled features
@@ -1,6 +1,24 @@
1
1
  export declare const toolbarStyles: {
2
2
  readonly root: "cteditor-p-2 cteditor-border-b cteditor-border-[#e0e0e0] cteditor-max-w-full cteditor-overflow-x-auto";
3
3
  readonly toolbar: "cteditor-p-2 cteditor-max-w-full cteditor-overflow-x-auto cteditor-flex cteditor-flex-nowrap cteditor-gap-1";
4
- readonly toolbarButton: "cteditor-p-1.5";
4
+ readonly toolbarContainer: "toolbar-features cteditor-flex cteditor-text-foreground cteditor-px-2 cteditor-py-1 cteditor-rounded-lg cteditor-items-center cteditor-gap-1.5 cteditor-relative cteditor-w-full cteditor-min-h-11 cteditor-overflow-hidden";
5
+ readonly toolbarInnerContent: "cteditor-flex cteditor-items-center cteditor-gap-1.5 cteditor-overflow-y-hidden cteditor-flex-nowrap md:cteditor-overflow-hidden no-scrollbar";
6
+ readonly moreMenuTriggerButton: "!cteditor-px-1 !cteditor-py-0.5 !cteditor-h-7 !cteditor-gap-1 dark:!cteditor-bg-body/20 !cteditor-bg-body !cteditor-rounded-md cteditor-border !cteditor-border-foreground/5";
7
+ readonly moreMenuContent: "cteditor-w-64 cteditor-max-h-[450px] cteditor-overflow-hidden cteditor-flex cteditor-flex-col";
8
+ readonly searchWrapper: "cteditor-relative";
9
+ readonly searchIcon: "cteditor-absolute cteditor-left-2.5 cteditor-top-1/2 cteditor-transform -cteditor-translate-y-1/2 cteditor-size-3.5 cteditor-text-muted-foreground/60";
10
+ readonly searchInput: "cteditor-h-8 cteditor-pl-8 cteditor-border !cteditor-border-foreground/10 cteditor-pr-8 cteditor-text-sm cteditor-bg-background/80 cteditor-rounded-md cteditor-shadow-sm cteditor-placeholder:text-muted-foreground/50 cteditor-transition-all focus:cteditor-ring-1 focus:cteditor-ring-primary/20";
11
+ readonly searchClearButton: "cteditor-absolute cteditor-right-2 cteditor-top-1/2 cteditor-transform -cteditor-translate-y-1/2 cteditor-text-muted-foreground/60 hover:cteditor-text-foreground cteditor-transition-colors";
12
+ readonly searchClearIcon: "!cteditor-size-3.5";
13
+ readonly controlGroup: "cteditor-flex cteditor-items-center cteditor-gap-1.5";
14
+ readonly dropdownSectionLabel: "cteditor-text-xs cteditor-font-medium cteditor-mb-1 cteditor-opacity-60 cteditor-px-2";
15
+ readonly dropdownItemTrigger: "cteditor-w-full cteditor-px-2 cteditor-py-1.5 cteditor-h-auto hover:cteditor-bg-foreground/5 cteditor-rounded-sm";
16
+ readonly searchEmptyStateContainer: "cteditor-py-8 cteditor-text-center cteditor-text-muted-foreground/60";
17
+ readonly searchEmptyStateIcon: "cteditor-size-8 cteditor-mx-auto cteditor-mb-2 cteditor-opacity-40";
18
+ readonly searchEmptyStateTitle: "cteditor-text-sm";
19
+ readonly searchEmptyStateDescription: "cteditor-text-xs cteditor-mt-1";
20
+ readonly searchStatusText: "cteditor-text-[10px] cteditor-text-muted-foreground/60 cteditor-mt-1.5 cteditor-px-0.5";
21
+ readonly categoryHeader: "cteditor-flex cteditor-items-center cteditor-px-2 cteditor-pt-2.5 cteditor-pb-1 cteditor-text-[10px] cteditor-font-semibold cteditor-text-muted-foreground cteditor-tracking-widest";
22
+ readonly categoryHeaderLine: "cteditor-flex-1 cteditor-h-px cteditor-bg-border/50 cteditor-ml-2";
5
23
  };
6
24
  export default toolbarStyles;
@@ -9,6 +9,7 @@ interface UnifiedColorPickerProps {
9
9
  isActive?: boolean;
10
10
  showTextColorTab?: boolean;
11
11
  showBackgroundColorTab?: boolean;
12
+ className?: string;
12
13
  }
13
14
  declare const UnifiedColorPicker: FC<UnifiedColorPickerProps>;
14
15
  export default UnifiedColorPicker;
@@ -1,7 +1,7 @@
1
1
  import { VariantProps } from 'class-variance-authority';
2
2
  import * as React from "react";
3
3
  declare const buttonVariants: (props?: ({
4
- variant?: "link" | "default" | "toolbar" | "destructive" | "outline" | "secondary" | "ghost" | null | undefined;
4
+ variant?: "link" | "default" | "toolbar" | "destructive" | "outline" | "secondary" | "ghost" | "highlighted" | null | undefined;
5
5
  size?: "default" | "icon" | "sm" | "md" | "lg" | "icon-sm" | null | undefined;
6
6
  } & import('class-variance-authority/dist/types').ClassProp) | undefined) => string;
7
7
  export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
@@ -1,4 +1,7 @@
1
1
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
2
2
  import * as React from "react";
3
- declare const Separator: React.ForwardRefExoticComponent<Omit<SeparatorPrimitive.SeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
3
+ export interface SeparatorProps extends React.ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root> {
4
+ size?: "default" | "md";
5
+ }
6
+ declare const Separator: React.ForwardRefExoticComponent<SeparatorProps & React.RefAttributes<HTMLDivElement>>;
4
7
  export { Separator };
@@ -23,8 +23,19 @@ import { UploadingImageNode } from './nodes/UploadingImageNode';
23
23
  import { UploadingFileNode } from './nodes/UploadingFileNode';
24
24
  import { VideoNode } from './nodes/VideoNode';
25
25
  import { UploadingVideoNode } from './nodes/UploadingVideoNode';
26
+ import { OrnamentDividerNode } from './nodes/OrnamentDividerNode';
27
+ import { AsterismNode } from './nodes/AsterismNode';
28
+ import { EditorialFieldNode } from './nodes/EditorialFieldNode';
29
+ import { LabeledRuleNode } from './nodes/LabeledRuleNode';
30
+ import { SectionNumberHeadingNode } from './nodes/SectionNumberHeadingNode';
31
+ import { PullQuoteRulesNode } from './nodes/PullQuoteRulesNode';
32
+ import { ColumnsNode } from './nodes/ColumnsNode';
33
+ import { ColumnNode } from './nodes/ColumnNode';
34
+ import { ButtonNode } from './nodes/ButtonNode';
35
+ import { FaqNode } from './nodes/FaqNode';
36
+ import { ImagePlaceholderNode } from './nodes/ImagePlaceholderNode';
26
37
  export declare const theme: EditorThemeClasses;
27
- export declare const EDITOR_NODES: (typeof CommentedTextNode | typeof CommentNode | typeof EmbedNode | typeof FileNode | typeof HtmlCanvasNode | typeof LinkNode | typeof CodeNode | typeof ImageNode | typeof MentionNode | typeof NotePanelNode | typeof ChartNode | typeof CustomHorizontalRuleNode | typeof HorizontalRuleNode | typeof GeneratingImageNode | typeof UploadingImageNode | typeof UploadingFileNode | typeof VideoNode | typeof UploadingVideoNode | typeof CodeHighlightNode | typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof TableNode | typeof TableCellNode | typeof TableRowNode)[];
38
+ export declare const EDITOR_NODES: (typeof CommentedTextNode | typeof CommentNode | typeof EmbedNode | typeof FileNode | typeof HtmlCanvasNode | typeof LinkNode | typeof CodeNode | typeof ImageNode | typeof MentionNode | typeof NotePanelNode | typeof ChartNode | typeof CustomHorizontalRuleNode | typeof HorizontalRuleNode | typeof GeneratingImageNode | typeof UploadingImageNode | typeof UploadingFileNode | typeof VideoNode | typeof UploadingVideoNode | typeof OrnamentDividerNode | typeof AsterismNode | typeof EditorialFieldNode | typeof LabeledRuleNode | typeof SectionNumberHeadingNode | typeof PullQuoteRulesNode | typeof ColumnNode | typeof ColumnsNode | typeof ButtonNode | typeof FaqNode | typeof ImagePlaceholderNode | typeof CodeHighlightNode | typeof HeadingNode | typeof QuoteNode | typeof ListNode | typeof ListItemNode | typeof TableNode | typeof TableCellNode | typeof TableRowNode)[];
28
39
  export declare const initialConfig: InitialConfigType;
29
40
  export declare const blockTypeToBlockName: {
30
41
  bullet: string;
@@ -40,6 +40,13 @@ export declare const editorConfig: {
40
40
  enableFormatPainter: boolean;
41
41
  enableFeatureSuggestion: boolean;
42
42
  enablePreview: boolean;
43
+ enableEditorialDividers: boolean;
44
+ enableSectionHeading: boolean;
45
+ enablePullQuote: boolean;
46
+ enableColumns: boolean;
47
+ enableButtonBlock: boolean;
48
+ enablePatterns: boolean;
49
+ enableFaq: boolean;
43
50
  };
44
51
  enableFloatingMenu: boolean;
45
52
  htmlViewOption: boolean;
@@ -1,6 +1,6 @@
1
1
  import { c as Tt, g as Se } from "./_commonjsHelpers-DaMA6jEr.js";
2
2
  import { h as Ce } from "./html2canvas.esm-BD_Vwvv8.js";
3
- import { a0 as xe, aC as Ee } from "./index-CXyZgoBl.js";
3
+ import { aa as xe, aN as Ee } from "./index-Bex3G_eE.js";
4
4
  function Ft(c) {
5
5
  throw new Error('Could not dynamically require "' + c + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
6
6
  }
@@ -1,7 +1,7 @@
1
- import { a0 as u, aC as C } from "./index-CXyZgoBl.js";
1
+ import { aa as u, aN as b } from "./index-Bex3G_eE.js";
2
2
  const m = "https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174";
3
3
  let w = null;
4
- async function b() {
4
+ async function C() {
5
5
  if (w) return w;
6
6
  await new Promise((n, o) => {
7
7
  if (window.pdfjsLib) {
@@ -21,7 +21,7 @@ async function j(t) {
21
21
  for (let e = 0; e < i.length; e++) c[e] = i.charCodeAt(e);
22
22
  return c;
23
23
  }
24
- const n = `${u}${C.project.proxyPdf}?url=${encodeURIComponent(t)}`, o = await fetch(n);
24
+ const n = `${u}${b.project.proxyPdf}?url=${encodeURIComponent(t)}`, o = await fetch(n);
25
25
  if (!o.ok) throw new Error(`PDF fetch failed: ${o.status}`);
26
26
  const a = await o.arrayBuffer();
27
27
  return new Uint8Array(a);
@@ -29,7 +29,7 @@ async function j(t) {
29
29
  const p = 240, h = 176;
30
30
  async function D(t) {
31
31
  try {
32
- const n = await b(), o = await j(t), r = await (await n.getDocument({ data: o }).promise).getPage(1), i = r.getViewport({ scale: 1 }), c = p / i.width, e = r.getViewport({ scale: c }), s = document.createElement("canvas");
32
+ const n = await C(), o = await j(t), r = await (await n.getDocument({ data: o }).promise).getPage(1), i = r.getViewport({ scale: 1 }), c = p / i.width, e = r.getViewport({ scale: c }), s = document.createElement("canvas");
33
33
  s.width = e.width, s.height = e.height;
34
34
  const l = s.getContext("2d");
35
35
  if (!l) throw new Error("Could not get 2d context");
@@ -1,5 +1,5 @@
1
1
  import { h as Ci } from "./html2canvas.esm-BD_Vwvv8.js";
2
- import { a0 as yi, aC as Di } from "./index-CXyZgoBl.js";
2
+ import { aa as yi, aN as Di } from "./index-Bex3G_eE.js";
3
3
  var In = 1252, Oi = [874, 932, 936, 949, 950, 1250, 1251, 1252, 1253, 1254, 1255, 1256, 1257, 1258, 1e4], Zt = {
4
4
  /*::[*/
5
5
  0: 1252,
@@ -2,7 +2,7 @@ import { TextFormatType } from '../../node_modules/lexical';
2
2
  declare const useEditorToolbar: () => {
3
3
  hasFormat: Record<TextFormatType, boolean>;
4
4
  isEditorEmpty: boolean;
5
- blockType: "number" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "paragraph" | "quote" | "bullet" | "check";
5
+ blockType: "number" | "code" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "quote" | "paragraph" | "bullet" | "check";
6
6
  insertLink: () => void;
7
7
  insertHorizontalRule: () => void;
8
8
  clearFormatting: () => void;
@@ -1,14 +1,14 @@
1
1
  import { jsx as i, jsxs as b } from "react/jsx-runtime";
2
2
  import { useLexicalComposerContext as k } from "@lexical/react/LexicalComposerContext";
3
- import { c as L, an as I, ao as w } from "./index-CXyZgoBl.js";
3
+ import { c as L, az as I, aA as w } from "./index-Bex3G_eE.js";
4
4
  import { useBasicTypeaheadTriggerMatch as C, LexicalTypeaheadMenuPlugin as S, MenuOption as R } from "@lexical/react/LexicalTypeaheadMenuPlugin";
5
5
  import { useState as y, useMemo as v, useCallback as g, useEffect as O } from "react";
6
- import * as E from "react-dom";
7
- const U = L("UserRound", [
6
+ import * as A from "react-dom";
7
+ const E = L("UserRound", [
8
8
  ["circle", { cx: "12", cy: "8", r: "5", key: "1hypcn" }],
9
9
  ["path", { d: "M20 21a8 8 0 0 0-16 0", key: "rfgkzh" }]
10
- ]), A = `\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`, P = {
11
- PUNCTUATION: A
10
+ ]), U = `\\.,\\+\\*\\?\\$\\@\\|#{}\\(\\)\\^\\-\\[\\]\\\\/!%'"~=<>_:;`, P = {
11
+ PUNCTUATION: U
12
12
  }, M = P.PUNCTUATION, x = ["@"].join(""), _ = "[^" + x + M + "\\s]", G = "(?:\\.[ |$]| |[" + M + "]|)", $ = 75, D = new RegExp(
13
13
  "(^|\\s|\\()([" + x + "]((?:" + _ + G + "){0," + $ + "}))$"
14
14
  ), F = 5, m = /* @__PURE__ */ new Map(), j = {
@@ -21,7 +21,7 @@ const U = L("UserRound", [
21
21
  }, 500);
22
22
  }
23
23
  };
24
- function Q(o = [], e) {
24
+ function z(o = [], e) {
25
25
  const [r, c] = y([]);
26
26
  return O(() => {
27
27
  const t = m.get(e);
@@ -40,7 +40,7 @@ function Q(o = [], e) {
40
40
  }
41
41
  }, [e]), r;
42
42
  }
43
- function z(o, e) {
43
+ function Q(o, e) {
44
44
  const r = D.exec(o);
45
45
  if (r !== null) {
46
46
  const c = r[1], t = r[3];
@@ -54,7 +54,7 @@ function z(o, e) {
54
54
  return null;
55
55
  }
56
56
  function H(o) {
57
- return z(o, 0);
57
+ return Q(o, 0);
58
58
  }
59
59
  class V extends R {
60
60
  name;
@@ -92,13 +92,13 @@ function q({
92
92
  function Y({
93
93
  userList: o
94
94
  }) {
95
- const [e] = k(), [r, c] = y(null), t = Q(o, r), { isDark: a } = I(), f = C("/", {
95
+ const [e] = k(), [r, c] = y(null), t = z(o, r), { isDark: a } = I(), f = C("/", {
96
96
  minLength: 0
97
97
  }), l = v(
98
98
  () => t.map(
99
99
  (n) => new V(
100
100
  n,
101
- /* @__PURE__ */ i("i", { className: "cteditor-flex cteditor-items-center cteditor-justify-center cteditor-w-6 cteditor-h-6 cteditor-rounded-full cteditor-bg-muted cteditor-shrink-0 group-[.selected]:cteditor-bg-primary-foreground/20", children: /* @__PURE__ */ i(U, { size: 14 }) })
101
+ /* @__PURE__ */ i("i", { className: "cteditor-flex cteditor-items-center cteditor-justify-center cteditor-w-6 cteditor-h-6 cteditor-rounded-full cteditor-bg-muted cteditor-shrink-0 group-[.selected]:cteditor-bg-primary-foreground/20", children: /* @__PURE__ */ i(E, { size: 14 }) })
102
102
  )
103
103
  ).slice(0, F),
104
104
  [t]
@@ -121,7 +121,7 @@ function Y({
121
121
  onSelectOption: N,
122
122
  triggerFn: T,
123
123
  options: l,
124
- menuRenderFn: (n, { selectedIndex: s, selectOptionAndCleanUp: p, setHighlightedIndex: d }) => n.current ? E.createPortal(
124
+ menuRenderFn: (n, { selectedIndex: s, selectOptionAndCleanUp: p, setHighlightedIndex: d }) => n.current ? A.createPortal(
125
125
  /* @__PURE__ */ i("div", { id: "ct-editor-f47ac10b", className: `typeahead-popover mentions-menu eddyter-scope ${a ? "dark cteditor-dark" : ""} `, style: { width: "fit-content", borderRadius: "6px" }, children: l.length > 0 ? /* @__PURE__ */ i("ul", { className: "cteditor-list-none cteditor-m-0 cteditor-p-0 cteditor-w-fit cteditor-border cteditor-rounded-md cteditor-border-foreground/10", children: l.map((h, u) => /* @__PURE__ */ i(
126
126
  q,
127
127
  {