eddyter 1.4.3 → 1.4.5

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.
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { M as a, N as r, O as t, P as s, Q as o, R as d, U as v, V as u, Y as f, Z as n, _ as l, a0 as w } from "./index-Bvb6NDBM.js";
1
+ import { M as a, N as r, O as t, P as s, Q as o, R as d, U as v, V as u, Y as f, Z as n, _ as l, a0 as w } from "./index-DMZDKMjN.js";
2
2
  export {
3
3
  a as ConfigurableEditor,
4
4
  r as ConfigurableEditorWithAuth,
@@ -22,6 +22,8 @@ interface ConfigurableEditorProps {
22
22
  onChange?: (html: string) => void;
23
23
  apiKey?: string;
24
24
  toolbarTopOffset?: number;
25
+ editorClassName?: string;
26
+ editorStyle?: React.CSSProperties;
25
27
  }
26
28
  declare const ConfigurableEditor: React.FC<ConfigurableEditorProps>;
27
29
  export default ConfigurableEditor;
@@ -15,6 +15,12 @@ interface CombinedPluginProps {
15
15
  enableAI?: boolean;
16
16
  debounceDelay?: number;
17
17
  }
18
+ type SentenceInput = {
19
+ id: string;
20
+ text: string;
21
+ index: number;
22
+ };
18
23
  export declare const AUTOCOMPLETE_COMMAND: import('../../node_modules/lexical').LexicalCommand<string>;
24
+ export declare function splitIntoSentences(text: string): SentenceInput[];
19
25
  export default function CombinedAutocompleteGrammarPlugin({ onQueryChange, onSelectOption, minMatchLength, maxSuggestions, apiEndpoint, enableAI, debounceDelay, }: CombinedPluginProps): JSX.Element | null;
20
26
  export {};
@@ -1,12 +1,15 @@
1
1
  import { HorizontalRuleNode as BaseHorizontalRuleNode } from '../../../node_modules/@lexical/react/LexicalHorizontalRuleNode';
2
2
  import { DOMConversionMap, DOMExportOutput, LexicalCommand, LexicalNode, NodeKey, SerializedLexicalNode, Spread } from '../../../node_modules/lexical';
3
+ export type LineStyle = "solid" | "dashed" | "dotted" | "double";
3
4
  export interface CustomHorizontalRulePayload {
4
5
  color?: string;
5
6
  strokeWidth?: number;
7
+ lineStyle?: LineStyle;
6
8
  }
7
9
  export type SerializedCustomHorizontalRuleNode = Spread<{
8
10
  color?: string;
9
11
  strokeWidth?: number;
12
+ lineStyle?: LineStyle;
10
13
  }, SerializedLexicalNode>;
11
14
  export declare const INSERT_CUSTOM_HORIZONTAL_RULE_COMMAND: LexicalCommand<CustomHorizontalRulePayload>;
12
15
  /** Opens the horizontal rule customization dialog (e.g. from slash menu). */
@@ -14,9 +17,10 @@ export declare const OPEN_HORIZONTAL_RULE_DIALOG_COMMAND: LexicalCommand<void>;
14
17
  export declare class CustomHorizontalRuleNode extends BaseHorizontalRuleNode {
15
18
  __color?: string;
16
19
  __strokeWidth?: number;
20
+ __lineStyle?: LineStyle;
17
21
  static getType(): string;
18
22
  static clone(node: CustomHorizontalRuleNode): CustomHorizontalRuleNode;
19
- constructor(color?: string, strokeWidth?: number, key?: NodeKey);
23
+ constructor(color?: string, strokeWidth?: number, lineStyle?: LineStyle, key?: NodeKey);
20
24
  createDOM(): HTMLElement;
21
25
  updateDOM(): boolean;
22
26
  static importDOM(): DOMConversionMap | null;
@@ -27,6 +31,8 @@ export declare class CustomHorizontalRuleNode extends BaseHorizontalRuleNode {
27
31
  setColor(color?: string): void;
28
32
  getStrokeWidth(): number | undefined;
29
33
  setStrokeWidth(strokeWidth?: number): void;
34
+ getLineStyle(): LineStyle | undefined;
35
+ setLineStyle(lineStyle?: LineStyle): void;
30
36
  }
31
- export declare function $createCustomHorizontalRuleNode(color?: string, strokeWidth?: number): CustomHorizontalRuleNode;
37
+ export declare function $createCustomHorizontalRuleNode(color?: string, strokeWidth?: number, lineStyle?: LineStyle): CustomHorizontalRuleNode;
32
38
  export declare function $isCustomHorizontalRuleNode(node: LexicalNode | null | undefined): node is CustomHorizontalRuleNode;
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Lightweight error reporter — sends editor crash data to the backend
3
+ * via a simple fetch() call. No SDK needed, no bundle size impact.
4
+ *
5
+ * Only sends: error message, stack trace, browser info, editor version.
6
+ * Does NOT send: user content, personal data, authentication tokens.
7
+ */
8
+ export declare function reportEditorError(error: Error, componentStack?: string): void;
9
+ /**
10
+ * Initialize global error listeners that catch ALL errors automatically.
11
+ * Call this once when the editor loads — no need to add reportEditorError
12
+ * to individual catch blocks.
13
+ *
14
+ * Catches:
15
+ * 1. Uncaught sync errors (window.onerror)
16
+ * 2. Unhandled promise rejections
17
+ * 3. Errors logged via console.error (catches errors swallowed by try/catch)
18
+ */
19
+ export declare function initGlobalErrorReporter(): void;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "eddyter",
3
3
  "private": false,
4
- "version": "1.4.3",
4
+ "version": "1.4.5",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@9.0.0",
7
7
  "keywords": [
@@ -100,12 +100,14 @@
100
100
  "lodash-es": "^4.17.21",
101
101
  "lucide-react": "^0.344.0",
102
102
  "marked": "^17.0.1",
103
+ "md5": "^2.3.0",
103
104
  "pdfjs-dist": "^3.11.174",
104
105
  "prettier": "^3.5.1",
105
106
  "react-colorful": "^5.6.1",
106
107
  "react-router-dom": "^7.2.0",
107
108
  "react-signature-canvas": "^1.1.0-alpha.1",
108
109
  "sass": "^1.57.1",
110
+ "sentence-splitter": "^5.0.0",
109
111
  "tailwind-merge": "^3.0.2",
110
112
  "tailwindcss": "3",
111
113
  "tailwindcss-animate": "^1.0.7",
@@ -115,6 +117,7 @@
115
117
  "devDependencies": {
116
118
  "@types/he": "^1.2.3",
117
119
  "@types/lodash-es": "^4.17.12",
120
+ "@types/md5": "^2.3.6",
118
121
  "@types/node": "^22.13.10",
119
122
  "@types/react": "^18.0.26",
120
123
  "@types/react-dom": "^18.0.9",